Advanced rounding question?

naclu

New Member
Joined
Jan 18, 2012
Messages
2
Hi,

I've searched some of the other threads, and I find something that is similar to what I need, but not exactly. I hope that one of the volunteers can help, and appreciate the effort in advance.

I work in retail and I'm trying to create a formula that will take a dollar amount and round it up or down, based on if the numbers after the decimal AND THEN make it end in .95.

For example, if the value is 12.33, then I need to make it 11.95. If the value is 12.78, then I need to make it 12.95.

In human terminology, I'm guessing that the formula needs to first check the numbers after the decimal. IF the numbers are < 50, then perhaps round down and then subtract .05. If the numbers are =/> 50, then round up and then subtract .05.

I understand the concept, but don't know how to implement it.

Thanks again in advance...
Nancy
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Both of those formulas worked.... The simplicity of yours, SHG, made me feel so stupid! LOL...

Thank you both so much!
 
Upvote 0
Peter's offers more flexibility if you wanted to break someplace other than at 0.5, though.
 
Upvote 0

Forum statistics

Threads
1,214,838
Messages
6,121,885
Members
449,057
Latest member
Moo4247

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