+ Reply to Thread
Results 1 to 12 of 12

Sumif with multiple conditions

  1. #1
    Registered User
    Join Date
    04-18-2012
    Location
    SLC, Utah
    MS-Off Ver
    Excel 2010
    Posts
    10

    Sumif with multiple conditions

    I need to sum cells in an array when multiple conditions are met within other columns and across sheets. I need help knowing what formula would work to accomplish the following:

    Sum cells in the array found at Data1DBQ3:FSC11000 when Data1 n3:n11000 equals the number found in sheet "report1" cell i6 and

    when Data1 DBQ2:FSC2 contains text "recent" and

    when Data1 DBQ2:FSC2 contains text that matches text found in sheet "report1" cell L4.

    HELP!

  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,463

    Re: Sumif with multiple conditions

    You could try SUMIFS.

    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
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Sumif with multiple conditions

    A sample file always helpful.

    Try SUMIF with INDEX,

    Please Login or Register  to view this content.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  4. #4
    Registered User
    Join Date
    04-18-2012
    Location
    SLC, Utah
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Sumif with multiple conditions

    Based on your suggestion, I tried the following formula but got a #Value error.

    =SUMIFS(Data1!DBQ3:FSC11000,Data1!N3:N11000,Data1!N3:N11000=I6,Data1!DBQ2:FSC2,Data1!DBQ2:FSC2="*Recent",Data1!DBQ2:FSC2,Data1!DBQ2:FSC2="*L4")

    I6 is a cell that will contain a number between 1 and 160. Cell L4 will contain text with names such as Apple. And "Recent" is text. Also, I6 and L4 are in different worksheets than Data1. They are in worksheet report1.
    Last edited by bothelltw; 04-19-2012 at 02:01 PM.

  5. #5
    Registered User
    Join Date
    04-18-2012
    Location
    SLC, Utah
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Sumif with multiple conditions

    Haseeb,
    Thank you for your help. I can see in your suggested formula where you have included two of the searches/conditions I need, but I don't see the third. Also, report1!I6 is a value and Report1!L4 is text.

  6. #6
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Sumif with multiple conditions

    Can you please attach a small dummy file with your desired result? Forum Rules says how to attach a file.

  7. #7
    Registered User
    Join Date
    02-15-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Sumif with multiple conditions

    I've attached a dummy sheet

    and what it suppose to produce if a formula works

    Criterias
    1. Contract
    2. departure will always be from 1 location, ie 24
    3. destination, will be different destination points

    What i'm trying to calculate is how much volume is traveling from a 1 specific departure point but to multiple destination points.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    04-18-2012
    Location
    SLC, Utah
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Sumif with multiple conditions

    Thanks for the support and the dummy file. I cannot attach the file or any portion of the file as the information is confidential and proprietary. I have created a file that will simulate what I am working with and allow us to trouble shoot the sumif or sumifs formulas.

    See the attached file.

    Again, I need to sum cells in an array when multiple conditions are met within other columns and across sheets. I need help knowing what formula would work to accomplish the following:

    Sum cells in the array found at Data1DBQ3:FSC11000 when Data1 n3:n11000 equals the number found in sheet "report1" cell i6 and

    when Data1 DBQ2:FSC2 contains text "recent" and

    when Data1 DBQ2:FSC2 contains text that matches text found in sheet "report1" cell L4.

    Thanks for any assistance.
    Attached Files Attached Files

  9. #9
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Sumif with multiple conditions

    Try

    =SUMIFS(Data1!$DBQ$3:$DCD$3,Data1!$DBQ$3:$DCD$3,Report1!$I$6,Data1!$DBQ$2:$DCD$2,"Recent*",Data1!$DBQ$2:$DCD$2,"*"&Report1!$L$4)

    It results in 2

  10. #10
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Sumif with multiple conditions

    If I understand you correctly, use SUMPRODUCT.

    Please Login or Register  to view this content.
    You have >1700 columns, So i am not sure how long SUMPRODUCT will take for calculation.

  11. #11
    Registered User
    Join Date
    04-18-2012
    Location
    SLC, Utah
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Sumif with multiple conditions

    Thank you. It does result in 2. However, when some of the data numbers are changed, the formula stops working correctly. I am not sure why. Thanks for the assistance. The sum product formula does work.

  12. #12
    Registered User
    Join Date
    04-18-2012
    Location
    SLC, Utah
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Sumif with multiple conditions

    Thank you. The sum product formula does work. It does not take long to calculate. I will mark this solved. I really appreciate the help.

+ 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