+ Reply to Thread
Results 1 to 14 of 14

SUMIFS returning NIL on multiple conditions in one column

  1. #1
    Forum Contributor
    Join Date
    08-13-2009
    Location
    Caribbean
    MS-Off Ver
    Excel 2003
    Posts
    129

    SUMIFS returning NIL on multiple conditions in one column

    For some reason when I do SUMIFS it is returning a NIL balance when I am confident the data is right.

    For example, Column D has 5 variables in it: Red, White, Blue, Black, Gray which repeat themselves a number of times. Column E has values in it.

    D E
    Red 5
    Black 6
    White 3
    Red 2
    Blue 3
    Black 4
    White 3
    Gray 2
    Blue 1
    Red 9
    Gray 12
    Blue 3
    Black 2
    White 3
    White 4
    Gray 10

    If i Do a SUMIFS(E:E, D:D, "red", D:D, "blue", D:D, "white")

    this will return NIL. But if I do a SUMIFS on say red only it pulls the number. Any input please?

    Thanks!

  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
    44,336

    Re: SUMIFS returning NIL on multiple conditions in one column

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    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 Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: SUMIFS returning NIL on multiple conditions in one column

    There are no circumstances where D contains all of those conditions simultaneously.

    Instead, try =SUM(SUMIF(E:E,{"red","blue","white"},D:D))
    Last edited by daffodil11; 08-03-2015 at 06:58 PM. Reason: adapting version
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: SUMIFS returning NIL on multiple conditions in one column

    You need to do =sumif()+sumif()+sumif for that (hard to do from an iPad but hopefully you get the picture).

    Edit
    : wow in the time it took me to type that you got two other replies! iPads just aren't efficient.
    Last edited by Sam Capricci; 08-03-2015 at 07:00 PM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Forum Contributor
    Join Date
    08-13-2009
    Location
    Caribbean
    MS-Off Ver
    Excel 2003
    Posts
    129

    Re: SUMIFS returning NIL on multiple conditions in one column

    thank you guys very much! will give it a shot .

    for my understanding then, SUMIFS must be treated like an array if looking for multiple coniditions in a single column?

  6. #6
    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
    44,336

    Re: SUMIFS returning NIL on multiple conditions in one column

    If you use the Evaluate formula tool on the Formula ribbon, you will see that the formula evaluates each of the SUMIFS and the SUM adds the results. So, yes, an array of individual SUMIFS.

    Regards, TMS



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    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


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  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
    44,336

    Re: SUMIFS returning NIL on multiple conditions in one column

    @daffodil11: think you're adding the wrong column.

    @Sambo: there is another way See above.

    Regards, TMS

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: SUMIFS returning NIL on multiple conditions in one column

    Hi mysticmoron,

    I'm too lazy to learn these formulas if I think a Pivot Table (that doesn't need any formulas) can give me the answer I want. See if the attached, using a Pivot Table will be a better way of getting your answer.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  9. #9
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: SUMIFS returning NIL on multiple conditions in one column

    Yeah yeah, I made my own example and then tried a freehand conversion.

    @Sambo: That was my first post too. And then I remembered one of the old guys showed me how to feed a string of variables.

  10. #10
    Forum Contributor
    Join Date
    08-13-2009
    Location
    Caribbean
    MS-Off Ver
    Excel 2003
    Posts
    129

    Re: SUMIFS returning NIL on multiple conditions in one column

    Superb, thank you very much.

    unfortunately this is a part of a much larger project so it needs to be formulated. the PT cant help in this instance but thanks much for your input

    CHeers!

  11. #11
    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
    44,336

    Re: SUMIFS returning NIL on multiple conditions in one column

    Old guys?

  12. #12
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: SUMIFS returning NIL on multiple conditions in one column

    Well I admit to being an "old guy" but offhand I didn't even consider a string as a solution. Guess it's that old guy thing.

  13. #13
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: SUMIFS returning NIL on multiple conditions in one column

    :coughthatsninetyninepercentoftheforumpopulationcough:

  14. #14
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMIFS returning NIL on multiple conditions in one column

    How old is old?

    I'm 50 something! Do I "qualify" ?

    Use cells to hold the criteria:

    A1 = red
    A2 = white
    A3 = blue

    =SUMPRODUCT(SUMIF(D:D,A1:A3,E:E))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SUMIFs With Multiple Not Equal To Conditions In a Single Column
    By 5150 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-14-2015, 12:08 PM
  2. Sumifs multiple conditions
    By ksmith21 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-16-2015, 06:12 AM
  3. [SOLVED] Sumifs or Sumproduct With Multiple Conditions Help Please!
    By geepee in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-01-2013, 09:27 AM
  4. [SOLVED] Returning sum based on row and column critera (SUMIFS??)
    By PERE in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2013, 11:55 PM
  5. Sum Mulitple Column based on the multiple Conditions using sumifs function
    By JEETKAMALARORA in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-20-2012, 03:24 AM
  6. sumifs multiple conditions stuck
    By kieranbop in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-31-2011, 07:13 AM
  7. Replies: 14
    Last Post: 01-11-2010, 01:27 PM

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