# Using Roundup function

#### ShopManager

##### New Member
Hello Group,

I have an excel spreadsheet that I use to markup pricing on parts. My formula is pretty easy, however I would like it to use the roundup function as well. Basically, I want it to do the existing formula (=SUM A6/0.29) and then round up. Most of the time it comes up with a number like \$ 2.24. Is there a way to get it to round up to either a \$4.99 or \$9.99? So anything that is less than \$4.99 would round up to that and \$5.00 and above would round up to \$9.99?

### Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

#### svendiamond

##### Well-known Member
Just to clarify, you want to round up to the nearest \$5 increment, but one penny less? So the nearest \$4.99, \$9.99, \$14.99, \$19.99, etc? In which case \$5.03 would round up to \$9.99 is this all correct?

#### Tetra201

##### MrExcel MVP
Is this what you need?

=MAX(0,ROUND(CEILING(A6/0.29,4.99999999),0)-0.01)

#### Snakehips

##### Well-known Member
I had been thinking similarly with...

=IF(A6<=0,"",CEILING((A6/0.29)+0.001,5)-0.01)

#### ShopManager

##### New Member

Just to clarify, you want to round up to the nearest \$5 increment, but one penny less? So the nearest \$4.99, \$9.99, \$14.99, \$19.99, etc? In which case \$5.03 would round up to \$9.99 is this all correct?

Yes!

#### ShopManager

##### New Member
Yes that is exactly what I am trying to accomplish. Anything that comes up after the calculation, I would like it to roundup to the next \$4.99, \$9.99, \$14.99, etc. I’m not sure what kind of formula it takes.

Thanks for the help!

#### Tetra201

##### MrExcel MVP
Yes that is exactly what I am trying to accomplish. Anything that comes up after the calculation, I would like it to roundup to the next \$4.99, \$9.99, \$14.99, etc. I’m not sure what kind of formula it takes.

Thanks for the help!
Try the formula from Post #3 or Post #4.

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,167,991
Messages
5,856,683
Members
431,828
Latest member
kARTIK12345

### 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.

### Which adblocker are you using?

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

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