Consulting

Results 1 to 15 of 15

Thread: Solved: DSUM

  1. #1
    VBAX Regular
    Joined
    Nov 2008
    Posts
    53
    Location

    Solved: DSUM

    I have attached my workbook for what am doing, but my problem is that using the DSUM or DGET doesnt actually bring all the relevant data back, it seems to bring some and not others. I'm not sure why this would be, can anyone help.

    Looking at the Tab - Workload Cells C6 & D6 pick up through DSUM but using the same formula the Cells C7 & D7 dont work.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    The criteria range for the 2nd item has lost the header, so DSUM doesn't know where to look.

    Try

    =SUMIF(INDEX(Rota,0,1),$B6,INDEX(Rota,0,COLUMN(E1)))

    instead, although adding up start times doesn't striuke me as being appropriate.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Nov 2008
    Posts
    53
    Location
    I dont understand that formula, can you explain it?

    Where is $B6 & E1 come into it?

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    B6 is the name that you want to get details for, Barney Stinson, E1 is just so as to get a column number of 5 to index into the Rota table, so that when you copy it across for the finish time, you will get column 6 in that instance.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Regular
    Joined
    Nov 2008
    Posts
    53
    Location
    I tried this
    SUMIF(INDEX(Rota,0,1),$B9,INDEX(Rota,0,(E$1)))
    and in E1 I put 5 so that would look at Start Time in Rota.

    The result was a time that isnt even on the rota table (19:30). When I did the same for the Finish it shows 13:00 a time that is before the Start Time.

    How can this be?

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Why did you do that?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    VBAX Regular
    Joined
    Nov 2008
    Posts
    53
    Location
    Because thats how I read from your reply. It seems I dont understand what you have said. Could you show me on the Workbook I attached?

  8. #8
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I have also changed the formulae in the Appts table.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  9. #9
    VBAX Regular
    Joined
    Nov 2008
    Posts
    53
    Location
    Thanks for that, the Rota is working great, apart from when I change the date it doesnt change the Shift Patterns. The other problem I have now is that the Appt Timings (Row13 to 17) and Appointments (Row19 to 23). Pick up the times and details from the Appts Range but it picks it up regardless of the date. How can I change it so that it only looks at the relevant date DSUMCriteria Row6?

  10. #10
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Where is the date that gets compared against/changed?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  11. #11
    VBAX Regular
    Joined
    Nov 2008
    Posts
    53
    Location
    On Sheet Tab DSUMCriteria Cell C6 is the date that I want to control the Workload sheet.

  12. #12
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Here you are
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  13. #13
    VBAX Regular
    Joined
    Nov 2008
    Posts
    53
    Location
    Cool, that works a lot better. Thanks

    My only problem now is that the section Rows 21 to 24 keep the same Appointments from the 12-March through to anyday I choose. How can I get it to look at the date and show me the Appointments for the day?

  14. #14
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I didn't touch that part.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  15. #15
    VBAX Regular
    Joined
    Nov 2008
    Posts
    53
    Location
    I know you havent touched that part, am asking how I can get around this problem

    Rows 21 to 24 keep the same Appointments from the 12-March through to anyday I choose. How can I get it to look at the date and show me the Appointments for the day?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •