+ Reply to Thread
Results 1 to 9 of 9

SUM Function not calculating properly

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    7

    SUM Function not calculating properly

    Here's the scenario:

    I have 5 connected spreadsheets in a workbook that I maintain, but did not design. One, entitled 'Scores' holds a list of employees & their location and their graded call count for the month. I then have 'Combined Trends', 'L1 Trends', and 'L2 Trends'. They are essentially the same spreadsheet as 'Scores', however 'L1 Trends' is set up to only display the call count for Location 1 and 'L2 Trends' only displays the call count for Location 2.

    On the last worksheet, 'Stats' The call count for Location 1 is 317, Location 2 is 756. I've checked it multiple times, and the Sum at the bottom of the page confirms that. However, 'Stats' also shows the total call count (From 'Combined Trends') is 1086! 317 + 756 = 1073, not 1086. I can't seem to figure out why there is a discrepancy of 13 calls.

    The same sort of small discrepancy also appears for the SUM of Green (score greater than or equal to 80) and Yellow (Score between 70-79) calls, where they are off by 5 and 3, respectively.

    Here are the formulas:
    In 'Stats'
    =SUM('L1 Trends'!L:L)
    =SUM('L2 Trends'!L:L)
    =SUM('Combined Trends'!L:L)

    In, 'Combined Trends' example of call count pulled from 'Scores'
    =IF(ISBLANK(Scores!H3),"",Scores!H3)

    In 'L1', call count pulled from 'Scores'
    =IF(ISBLANK(Scores!H3),"",IF(Scores!A3="L1",Scores!H3,""))

    In 'L2', call count pulled from 'Scores'
    =IF(ISBLANK(Scores!H3),"",IF(Scores!A3="L2",Scores!H3,""))

    Because I had been searching online for the answer before asking, I have already changed the format of the cells to Number just in case any were accidentally Text. Please help me! This is driving me batty, and its making my spreadsheet inaccurate.
    Last edited by nazre; 10-16-2013 at 03:21 PM.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUM Function not calculating properly

    Simply changing the format of a cell that contains a "Text Number" to Number, will not 'convert' that text number to a real number..

    Try copying a blank cell
    Highlighting ALL the relevant numbers (may have to repeat for each sheet)
    Right click - paste special - values - add - OK

  3. #3
    Registered User
    Join Date
    04-09-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: SUM Function not calculating properly

    Jonmo1,

    I tried this, and I'm still getting the same values that don't add up properly.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUM Function not calculating properly

    Can you post a copy of the book, without any personal/confidential information ?

  5. #5
    Registered User
    Join Date
    04-09-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: SUM Function not calculating properly

    While editing out the personal info, I noticed things weren't lining up and discovered quite a few of the location cells have an extra space in them. Is it possible that the forumula:

    =IF(ISBLANK(Scores!H3),"",IF(Scores!A3="L2",Scores!H3,""))

    Would disregard any scores that have 'L2 ' (with a space) entered into the cell rather than 'L2' (with no space)?

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUM Function not calculating properly

    Quote Originally Posted by nazre View Post
    Is it possible that the forumula Would disregard any scores that have 'L2 ' (with a space) entered into the cell rather than 'L2' (with no space)?
    Yes it would.

    Well, it wouldn't 'Ignore' it..
    It would evaluate it and see that it does NOT = "L2" exactly, therefore would return the "" instead of the value from Scores!H3

  7. #7
    Registered User
    Join Date
    04-09-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: SUM Function not calculating properly

    Wow. I removed the spaces for each employee and everything adds up perfectly now...From now on I'll have to double check the lists I get sent to set up this report.

    Thanks so much for your time, sorry it was just a small & silly mistake!

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUM Function not calculating properly

    You're welcome.

  9. #9
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: SUM Function not calculating properly

    May be
    =IF(ISBLANK(Scores!H3),"",IF(upper(trim(Scores!A3))="L2",Scores!H3,""))
    Regards,
    Vandan

+ 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. Click and Drag not Calculating Properly
    By joelbrattin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-20-2012, 06:05 AM
  2. INDIRECT formula not calculating properly
    By negcx in forum Excel General
    Replies: 1
    Last Post: 01-20-2009, 02:03 PM
  3. calculating formula not working properly
    By lnjr in forum Excel General
    Replies: 6
    Last Post: 11-16-2008, 03:36 PM
  4. Custom Function not calculating properly
    By Korae13 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-05-2006, 10:42 AM
  5. [SOLVED] Formulas not calculating properly
    By SueK in forum Excel General
    Replies: 2
    Last Post: 05-10-2005, 03:06 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