Conditional Formatting ignore specific text

Tryingtoresolve

New Member
Joined
Aug 28, 2023
Messages
24
Office Version
  1. 365
Platform
  1. Windows
I am struggling with a conditional format to work I'm trying to get one cell to change colour if higher than another I can make this work but I'm trying to get it to ignore N/A within the column I've tried using this =IF(O2>U2),"N/A) it accepts it and changes the cell where its higher Qty than U2 but still highlights N/A within the cell as well
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I think a second Conditional Formatting rule would solve this...
Book1.xlsx
AB
152
2233
33232
4N/A42
5420
6308
72842
8N/A14
91512
101027
112213
123248
131050
14N/A23
153340
16509
171838
182022
191218
20N/A45
214949
222912
Sheet5
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1:B22Expression=A1="N/A"textYES
B1:B22Expression=A1>B1textNO

Hope that helps,

Doug
 
Upvote 0
It could be achieved with a single rule:

=AND(O2>U2,O2<>"N/A")

Change the references to suit your data.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,956
Members
449,096
Latest member
Anshu121

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