+ Reply to Thread
Results 1 to 9 of 9

Rounding error

  1. #1
    Registered User
    Join Date
    02-23-2017
    Location
    Seattle
    MS-Off Ver
    Mac 15
    Posts
    24

    Rounding error

    Hi everyone. I may my cells formatted to accounting 2 decimal places. 29.93 is entered as 29.295. the cell that says 70.70 is the sum of 29.93 and 40.78. Why is it showing 70.70 instead of 70.71? thanks

    05/16/17 qqw $29.93 $29.93
    qwq $29.93 $10.85 $40.78 $70.70

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Rounding error

    I'm assuming that you meant "29.93 is entered as 29.925"

    What is 40.78 entered as? Is that a hard-coded value or the result of a formula?

    If 40.78 was actually 40.775, that would explain your issue.
    Last edited by 63falcondude; 05-22-2017 at 11:41 AM.

  3. #3
    Registered User
    Join Date
    02-23-2017
    Location
    Seattle
    MS-Off Ver
    Mac 15
    Posts
    24

    Re: Rounding error

    my bad, .925 is correct.

    40.78 is =SUM(D105:F105) which is $29.93 + $10.85

  4. #4
    Registered User
    Join Date
    02-23-2017
    Location
    Seattle
    MS-Off Ver
    Mac 15
    Posts
    24

    Re: Rounding error

    yea, when i hard code 40.78 is fixes it. what do i need to do to fix it formula wise? thanks

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Rounding error

    Quote Originally Posted by lemonbug View Post
    yea, when i hard code 40.78 is fixes it. what do i need to do to fix it formula wise? thanks
    It depends what you mean by "fix".
    If you want to round the sum to 2 decimal places (i.e. change 40.775 to 40.78), you can change your sum formula to =ROUND(SUM(D105:F105),2)

  6. #6
    Registered User
    Join Date
    02-23-2017
    Location
    Seattle
    MS-Off Ver
    Mac 15
    Posts
    24

    Re: Rounding error

    yea that works thanks. I just need the total to be 70.71 instead of 70.71 for accounting purposes. Thanks!

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Rounding error

    Quote Originally Posted by lemonbug View Post
    yea that works thanks. I just need the total to be 70.71 instead of 70.71 for accounting purposes. Thanks!
    You're welcome, glad to help.

    When rounding, keep in mind that you want to round as late as possible to avoid rounding errors. [e.g. ROUND(x+y) will be more accurate than ROUND(x)+ROUND(y)]

  8. #8
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Rounding error

    Hi

    if your cell is formatted to 2 digit use this formula to add (CSE formula) =SUM(ROUND(YourSumRangeHere,2))

    otherwise SUM will add actual cell value

  9. #9
    Registered User
    Join Date
    02-23-2017
    Location
    Seattle
    MS-Off Ver
    Mac 15
    Posts
    24

    Re: Rounding error

    makes sense. thanks everyone.

+ 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] Rounding Error
    By EverClever in forum Excel General
    Replies: 9
    Last Post: 12-16-2014, 01:25 PM
  2. Rounding error?
    By peter_h in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-26-2013, 10:07 AM
  3. [SOLVED] Is this a rounding error? and if so, how do I fix it?
    By plamb in forum Excel General
    Replies: 5
    Last Post: 01-09-2013, 07:23 AM
  4. Rounding Error Help
    By WAW in forum Excel General
    Replies: 2
    Last Post: 01-11-2011, 01:34 PM
  5. rounding error?
    By tsatsos007 in forum Excel General
    Replies: 1
    Last Post: 12-07-2007, 06:10 AM
  6. [SOLVED] rounding error
    By Shawn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-05-2005, 08:05 AM
  7. Rounding Error
    By Ellis Yu in forum Excel General
    Replies: 6
    Last Post: 02-23-2005, 04:06 AM

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