+ Reply to Thread
Results 1 to 6 of 6

rounding question

  1. #1
    Registered User
    Join Date
    11-20-2012
    Location
    Edmonton Alberta
    MS-Off Ver
    Excel 2010
    Posts
    7

    rounding question

    I have a value 105.5248 which should round up to 105.53 when using the 2 decimal format but it is returning 105.52
    Any idea how I can fix this!

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,696

    Re: rounding question

    The rounding you are seeing is correct. To round to two decimal digits it is looking at the 4, seeing that it is less than 5, and rounding to 105.52.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: rounding question

    The 3rd decmal place is a 4, so normally this would round to 105.52. If you wanted it always to round up, then you could use the ROUNDUP function:

    =ROUNDUP(A1,2)

    or if you only wanted a certain number of values to round up (eg from 0.xx3) then you could do this:

    =ROUND(A1+0.002,2)

    Hope this helps.

    Pete

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: rounding question

    you can use a formula =ROUNDUP(A1,2)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: rounding question

    Maybe

    Please Login or Register  to view this content.
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  6. #6
    Registered User
    Join Date
    11-20-2012
    Location
    Edmonton Alberta
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: rounding question

    Thanks Pete, the =ROUND(A1+0.002,2) is what I was looking for

+ 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