Conditional Formatting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Using Conditional Formatting, how do I highlight cells that have integers &
those that have decimals?
 
Select the cells that you want to format
Choose Format>Conditional Formatting
From the first dropdown, choose Formula Is
In the formula box, enter a formula that refers to the active cell:
=B2/INT(B2)=1
Click the Format button
Select the formatting you want for integers, click OK

Click Add
From the first dropdown, choose Formula Is
In the formula box, enter a formula that refers to the active cell:
=B2/INT(B2)<>1
Click the Format button
Select the formatting you want for integers, click OK, click OK

Note: numbers with .0 will be highlighted as integers
 
Or maybe a formula like:

=(b2=int(b2))
or
=(b2<>int(b2))

Bad things may happen when Int(b2) = 0.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top