+ Reply to Thread
Results 1 to 6 of 6

spreadsheet off by a penny or two

  1. #1
    Registered User
    Join Date
    09-29-2009
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2003
    Posts
    1

    Unhappy spreadsheet off by a penny or two

    I have a spreadsheet that continues to have totals that are one or two pennies off. It seems that it is due to a cells formula '=SUM(C8*0.105)'. The multiplied decimal is 3 places, but I want the result to be in 2 decimal currency format. In different situations 'TRUNC(SUM(E8:E22), 2)' or 'ROUND(SUM(E8:E22), 2)' has done the trick. I have attached an example where the correct total for column E should be $1,290.06 and I always get the wrong total which is $1,290.04. Any assistance would be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: spreadsheet off by a penny or two

    If you want the total to display the sum of the displayed values,
    try this:

    Please Login or Register  to view this content.
    That formula rounds each value to 2 decimal places BEFORE summing them.

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    01-27-2008
    Location
    Dorset, UK
    Posts
    63

    Re: spreadsheet off by a penny or two

    There is a difference between formatting a cell to two decimal places and running calculations to two decimal places. In cell E18, the formula equates to 111.0741 and this is the value stored in the cell. You display it as 111.07 but for any calculation involving this cell, the value 111.0741 is used, NOT 111.07. Only using the ROUND() function will store the value of 111.07.
    Hope this answers your question.

  4. #4
    Forum Contributor
    Join Date
    08-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    149

    Re: spreadsheet off by a penny or two

    Do the rounding where you do the multiplication, not where you do the total... so make the formula in your rows =ROUND(C8*.105,2), then it works.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: spreadsheet off by a penny or two

    The solution is the same this time, too. The formula in E8 should be:
    =ROUND(SUM(C8*$E$7),2)

    If you explained why some of the values in column E are zero and have no formula, we could construct a formula that does that for you, too, so you could just copy E8 down the whole column.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: spreadsheet off by a penny or two

    Or just =ROUND(C8 * E$7, 2)
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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