Conditional formatting mixes equal up

Vcoppens

Board Regular
Joined
Apr 16, 2012
Messages
90
Hi, it seems to be a small thing but can’t wrap my mind to it.

I have 2 columns.

One has a formula resulting in a number. The other one has plain numbers.

I need to use 3 colors for
Greater than (green)
Smaller than (red)
Equal to (yellow)

I know to use =value(b1)=value(a1)

But where the greater and smaller work fine. When both columns have equal numbers (one a true number and the other a formula) it randomly colors it green, red or yellow.

Has anyone a suggestion?

Thank you very much!
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Depends on your formula, but if the plain number is 3 the formula might be returning 3.1, or 2.9 with the cell formatted to show 3.
 
Upvote 0
Thank you for your reply.
Is there a way to go around this issue?
Thank you for any suggestions.
 
Upvote 0
You could use
=A1=ROUND(B1,0)
Where B1 is the cell with a formula
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,816
Members
449,049
Latest member
cybersurfer5000

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