+ Reply to Thread
Results 1 to 6 of 6

Excel rounding problem

Hybrid View

  1. #1
    Registered User
    Join Date
    12-17-2007
    Posts
    3

    Excel rounding problem

    Hello, sorry my english is not too good, hopefully somebody understands this?

    Problem with rounding, Excel 2003:

    A...........B
    11325 11
    11814 12
    11769 12
    11552 12
    46460 47

    Column B is column A rounded to thousands, the last row is sum of the numbers above. Obviously, the rounded total is not correct.

    Question: How to format cells in column B so that despite of rounding, accuracy in calculation is maintained and the result would be rounded to 46?

    Problem: Even if the accurary is maintained, the results seems wrong on display, when looking just the column B: 11+12+12+12<>46. How to solve this? It seems to me that the only way would be to round e.g. the last number 11552 slightly incorrectly to 11: 11+12+12+11=46. How to tell this to Excel, to round numbers incorrectly so that accuracy on display would be achieved, beginning from the number, where the original rounding error would be smallest?

    Many thanks in advance!

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi

    Amend B1 formula to:

    =A1

    and copy down. Chnage the number format (Format>Cells>Number tab) to Custom:

    0,;-0,;0

    Only the display is thus rounded, and not the actual numbers themselves.

    Richard

  3. #3
    Registered User
    Join Date
    12-17-2007
    Posts
    3
    Hello,

    Somehow this doesn't seem to work, with custom format "0,;-0,;0" e.g. number

    "85 323 819,31"

    displays as:

    "85323819,"

    ?

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Why do you have a comma between your ten's place and your hundreds instead of between hundreds and thousands? When you type in your number are you leaving spaces as you did in this forum? If so, it's going to format your entry as text and not as a number. Please clarify.

    ChemistB

  5. #5
    Registered User
    Join Date
    12-17-2007
    Posts
    3
    Hello !

    I type in the number as usual without spaces, like this:

    85323819,31

    Excel shows space as a thousand separator and comma as decimal separator:

    85 323 819,31

    I guess this is more like european way of showing large numbers, american would look like this:

    85,323,819.31

    ?

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Ahhhh, it must be then that the formatting that Richard gave you would be the American way to have Excel begin at the thousands place. In
    0,;-0,;0
    the commas represent the thousands place holder.

    Try looking in the Help under "Create a Custom Number format" to see how it is done in your system.

    ChemistB

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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