+ Reply to Thread
Results 1 to 16 of 16

Please help! Using SUMIFS but returning 0

  1. #1
    Registered User
    Join Date
    09-14-2016
    Location
    Miami, FL
    MS-Off Ver
    Professional Plus 2013
    Posts
    8

    Unhappy Please help! Using SUMIFS but returning 0

    HELP. I have been trying to figure out why I am returning 0 with my formula. Please see below:
    SUMIFS('Data Detail2'!B:B, 'Data Detail2'!F:F, C10,'Data Detail2'!M:M,"Won",'Data Detail2'!G:G,"2014")

    Where B is a column is the record count (this is what I want to sum)

    based on:
    Column F is Seller Name (referenced by a cell)
    Column M is Status of deal (won or lost)
    Column G is Year

    Please help..I need this tonight..

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

    Re: Please help! Using SUMIFS but returning 0

    Your formula looks OK so it must be a data problem.

    What results do you get from these formulas:

    =COUNTIF('Data Detail2'!F:F,C10)

    =COUNTIF('Data Detail2'!M:M,"Won")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Please help! Using SUMIFS but returning 0

    If SUMIFS() is returning 0, that suggests to me that there are no records/rows where
    column F=the seller name in C10 and
    column M=the text string "won" and
    column G = the text string "2014"
    In order to debug this, you need to double and triple check you data and your criteria ranges to make sure there are matching values. Some specific suggestions of things to look for:
    the text string "2014" is not the same as the number 2014. Are you years in column G actual numbers, or are they "numbers stored as text"? Make sure your criteria and criteria range are the same data type.
    make sure there are no leading/trailiing spaces or other non-printing characters in your text strings. Excel does not do a "fuzzy" match in this case. It will be looking for exact matches of the text strings, so make sure they match exactly.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Please help! Using SUMIFS but returning 0

    Well, there is a limit to what we can do without seeing your workbook.

    Check column B - are the values in there actually text values that look like numbers? Use this formula somewhere:

    =SUM('Data Detail2'!B:B)

    Does it return a number or zero?

    Do you actually have any records which match all three criteria? Is the Seller's Name in C2 spelt the same as how it appears in column F? Are there any leading or trailing spaces?

    Does column G actually contain the year, or is it a date and you want to include only those records where the year is 2014?

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    09-14-2016
    Location
    Miami, FL
    MS-Off Ver
    Professional Plus 2013
    Posts
    8

    Re: Please help! Using SUMIFS but returning 0

    My thoughts too. I just have no idea where to begin with how my data could be wrong. They both return numbers:
    371
    2518

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

    Re: Please help! Using SUMIFS but returning 0

    See if you get a correct result with this formula:

    =SUMIFS('Data Detail2'!B:B,'Data Detail2'!F:F,"*"&C10&"*",'Data Detail2'!M:M,"*Won*",'Data Detail2'!G:G,"2014")

    Added wildcards to the criteria.

  7. #7
    Registered User
    Join Date
    09-14-2016
    Location
    Miami, FL
    MS-Off Ver
    Professional Plus 2013
    Posts
    8

    Re: Please help! Using SUMIFS but returning 0

    how can i check the data type? I've made sure they matched exactly when referenced but not sure how to check the underlying properties of the cell..

  8. #8
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: Please help! Using SUMIFS but returning 0

    Can you upload a small samples? Sometime that happens if the data format does not match. So it would be better if we can see your data.

  9. #9
    Registered User
    Join Date
    09-14-2016
    Location
    Miami, FL
    MS-Off Ver
    Professional Plus 2013
    Posts
    8

    Re: Please help! Using SUMIFS but returning 0

    Ah ha! your formula for Column B returned 0. I changed it to 'Number' as a format, but still returns 0. What should it be?

  10. #10
    Registered User
    Join Date
    09-14-2016
    Location
    Miami, FL
    MS-Off Ver
    Professional Plus 2013
    Posts
    8

    Re: Please help! Using SUMIFS but returning 0

    Sadly that did not work, looks like it may be what's in my data?

  11. #11
    Registered User
    Join Date
    09-14-2016
    Location
    Miami, FL
    MS-Off Ver
    Professional Plus 2013
    Posts
    8

    Re: Please help! Using SUMIFS but returning 0

    I checked and all are columns are 'Text' in the Number section on the Home Ribbon

  12. #12
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Please help! Using SUMIFS but returning 0

    So the numbers in column B are actually text values. Select column B, then click on Data | Text-to-columns and then click on Finish on the first panel. That should convert them to proper numbers.

    Hope this helps.

    Pete

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

    Re: Please help! Using SUMIFS but returning 0

    Deleted by TV
    Last edited by Tony Valko; 09-14-2016 at 07:17 PM.

  14. #14
    Registered User
    Join Date
    09-14-2016
    Location
    Miami, FL
    MS-Off Ver
    Professional Plus 2013
    Posts
    8

    Re: Please help! Using SUMIFS but returning 0

    Pete_UK!! That was the problem. wow i never would have figured that out. THANK YOU and THANKS to all!!!!!

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

    Re: Please help! Using SUMIFS but returning 0

    Good deal. Thanks for the feedback!

  16. #16
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Please help! Using SUMIFS but returning 0

    Glad to help - thanks for the rep.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Pete

+ 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 returning 0's
    By rcdavis28 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-26-2016, 04:12 PM
  2. [SOLVED] SUMIFS Always Returning '0' in Excel
    By dean_of_admissions in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-14-2014, 11:53 AM
  3. [SOLVED] SUMIFS returning #VALUE
    By mglassco in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-06-2013, 06:45 PM
  4. SUMIFS returning #VALUE!
    By HarvardMajesty in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-27-2013, 10:35 PM
  5. [SOLVED] SUMIFS formula returning #VALUE!
    By Kuehl5000 in forum Excel General
    Replies: 3
    Last Post: 05-25-2012, 04:11 PM
  6. SUMIFS returning #VALUE!
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-08-2011, 08:59 AM
  7. Sumifs Value Returning Problem:
    By pipsturbo in forum Excel General
    Replies: 2
    Last Post: 09-23-2009, 04:39 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