+ Reply to Thread
Results 1 to 8 of 8

SUMIF formuka is giving the incorrect result?

  1. #1
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    SUMIF formuka is giving the incorrect result?

    I have approximately 60 000 rows of product names. Using REMOVE DUPLICATES, I have about 3 000 rows of data. The total units of the 60 000 rows is 349 981 but when I use SUMIF on the unique products, I get 350 067? This does not make sense to me and I would appreciate any insight as to why this could be?
    Thanks in advance.
    Last edited by Aland2929; 11-17-2013 at 10:23 AM.

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,630

    Re: SUMIF formuka is giving the incorrect result?

    It seems indeed strange; but without the file and/or formulas we can't where it goes wrong.
    Please post (a part off) the file.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    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
    47,993

    Re: SUMIF formuka is giving the incorrect result?

    Presumably some of the "duplicates" had negative values that have been removed.

    You don't tell us which columns you used to do the duplicate comparison, or which columns are being checked and summed.

    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


  4. #4
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: SUMIF formuka is giving the incorrect result?

    I column A, I have the product names (60 000 rows). In column B, I have units (total of column B is 349 981). I copied column A to column E and removed the duplicates (3 000 rows). In column F, I used the SUMIF formula (Column A is RANGE, Column E is criteria and Column B is SUM range). There are no minus numbers in column B?
    Thanks in advance

  5. #5
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,630

    Re: SUMIF formuka is giving the incorrect result?

    How did you get your unique values in column ?
    Is the first value realy unique, try this formula to check: =COUNTIF(e1:e60000;F1)
    What is the exact 'sumif' - formula?

  6. #6
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: SUMIF formula is giving the incorrect result?

    I used: DATA - REMOVE DUPLICATES to get the unique values. The formula is: SUMIF(A1:A60000,E1,B1:B60000).I have tested column E by using DATA - REMOVE DUPLICATES and no duplicates are found? I am sure the formula is correct but can't figure this out?
    Last edited by Aland2929; 11-17-2013 at 10:22 AM.

  7. #7
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,630

    Re: SUMIF formuka is giving the incorrect result?

    Did you notice the checkbox 'My data has headers'
    Try using this formula:
    SUMIF($A$1:$A$60000,E1,$B$1:$B$60000)

    If this doesn't help we realy need your xls file

  8. #8
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: SUMIF formuka is giving the incorrect result?

    I did change the formula to exclude the headers but still get the same result. I also tried using DATA - ADVANCED - UNIQUE RECORDS ONLY but still get different totals? Unfortunately, I can't attach the data so I will have to continue to try and figure this one out but thanks to all for your help.

+ 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] ROUND formula giving incorrect result
    By Marvo in forum Excel General
    Replies: 11
    Last Post: 08-19-2012, 12:15 PM
  2. Array Formulas Giving incorrect value
    By ChemistB in forum Excel General
    Replies: 6
    Last Post: 02-28-2011, 01:16 PM
  3. Replies: 0
    Last Post: 09-23-2008, 02:03 PM
  4. Sumif formula not giving result
    By abanerji in forum Excel General
    Replies: 5
    Last Post: 06-13-2006, 02:25 PM
  5. Formula giving incorrect answer...
    By Jambruins in forum Excel General
    Replies: 3
    Last Post: 02-25-2005, 03:06 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