+ Reply to Thread
Results 1 to 5 of 5

Sumif Bug?

  1. #1
    Registered User
    Join Date
    05-11-2010
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    3

    Sumif Bug?

    I'm 99% sure I've stumbled across a bug in excel.

    The formula in question is

    =-SUMIF('Data Set'!$AO:$AO,"multijantn0",'Data Set'!$O:$O)

    This formula should calculate the same no matter where it is in the spreadsheet. Everything is anchored to look at the same columns

    I've got a series of cross-referenced multinested columns which are essentially adding fields to a database and then pulling the data forward into a report using a combination of sumifs, countifs, etc.

    During a routine review of the report I saw a negative number where there should be none so I started to investigate.

    I checked the data set and it has a value of $3,000 versus the formula calculation of $11,000. I removed any cell specific references and pasted the formula at the bottom of the data set (see above). It matches the $3,000.

    For curiousity I started pasting the formula onto several different worksheets within the same workbook. Each worksheet calculates a different result for the same formula. It's kind of like 2 + 2 = 4 on one sheet 7 on another sheet and 11 on the next sheet. Anyone else hear of or know of anything similar occuring?
    Last edited by mistereous; 05-11-2010 at 11:40 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,738

    Re: Sumif Bug?

    Your "sum range" doesn't contain a sheet name so it'll use column O on the sheet with the formula so if you use this formula on sheet1

    =-SUMIF('Data Set'!$AO:$AO,"multijantn0",$O:$O)

    it will sum column O in sheet1 depending on values in Data Set....but if you put the same formula in sheet2 it'll sum sheet 2 values from column O.....so it's certainly possible to get different results on different sheets. If you want to sum column O in Data Set worksheet then change to

    =-SUMIF('Data Set'!$AO:$AO,"multijantn0",'Data Set'!$O:$O)

    That formula should give you the same result wherever it is in the workbook

  3. #3
    Registered User
    Join Date
    05-11-2010
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Sumif Bug?

    Typo on my part the formula should read

    =-SUMIF('Data Set'!$AO:$AO,"multijantn0",'Data Set'!$O:$O)

    I changed the original post as well for clarification purposes.
    Last edited by mistereous; 05-11-2010 at 11:40 AM.

  4. #4
    Registered User
    Join Date
    06-03-2010
    Location
    Cambridge, UK
    MS-Off Ver
    Excel 2002 SP3
    Posts
    1

    Re: Sumif Bug?

    I have the same problem - a SUMIF formula works fine in one (any one of several) tab, but doesn't work in another tab - it returns the wrong result.
    Even more mysteriously, if I change the reference from values in C to values in D, it returns #VALUE!
    Any thoughts?

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,738

    Re: Sumif Bug?

    Can you post the formula you're using?

+ 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