roundup: to the nearest FIVE?

RobPhenix

New Member
Joined
Nov 6, 2002
Messages
6
Well, the subject heading pretty much states the question: Can I configure ROUNDUP to work to the next highest FIVE instead of whole number? Or is there any other function I can use to make Excel do this for me?
Like if the answer to a formula is 2.30, I'd like it to change the answer to 5.00.
Is this possible? THANKS!
Rob
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
For info this also works

= 5*ROUNDUP(A1/5,0)

Here are general functions that will round to whatever you want

Function RdUp(Nmber As Variant, Nearest As Integer)
RdUp = Nearest * Application.RoundUp(Nmber / Nearest, 0)
End Function

Function RdDn(Nmber As Variant, Nearest As Integer)
RdDn = Nearest * Application.RoundDown(Nmber / Nearest, 0)
End Function
This message was edited by VoG™ on 2002-11-07 18:11
 
Upvote 0
Wow! Fast responses, and I even get the answer I want: YES, it CAN be done!
Thanks, all, that is fantastic!
Rob W.
 
Upvote 0

Forum statistics

Threads
1,214,897
Messages
6,122,141
Members
449,066
Latest member
Andyg666

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top