Conditional Formatting_Urgent

taruna1986

New Member
Joined
Feb 8, 2022
Messages
35
Office Version
  1. 365
Hi,

I am trying to change the color of a cell where variance is zero through conditional formatting. But since there are decimal values after zero, the system is not letting me apply conditional formatting.

What formula should I put in so that conditional formatting ignores decimals after zero?

Appreciate if somebody could help.

Thanks
Taruna
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Thanks to both of you for a quick reply. Is it also possible to apply Else condition with the formula =AND(A1<1,A1>-1) in conditional formatting? I mean if it is not zero then change the color to red.

Attaching below the snip of my work.

1644971577739.png
 
Upvote 0
Hi,

Try:

=INT(A1)=0

You'll need 2 separate CF for 2 different colors:

=INT(A1)=0
for 0 values (ignoring fractions)

=INT(A1)<>0
for values Not equal 0
 
Upvote 0
You'll need 2 separate CF for 2 different colors:

=INT(A1)=0
for 0 values (ignoring fractions)

=INT(A1)<>0
for values Not equal 0

If you may have negative values, you can use these:

=INT(ABS(A1))=0

=INT(ABS(A1))<>0
 
Upvote 0

Forum statistics

Threads
1,223,250
Messages
6,171,036
Members
452,374
Latest member
keccles

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