Conditional Formatting if two cells are not the same value AND one is not blank

nmbell

New Member
Joined
Oct 27, 2015
Messages
3
Good afternoon. I am trying to conditionally format a sheet so that when two cells are not the same value they get highlighted. I have been able to do that. However, I want the formatting to ignore this rule when the second column of cells doe snot contain a value. In the attached, I am trying to highlight the values in cell D and F o when the are not the same AND cell F is not blank. Since it is pulling accounting values, I don't know if I say is not 0 or is > 1 or if I say blank. Regardless, I am unable to get it to work and would love if someone could tell me how to get both rules to work.

Thank you!
 

Attachments

  • Conditional Formatting.png
    Conditional Formatting.png
    128.9 KB · Views: 9

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
60,076
Office Version
  1. 365
Platform
  1. Windows
Try something like this for your CF rule:
Excel Formula:
=AND(D5<>F5,F5<>"")
 

Forum statistics

Threads
1,147,734
Messages
5,742,865
Members
423,760
Latest member
photogfrog

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
Top