Conditional Format Compare Ranges

ozbeachbum

Board Regular
Joined
Jun 3, 2015
Messages
237
Office Version
  1. 2021
Platform
  1. Windows
I am looking for a formula that will work in Conditional Formatting where;
Column B shows Red where there is an entry in column D or H and Zero in columns E or J.
If there are no entries in columns D or H - E or J Red would not show.

341204 compare m-r X2.xlsx
ABCDEFGHIJK
2DescriptionQtyDescriptionQty
3
4TEST 01TEST 108
5TEST 13TEST 113
6TEST 26TEST 125
7TEST 35TEST 130
8TEST 48TEST 149
9TEST 59TEST 152
10TEST 62TEST 160
11TEST 70TEST 174
12TEST 819TEST 1819
13TEST 90TEST 195
Blank
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
How about
Fluff.xlsm
ABCDFHJ
1
2DescriptionQtyDescriptionQty
3
4TEST 01TEST 108
5TEST 13TEST 113
6TEST 26TEST 125
7TEST 35TEST 130
8TEST 48TEST 149
9TEST 59TEST 152
10TEST 62TEST 160
11TEST 70TEST 174
12TEST 819TEST 1819
13TEST 90TEST 195
14
Sheet6
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B4:B100Expression=OR(AND(D4<>"",F4=0),AND(H4<>"",J4=0))textNO
 
Upvote 0
Solution
Thanks for your help again, works perfectly.
I was trying AND(OR and only getting a result for H & j, I did realise that swapping them about would do the trick.
You have helped grow my knowledge.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,107
Members
453,021
Latest member
Justyna P

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