+ Reply to Thread
Results 1 to 3 of 3

Weird results from SUMIF

  1. #1
    Registered User
    Join Date
    01-13-2019
    Location
    Cumbria,England
    MS-Off Ver
    Office 365 home
    Posts
    2

    Weird results from SUMIF

    (First post - by no means expert, but not an idiot either). I have used this simple formula =IF(A2="Tot",SUMIF(A:A,A1,L:L),""), copied down a column; mostly it gives the correct result, but on two occasions it gives the same, manifestly wrong, figure : 9.35. The first such occasion is actually the first time the formula gives a non-null result ; the figures it should have totalled are -2.00,-2.00,-5.00,-5.00 (and there are no others so far, so it couldn't have picked up any by mistake), so how can it sum these up as 9.35 (and since these figures are at the start of the sheet, I can easily see that there are no figures anywhere in the sheet at that point from which , however they are combined, 9.35 could be produced.) The second occasion occurs as the sixth non-null result in (so far) a total of 9. In this case , the figures which are totalled as 9.35 are in fact 10.54 and 12.81 - again , a surreal result. Needless to say, I've checked a dozen times , but I'm totally baffled. I should be grateful if anyone can suggest any explanations.

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

    Re: Weird results from SUMIF

    I don't see anything in the formula that explains the incorrect result. You have not shared all of the data, so we cannot independently verify. My guess is that something about the summing condition (what is in A:A and A1) is causing those two copies of the function to sum all 6 of those values. I observe that 10.54+12.81-2-2-5-5=9.35. Something about your condition is not distinguishing between the two sums, but is combining those 2 sums together.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    01-13-2019
    Location
    Cumbria,England
    MS-Off Ver
    Office 365 home
    Posts
    2

    Re: Weird results from SUMIF

    Many thanks! I feel embarrassed not to have realised that the two sets of figures together totalled 9.356 - but that, as you suggest, makes the answer clear. Column A is formatted as text; and, as a total amateur, since we're told (in the 'Format cells' window) that 'Text format cells are treated as text even when a number is in the cell' , I assumed that if A1 held '1.1' and A27 (as it happens) held '1.10', they would be distinguished as different text strings , but obviously that doesn't happen, and they've been treated as numbers , and therefore identical.
    Anyway, it's something I can easily correct, and many thanks again for so promptly sorting me out! SOLVED.
    Last edited by lentulax; 01-14-2019 at 08:29 AM.

+ 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. sumif value results blank
    By Sasquatch2014 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-12-2017, 05:06 PM
  2. Sumif vs Sumif - same ranges different results!
    By BuZZarD73 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-18-2014, 10:01 AM
  3. [SOLVED] Averaging results of SUMIF
    By greyscale in forum Excel General
    Replies: 4
    Last Post: 08-27-2012, 10:40 PM
  4. Sumif but only for the last 5 results
    By Mikk in forum Excel General
    Replies: 3
    Last Post: 02-15-2011, 08:46 PM
  5. Extracting a delimited CSV gave weird results.
    By Aswathy in forum Excel General
    Replies: 6
    Last Post: 10-21-2008, 04:13 AM
  6. Weird sorting results
    By J Streger in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2006, 05:30 PM
  7. sort by SUMIF results
    By dcd123 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 03:05 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