+ Reply to Thread
Results 1 to 14 of 14

Round up to nearest quarter

  1. #1
    Registered User
    Join Date
    11-16-2006
    Location
    UK
    Posts
    5

    Round up to nearest quarter

    Please can anyone help me to create a formula that will round a total to the nearest 0.25?

    e.g. 0.45 would be 0.50, 25.22 would be 25.25, 4.67 would be 4.75, 1.88 would be 2.00, etc.

    Many thanks.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482
    =ROUND(A1*n,0)/n

    therefore to nearest quarter would be

    =ROUND(A1*4,0)/4

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning Dunderlin

    davesexcel's already provided you with a perfectly adequate answer, but just in the interests of some of Excel's more obscure functions, you could look at the Ceiling function :

    =CEILING(A1,0.25)

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  4. #4
    Registered User
    Join Date
    03-07-2013
    Location
    Crawley, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Round up to nearest quarter

    I have tried both of these methods but neither seems to work. Try entering 17.7 and neither gives 17.75 ??

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Round up to nearest quarter

    =ROUND(A1*4,0)/4
    I entered 17.7 in A1 and I got 17.75
    What are you getting?

  6. #6
    Registered User
    Join Date
    03-07-2013
    Location
    Crawley, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Round up to nearest quarter

    Now its working thanks - my error

  7. #7
    Registered User
    Join Date
    04-11-2016
    Location
    California
    MS-Off Ver
    late excel
    Posts
    1

    Question Re: Round up to nearest quarter

    great spot and thank you to whoever reads this and a giant thank you to anyone who can help.
    We need to round up to the nearest 25 in a cell. We would like to apply the formula to the cell
    instead of creating another cell with formula reading the cell with data
    We need to up quantities for printing on even sheets.
    the page has 25 tags. column 7 has all the qtys.
    not sure if it is possible without creating a new column for the result
    =ROUNDUP(A1/25,0)*25 is what i used and it worked but it is in another column to get the value
    we would like to be able to update the value with the formula in the original cell
    hope it made sense, thank you in advance.

    Glen

    949-981-6822

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Round up to nearest quarter

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Round up to nearest quarter

    magictrix welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  10. #10
    Registered User
    Join Date
    06-04-2018
    Location
    US
    MS-Off Ver
    O365
    Posts
    2

    Re: Round up to nearest quarter

    Quote Originally Posted by dominicb View Post
    Good morning Dunderlin

    davesexcel's already provided you with a perfectly adequate answer, but just in the interests of some of Excel's more obscure functions, you could look at the Ceiling function :

    =CEILING(A1,0.25)

    HTH

    DominicB
    Just stumbled on this ~2 years later, but wanted to give a heads up that this solution only rounds up and doesn't go to the nearest. For example, if you have 12.8 hours, you may want to round to 12.75 and not up to 13.

    In my test point, I have a timesheet that adds hours in 15 minute increments and have an overall hourly goal of 80% to billable to clients. Trying to compare whether or not I'm hitting the target using ceiling wasn't working. The simple round/divide by 4 solution posted by Davesexcel worked perfectly.

  11. #11
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Round up to nearest quarter

    Quote Originally Posted by l%gT7Ic5J8s3 View Post
    Just stumbled on this ~2 years later........
    Just a note, this thread is 12 years old.

  12. #12
    Registered User
    Join Date
    06-04-2018
    Location
    US
    MS-Off Ver
    O365
    Posts
    2

    Re: Round up to nearest quarter

    Quote Originally Posted by davesexcel View Post
    Just a note, this thread is 12 years old.
    Hah! I had only seen the reply from 2016 and didn't realize the original was from 2006. Either way - helped me out this morning.

  13. #13
    Registered User
    Join Date
    11-29-2017
    Location
    newport
    MS-Off Ver
    MS Office 365
    Posts
    21

    Re: Round up to nearest quarter

    Hi,

    Sorry to jump on this thread but I have a related query.

    Is there a way I can use a ROUND formula to both round up or down to a certain figure?

    what I mean is that people can enter a piece of data that reflect a time stamp. when they enter a time with either half hour (0.3 ) or a full hour (1) then I want it to stay as it is but if they enter 0.15, I want it to round down to 0 and if they enter 0.45 (45mins) I want to round down to 0.3

    Thanks

  14. #14
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Round up to nearest quarter

    Quote Originally Posted by cdhampshire View Post
    Hi,

    Sorry to jump on this thread but I have a related query.

    Is there a way I can use a ROUND formula to both round up or down to a certain figure?

    what I mean is that people can enter a piece of data that reflect a time stamp. when they enter a time with either half hour (0.3 ) or a full hour (1) then I want it to stay as it is but if they enter 0.15, I want it to round down to 0 and if they enter 0.45 (45mins) I want to round down to 0.3

    Thanks
    Please start a new thread. Don't add a new question to a 12 year old thread.
    This question is marked as "Solved", there would be no reason for somebody to even open the post to see what it is about.

+ 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