+ Reply to Thread
Results 1 to 4 of 4

Help with SUMIF using multiple rows - wrong calculation

  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    America
    MS-Off Ver
    Excel 2010
    Posts
    2

    Help with SUMIF using multiple rows - wrong calculation

    Hello. Thanks in advance for any help that can be provided. I've been searching and working with this all day.

    I'm attempting to add the number of medications a technician fills per day over a 6 day period:

    =SUMIF('Pharmacy Work Log'!C2:AB2,A3,'Pharmacy Work Log'!C3:AB3)+SUMIF('Pharmacy Work Log'!C2:AB2,A3,'Pharmacy Work Log'!C7:AB7)

    'Pharmacy Work Log'!C2:AB2 - Refers to the initials of all of our technicians. A3 refers to the technicians initials for which I want to add their medications filled (on a different sheet of the same workbook).

    'Pharmacy Work Log'!C7:AB7 - Refers to the number of medications filled.

    For the first SUMIF formula in my function I get correct calculations. When I add (+) additional "sumIf", the calculations get thrown off. I am attempting to add from 6 non-consecutive rows: 3, 7, 11, 15, 19, 23.

    See attached for example:

    Technician AB filled 804 medications for days 10/3 and 10/4. For some reason however the calcuation is retrieving 784 (sheet3)?

    The function wizard doesn't indicate any error. This is driving me bananas!

    Thanks very much, I really appreciate any insight.
    Attached Files Attached Files

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Help with SUMIF using multiple rows - wrong calculation

    Isn't that supposed to be ???

    SUMIF('Pharmacy Work Log'!C6:AB6,A3,'Pharmacy Work Log'!C7:AB7) ->second sumif
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    10-02-2012
    Location
    America
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Help with SUMIF using multiple rows - wrong calculation

    Aaahhhh YES! Thank you so very much vlady!

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Help with SUMIF using multiple rows - wrong calculation

    Your welcome!

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as "SOLVED".
    being new to the forum, for the meantime I'll do it for you.

    How?
    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

    Note:
    You can also thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given.
    By doing so you can add to the reputation(s) of those who helped and shared their time in helping you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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