Can you set different rounding rules based off the last 2 numbers of a cell?

c.clavin

Board Regular
Joined
Mar 22, 2011
Messages
123
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi guys, Im using a rounding formula to round to the nearest 25, but if the number ends in a 50 or 00, I want to make them 49 or 99 respectively. Is there a way to do this with a formula instead of going to helper columns? Thanks.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
The one I'm trying but isn't working is:

=IF(OR(RIGHT(Q3,2)=24,RIGHT(Q3,2)=74),SUM(L3+1),L3)

Im at a loss, very annoying
 
Upvote 0
I had to put the 24 and 74 in "" quotes then it worked. Didn't think to. Guess because its the result of a formula?
 
Upvote 0
I was asking for your existing rounding formula that rounds to the nearest 25.
The formula you have posted seems to have nothing to do with that.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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