# RIGHTcommand last digit in cell = zero?

#### chesspupil

##### Board Regular

I am looking for a conditional format formula that looks at the last digit in the cell and asks if the digit is zero then the conditional format is true and I will direct excel to color the cell.
All vaules are numbers. Cells are currently set to round to nearest hundredth.

examples

1.56 (false)
1.50 (true)
20.01 (false)
20.90 (true)

I thought perhaps I could do so with the LEN command or the RIGHT command or SEARCH

(Application- The timer on an X-ray machine can only select in 10th's of a minute, When I select an exposure factor (EF) (Millia-amps * time) I have a formula set up to display my milli-amp choices (also in tenths) So it takes my 30 different Milliamp choices and divides the EF to give me a time... I want the time that ends in a zero to be highlighted.

Thank you

### Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

#### ZVI

##### MrExcel MVP
Try CF formula for A1 cell:
=MOD(A1*100,10)=0

#### chesspupil

##### Board Regular
=MOD(A1*100,10)=0

That didn't do the trick... I am curious I have the round function used to 2 decimal places and the cell formatted for 2 decimal places

Adding the condition actually changes the values that anther cell uses as reference.

IS there a way I can send you the excel file if you are intrested.

#### chesspupil

##### Board Regular
Suspecting the rounding may have caused the problem with the above formula not working I made a new collum and use TRUNC to drop the extra numbers, forcing it to see a number like 1.293 as only 1.29... even when you do a little exploration and force it to see more than 2 decimal places...

thus originally you might have had 1.293 but the new cell with the Cond format applied is only working with a 2 decimal place number

So above formula still has not met the need yet.

#### chesspupil

##### Board Regular
Credit to NVBC...

=RIGHT(TEXT(A1,"0.00"))+0=0 (in the CF where Conditional format is set to Formula is

But I had to use the TRUNC function to get the CF'd column to follow along with what I needed.

Thanks,

Solved!

Replies
10
Views
251
Replies
0
Views
1K
Replies
10
Views
2K
Replies
4
Views
571
Replies
3
Views
385

### Forum statistics

1,186,163
Messages
5,956,290
Members
438,245
Latest member
bhavdip_mangukiya

### 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.

### Which adblocker are you using?

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

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