Conditional Formatting Formula with an OR statement

C_Leam

New Member
Joined
Sep 28, 2022
Messages
6
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
  2. Web
I'm doing a conditional format formula to highlight a cell if any cells within a range don't match cells in another range. Unfortunately, the only formula I could come up with is:

=OR(E2<>L2,F2<>M2,G2<>N2,H2<>O2,I2<>P2,J2<>Q2,K2<>R2)

Is there a more efficient way of creating this formula so i don't need to keep adding to it?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
may be:

Code:
=OR($L$2:$R$2<>$E$2:$K$2)
It's working. Needed to make it relative reference. No $'s.

Strange, when I tried using a range last time it came back with errors.
No matter. Thanks.
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,631
Members
449,241
Latest member
NoniJ

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