+ Reply to Thread
Results 1 to 4 of 4

Excel SUM and COUNT fuctions are adding +1 to the result, how to fix this?

  1. #1
    Registered User
    Join Date
    06-13-2023
    Location
    Texas
    MS-Off Ver
    Office 365
    Posts
    1

    Question Excel SUM and COUNT fuctions are adding +1 to the result, how to fix this?

    Hello, I have an excel sheet that I set up and am trying to add a SUM and COUNT function at the bottom of a specific column. The issue is that these functions keep adding +1 to the result, and I have no idea why. Normally I would have just accepted the values given by the functions, but I know they are wrong for 2 reasons. 1) because this sheet was only created to verify another table, so I know what the results are supposed to be, and 2) when I select the cells in this column the, SUM and COUNT displays on the bottom right of the spreadsheet have the correct values, while the functions within the spreadsheet are exactly those values +1, as shown in my screenshot.

    I did a test where I created a column of 5*1s, and the SUM and COUNT functions both gave 5, so in that small scale they worked. What could be wrong with the larger column to be causing this error? The values are all whole numbers, 0s, 1s, and 2s. The column was created using a VLOOKUP function to copy them from another sheet.

    excel sum count error.png

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,847

    Re: Excel SUM and COUNT fuctions are adding +1 to the result, how to fix this?

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Excel SUM and COUNT fuctions are adding +1 to the result, how to fix this?

    I'm confident that an excel sum function wouldn't be giving a wrong answer, so you need to look for something else.

    Are you sure the numbers are whole numbers or could they just be formatted as whole numbers? (see attached example)

    Same with the COUNT function. Are you sure your range doesn't include the 'Sum' cell?
    Attached Files Attached Files
    Last edited by Croweater; 06-13-2023 at 08:21 PM.

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Excel SUM and COUNT fuctions are adding +1 to the result, how to fix this?

    Your data is clearly filtered. The status bar sum/count will exclude rows hidden by the filter, whereas a SUM formula (or COUNT) will not.
    Rory

+ 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] Help with Countif and If or fuctions
    By nr6281 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-02-2023, 06:56 PM
  2. [SOLVED] Adding IFERROR to fuctions to return blank cell instead of '0'
    By aabbey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-13-2018, 11:13 AM
  3. Nested Fuctions
    By ben.robeck in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-19-2016, 04:13 PM
  4. I Need help with excel fuctions IF, AND, OR
    By Future Leader in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-27-2013, 05:47 AM
  5. [SOLVED] Excel problem with fuctions
    By sean-dowling-04 in forum Excel General
    Replies: 3
    Last Post: 04-19-2012, 12:17 PM
  6. VLookup Fuctions
    By nicolachen in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-22-2007, 12:06 PM
  7. Setting for Excel automatically show count result in list ?
    By Andrew Tan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-19-2006, 10:40 PM

Tags for this Thread

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