+ Reply to Thread
Results 1 to 6 of 6

To change the rounding of 0.5 to up not down

Hybrid View

  1. #1
    Registered User
    Join Date
    01-09-2009
    Location
    Sheffield
    MS-Off Ver
    Excel 2003
    Posts
    5

    To change the rounding of 0.5 to up not down

    Dear All,

    I have been trying for ages to get a formula where any number prefixing .5 automatically rounds up and not down as the excel standard does.

    EG,

    16.4999999 does show with no decimal places as 16.
    16.5 does show with no decimal place as 16. But I want it to round up to 17.
    and obviously 16.50000001 does indeed round to 17 anyway.

    Its purley numbers that have .5 I need to go up and not down.

    To those people out there with significantly more brains than me then please help.

    Kind regards

    Steve Wilko.
    Last edited by NBVC; 01-09-2009 at 04:31 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    If I format the cell as Number and 0 decimals, then 16.5 shows up as 17..
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,700
    Hello Steve,

    I presume you are using ROUND function.

    16.5 exactly will round up but anything below will round down, so 16.49999999 will round down to 16. If you want that number to round up then the question is, how low do you go before you round down?

    What happens to 16.4 or 16.3?

    Assuming you want to round up anything that would display as 16.5 when formatted to one decimal place, i.e. anything 16.45 or above, you could introduce a small adjustment into the formula, e.g.

    =ROUND(A1+0.05,0)

    where your number is in A1

  4. #4
    Registered User
    Join Date
    01-09-2009
    Location
    Sheffield
    MS-Off Ver
    Excel 2003
    Posts
    5

    Thanks

    Hi Thanks for the replies.

    My Excel rounds .5 figures down to the nearest whole number when I set the decimal places to 0.

    However thank you Daddylonglegs that formula wroked a treat.

    Great stuff

    Kid regards

    Steve Wilko

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    To those people out there with significantly more brains than me then please help.
    \

    I guess that's not me today... I misread your question and thought you were trying to format the cell, not create a formula in a separate cell....

  6. #6
    Registered User
    Join Date
    03-31-2006
    MS-Off Ver
    Excel 2003
    Posts
    76
    There are CEILING and FLOOR functions.

+ 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