+ Reply to Thread
Results 1 to 5 of 5

How to round up to 0.25, 0.5, 0.75, 0.95

  1. #1
    Registered User
    Join Date
    09-09-2018
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    1

    How to round up to 0.25, 0.5, 0.75, 0.95

    Hi

    Hope you fine all ,

    How to round up to 0.25, 0.5, 0.75, 0.95 EXCEPT the Whole number to ( same number - 0.05 )

    for ex.

    10.22 = 10.25
    10.33 = 10.5
    10.66 = 10.75
    10.82 = 10.95
    10 ( Whole number ) = 9.95

    Thanks in advanced

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,906

    Re: How to round up to 0.25, 0.5, 0.75, 0.95

    Hi Ahmedn,

    Use the Function ROUNDUP()
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,625

    Re: How to round up to 0.25, 0.5, 0.75, 0.95

    Try this. In B2 then drag down.

    =IF(A2="","",IF(MOD(CEILING(A2,0.25),1)=0,CEILING(A2,0.25)-0.05,CEILING(A2,0.25)))
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How to round up to 0.25, 0.5, 0.75, 0.95

    Another way

    =IF(A2="","",INT(A2)+LOOKUP(MOD(A2,1),{0,0.01,0.26,0.51,0.76},{-0.05,0.25,0.5,0.75,0.95}))

  5. #5
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: How to round up to 0.25, 0.5, 0.75, 0.95

    Quote Originally Posted by Ahmed2018 View Post
    How to round up to 0.25, 0.5, 0.75, 0.95 EXCEPT the Whole number to ( same number - 0.05 )
    Are you sure? So you want the following:

    10.01 -> 10.25?
    10.26 -> 10.50?
    10.51 -> 10.75?
    10.76 -> 10.95?

    What about 10.004, which only appears to be 10.00 if the cell format displays 2 decimal places: 9.95 or 10.25?

    Or do your original numbers (before rounding up) already have only 1 or 2 decimal places, either because they are entered that way, or because the calculation is explicitly rounded (not just relying on cell formatting, unless you have set "Precision as displayed")?

+ 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] Custom formulas that will round up when a condition is met or round down
    By cinstanl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2016, 01:32 PM
  2. Replies: 5
    Last Post: 01-30-2015, 11:34 AM
  3. Replies: 2
    Last Post: 12-06-2014, 01:58 PM
  4. [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
  5. [SOLVED] Conditional Round up or Round up Function
    By cdmterence in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-18-2013, 06:03 PM
  6. Counting to a specified numberin round, then add one to round
    By McG_84 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-10-2013, 04:20 PM
  7. [SOLVED] How do I ROUND() round off decimals of a column dataset?
    By Højrup in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2005, 07: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