+ Reply to Thread
Results 1 to 9 of 9

How to always round up to nearest 9

  1. #1
    Registered User
    Join Date
    01-09-2018
    Location
    West Midlands, England
    MS-Off Ver
    2016
    Posts
    75

    How to always round up to nearest 9

    I need a formula which will always round a figure up to the nearest 9.

    For example, I have 121 which would need to be 129.

    I am currently using this formula:

    =ROUNDUP(A1,-1)-1

    However, if my figure is a whole number e.g. 100 it is rounded down to 99. I would need it to be 109.

    Thanks.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: How to always round up to nearest 9

    In B1, copied down:

    =IF(A1="","",INT(MAX(5,(A1-5))/10)*10+9)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How to always round up to nearest 9

    This will do it

    =INT(A1/10)*10+9
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: How to always round up to nearest 9

    Dohh!! Just realised mine doesn't work at all!!!

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: How to always round up to nearest 9

    or
    =CEILING(A1+1,10)-1
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How to always round up to nearest 9

    Quote Originally Posted by Glenn Kennedy View Post
    Dohh!! Just realised mine doesn't work at all!!!
    Looks very sophisticated though!
    If it hadn't been for your above statement I was gonna start calling you Professor :-)

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: How to always round up to nearest 9

    You can save the flattery for later!!!

  8. #8
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: How to always round up to nearest 9

    Quote Originally Posted by Dotreena View Post
    =ROUNDUP(A1,-1)-1
    Try:

    =ROUNDUP(A1-9,-1)+9

  9. #9
    Registered User
    Join Date
    01-09-2018
    Location
    West Midlands, England
    MS-Off Ver
    2016
    Posts
    75

    Re: How to always round up to nearest 9

    Thank you all for all the options!

    Working great.

+ 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] How to round to nearest .01 and round down if thousands place is .005
    By dredre609 in forum Excel General
    Replies: 5
    Last Post: 09-29-2014, 11:47 AM
  2. [SOLVED] Round Cell to Nearest 0.25 up-to 1.0 then to nearest 0.5
    By haynesc87 in forum Excel General
    Replies: 4
    Last Post: 05-30-2012, 01:38 PM
  3. Round to the nearest 9
    By gaspower in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2008, 06:00 PM

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