+ Reply to Thread
Results 1 to 9 of 9

Function Arguments result correct but cell shows 0?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-19-2012
    Location
    Herefordshire, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question Function Arguments result correct but cell shows 0?

    I'm trying to do a semi-advanced SUM which checks a sheet of timesheet data and if the day matches, sums the data for that user (Date is in Cell A, Username M and number of minutes in N).

    My formula is as so:
    =SUM(IF(Timesheets!$A$2:$A$1000=A2,IF(C$1=Timesheets!$M$2:$M$1000,Timesheets!$N$2:$N$1000)))
    What's interesting is when I check this in the function arguments checker, it shows the correct value for that user/day combination but in the cell it's showing 0.

    I've checked it's not a formatting issue (it's not) and all the references are right but I can't fathom it out. Any ideas?

    Thanks in advance

    Tim

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,521

    Re: Function Arguments result correct but cell shows 0?

    That's an array function and needs to be committed with Ctrl-Shift-Enter rather than just Enter.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    06-19-2012
    Location
    Herefordshire, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Function Arguments result correct but cell shows 0?

    TMS You're a genius, that worked a treat thank you ever so much for you insanely quick reply.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,521

    Re: Function Arguments result correct but cell shows 0?

    With 2010, you should be able to use SUMIFS.

    Regards, TMS

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,521

    Re: Function Arguments result correct but cell shows 0?

    You're welcome.

    Solved?

    Regards, TMS

  6. #6
    Registered User
    Join Date
    06-19-2012
    Location
    Herefordshire, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Function Arguments result correct but cell shows 0?

    I thought I could use SUMIF too but I think the criteria are too specific...

    Sum if:
    1. The day columns match (A)
    2. The name row value matches the column header (M)
    3. Sum the range N

    I might be wrong though.

    And yes, solved thanks, not sure I can mark this as solved, will change the title

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,521

    Re: Function Arguments result correct but cell shows 0?

    Why can't you mark it as solved?

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,521

    Re: Function Arguments result correct but cell shows 0?

    SUMIFS ... not SUMIF.

  9. #9
    Registered User
    Join Date
    06-19-2012
    Location
    Herefordshire, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Function Arguments result correct but cell shows 0?

    >SUMIFS ... not SUMIF
    Ah nice thanks, will check that out.

    >Why can't you mark it as solved?
    Because it wasn't obvious when at the bottom of the page. Have found and marked as solved thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1