Using Roundup function

ShopManager

New Member
Joined
Dec 4, 2016
Messages
3
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?

Thanks for any help you can give me!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

svendiamond

Well-known Member
Joined
Jun 13, 2014
Messages
1,504
Office Version
  1. 365
Platform
  1. Windows
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?
 

Snakehips

Well-known Member
Joined
May 17, 2009
Messages
5,606
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
I had been thinking similarly with...

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

ShopManager

New Member
Joined
Dec 4, 2016
Messages
3
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
Joined
Dec 4, 2016
Messages
3
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
Joined
Oct 14, 2016
Messages
3,760
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.
 

Forum statistics

Threads
1,172,007
Messages
5,878,707
Members
433,365
Latest member
lw10724

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