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
 

Some videos you may like

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Yogi Anand

MrExcel MVP
Joined
Mar 12, 2002
Messages
11,454
Hi RobPhenix:

Welcome to the Board!

Use =CEILING(A1,5)

Regards!
Yogi Anand
 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
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
 

RobPhenix

New Member
Joined
Nov 6, 2002
Messages
6
Wow! Fast responses, and I even get the answer I want: YES, it CAN be done!
Thanks, all, that is fantastic!
Rob W.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,623
Messages
5,625,938
Members
416,143
Latest member
JoyceMB

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
Top