+ Reply to Thread
Results 1 to 15 of 15

Sum if with several criteria?

  1. #1
    Forum Contributor
    Join Date
    11-22-2006
    Posts
    100

    Sum if with several criteria?

    Hi,
    I would like to know if it is possible to choose several criteria in this formula, for example:
    SUMIF('Global Sheet'!F5:F5502,"<"&'Research per date'!E20,'Global Sheet'!K5:K5502)
    I would like to add a new criteria after "<"&'Research per date'!E20


    Thank you

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Since Sumif() can only accept one condition, you have to use the function
    sumproduct() which accepts multiple conditions ...

    Please post a zipped copy of your worksheet, for a precise answer ...

    HTH
    Carim

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this,

    SUMIF('Global Sheet'!F5:F5502,"<"&'Research per date'!E20,'Global Sheet'!K5:K5502)+SUMIF(Your Range,"<"&'Research per date'!E20,Your Range)
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Forum Contributor
    Join Date
    11-22-2006
    Posts
    100
    Thank you for your answer but the last one did not work so I am trying to see with Sumproduct if i can have 2 criterias.

    Thanks again

  5. #5
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    My suggestion, if you do not want to upload your worksheet, is to search in the forum for the many concrete examples of how to use sumproduct() ...

    HTH
    Carim

  6. #6
    Forum Contributor
    Join Date
    11-22-2006
    Posts
    100

    Don t work!

    Hi,
    I tried with SUM Product but i think there was a misunderstanding i would like to do for different ranges 2 conditions: for example,
    SUMIF(A1:A5 <3 + B10:B23 = "a", K50:K500) the sum of K50:K500 if A1:A5 inf to 3 and B10:B23 = "A".

    Is this possible?

    Thank you again for your help

  7. #7
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Please post a zipped copy of your worksheet, for a precise answer ...

    HTH
    Carim

  8. #8
    Forum Contributor
    Join Date
    11-22-2006
    Posts
    100
    Hi,
    I have posted the worsheet with this message so it is clearer for you: in fact I would like to calculate the number of absences and their cots presents in the chart at the top. So that for example when they select in the drop list" CPS" they can see the number of absences and their cost for CPS before the date written above in the cell E12.
    My 2 criteria are the department and before the date above.


    Thank you if you can help me!
    Attached Files Attached Files

  9. #9
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Thanks for the zipped file ...
    When you mention between two dates ...
    only the end date is shown ... ???

    Carim

  10. #10
    Forum Contributor
    Join Date
    11-22-2006
    Posts
    100

    Sorry

    Of course there is only the end date so it is before the end date.

    Thank you

  11. #11
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Attached is your worksheet with the sumproduct() formula ...

    HTH
    Carim
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    11-22-2006
    Posts
    100

    Thank you

    Thank you for your quick answer, it is perfect but just to know if my information are in another sheet how can I write it?

    =SUMPRODUCT((Global Sheet!C5:C5000=D4)*(Global Sheet!F5:F5000<=E20)) because like this it does not work!

    Thanks

  13. #13
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Adjust formula as follows ...

    Please Login or Register  to view this content.
    'Global Sheet'! ...

    HTH
    Carim

  14. #14
    Forum Contributor
    Join Date
    11-22-2006
    Posts
    100

    Smile

    Thank you for your help and your patience!

  15. #15
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Glad your problem is fixed.

    Thanks for the feedback

    Carim

+ 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