+ Reply to Thread
Results 1 to 8 of 8

SUMIF returning 0 (formatting?)

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2016
    Posts
    50

    SUMIF returning 0 (formatting?)

    Hey guys,

    I'm having trouble with a SUMIF formula only returning 0

    I've looked around already for an answer, but I can't seem to find one that fixes my problem.

    I have a the SUMIF formula set up in about 200 rows, and I have one instance of it working properly in the whole list. When I click and drag the working formula it still won't calculate anything but a 0 in the other cells.

    HOWEVER, when I click and drag the cell that the working formula is looking to (range) it will start to work in the other formulas.

    This made me believe that it was a formatting discrepancy (that the values in the range column were did not have valid formatting or something) so I used the formatting brush to apply identical formatting from the working cell to the other cells, but still no dice. This is REALLY wierding me out.

    Any ideas?

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,248

    Re: SUMIF returning 0 (formatting?)

    Without having data i.e. Excel file, it is impossible to determine the problem.

    Post a small sample containing the problem.

  3. #3
    Registered User
    Join Date
    02-06-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2016
    Posts
    50

    Re: SUMIF returning 0 (formatting?)

    Quote Originally Posted by JohnTopley View Post
    Without having data i.e. Excel file, it is impossible to determine the problem.

    Post a small sample containing the problem.

    K- here's what's going on
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,248

    Re: SUMIF returning 0 (formatting?)

    The problem lies with difference in formatting between data in "Dashboard" and "LotsofData" although format suggests they both are number.

    Copying data from Dashboard to corresponding parts in "LotsofData" solved the problem.

    Perhaps parts should always be TEXT to avoid number format problems; in some cases it thinks the Part data is a date

  5. #5
    Registered User
    Join Date
    02-06-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2016
    Posts
    50

    Re: SUMIF returning 0 (formatting?)

    Ok, now is there a way that I don't have to manually paste over the top of 450 values?

  6. #6
    Registered User
    Join Date
    02-06-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2016
    Posts
    50

    Re: SUMIF returning 0 (formatting?)

    Hey John, I feel really silly now....
    The data had been imported from a PDF, and the character code for the "-" was different than a regular typed "-" even though they appeared identical even at a high zoom. A simple find and replace fixed the problem.

    Thank you very much for your timely response to my post!

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: SUMIF returning 0 (formatting?)

    Quote Originally Posted by JohnTopley View Post
    The problem lies with difference in formatting between data in "Dashboard" and "LotsofData" although format suggests they both are number.

    Copying data from Dashboard to corresponding parts in "LotsofData" solved the problem.

    Perhaps parts should always be TEXT to avoid number format problems; in some cases it thinks the Part data is a date
    This formula in both sheets reveals a problem.

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


    Click in the formula bar in each sheet and press the F9 function key and see these arrays.

    In Lotsofdata
    {49;48;45;49;55}

    In Dashboard
    {49;49;63;53;53}

    The third character from the left should be the same in both (the "dash"). They aren't. They are CODE 45 and 63 (third character from the left).

    The two sets will never match. Do find and replace and your formula should work.

    Opps! Posted late.
    Dave

  8. #8
    Registered User
    Join Date
    02-06-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2016
    Posts
    50

    Re: SUMIF returning 0 (formatting?)

    Yeah, I just saw that, it's weird though, I thought that character code 63 was the code for "?"

+ 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. [SOLVED] SUMIF returning 0
    By TPDave in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-25-2014, 11:38 AM
  2. [SOLVED] SUMIF formula returning a 0 value
    By cf7046 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-21-2013, 01:08 AM
  3. SUMIF with INDIRECT.EXT returning #VALUE error
    By opex in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-14-2013, 10:34 AM
  4. Sumif function not returning text
    By slkelly13 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-02-2013, 06:01 PM
  5. SUMIF or IF without returning to false or zero value
    By tmkkoservo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-03-2012, 09:23 PM
  6. SUMIF - not returning expected result
    By Paul Sheppard in forum Excel General
    Replies: 4
    Last Post: 08-16-2011, 11:43 AM
  7. Need function help on returning a value from lookup or Sumif
    By spanky27 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-02-2008, 09:20 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