conditional format to last digit

rikvny02

Board Regular
Joined
Aug 9, 2022
Messages
78
Office Version
  1. 365
Platform
  1. Windows
Hello All
I'd like to conditional format a cell if the last digit in the cell is not .05 or .00
ex. 12.23 would be highlighted.
1696000424050.png


Any help would be very grateful.

Thanks
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try highlighting using a formula like this.

=AND(RIGHT(E15,2)<>"00",RIGHT(E15,2)<>"05")

note: change the cell refrences to match your sheet.
 
Upvote 0
Try highlighting using a formula like this.

=AND(RIGHT(E15,2)<>"00",RIGHT(E15,2)<>"05")

note: change the cell refrences to match your sheet.
Thanks for your reply.

I need to rephrase my question. I need to highlight any number that does not end in 0 or 5. Meaning the second decimal place. ex. 1.23 would be highlighted but 1.25 would not.

Sorry for being difficult.
 
Upvote 0
Give this formula a try:
=E15-0.05*INT(E15/0.05)

again changing cell references accordingly...
 
Upvote 0
Solution

Forum statistics

Threads
1,215,086
Messages
6,123,043
Members
449,092
Latest member
ikke

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