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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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
Work like a charm. Thank u
The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers.
No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,215,700
Messages
6,126,279
Members
449,308
Latest member
VerifiedBleachersAttendee

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