I need to write a formula to us one Ceiling formula if a retail ends in 0-5 and a different Ceiling formula if a retail ends in 6-9.

snoopyfan

New Member
Joined
Jun 8, 2020
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I have a column of retails and I need to add 0.05 and then round that up to the next amount ending in 5. (Ex: $2.71 + .05 = $2.76, rounds to $2.85.)
I have been trying to use a Ceiling formula like
=Ceiling((AD5+0.05),0.05) but that only works on the retails ending in numbers 6 through 9. Any number ending in 0 through 5 ends up with a "rounded" total ending in 0 instead of a 5
I have to then enter this formula instead in the cells with incorrect results.
=Ceiling((AD5+0.10),0.05)
I would like to either find one formula that will give me the correct rounded result or can I use an "IF" formula to combine the two above?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Try rounding before adding

=CEILING(AD5,0.1)+0.05
 
Upvote 0
Thank you so much Jason, I knew there had to be an easy answer!
 
Upvote 0

Forum statistics

Threads
1,215,001
Messages
6,122,648
Members
449,092
Latest member
peppernaut

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