offset column for the matched cell of column A in conditional formatting

newexcler

New Member
Joined
Nov 15, 2015
Messages
39
Dear Experts,

I am sure, this would have been asked and it might be on a tip of your fingers, but if you ask me, Happy to provide sample.
Here is the problem

I have to write conditional formatting to highlight 4 columns, comparing this list of data1 to another list of data2 which is not ordered.
So I have two tables to compare each element to highlight


Say in this example:

Once I find the match for column A, say each element of data 1 with data 2, I want to anchor that match to calculate the row number and offset columns to compare each element after the first match.
Note: It is my assumption that data from two sources are in same order of columns, so I can do offset.

What I tried, I found the match using countif but I cannot get the cell reference so I comparing first coumn of each table using cell("address",Index( match)) but this gives me right reference when I pass this to Offset function, I am facing issues. As I have multiple dates, I am thinking only option is offset but happy to have any solution, you think is best.

Please can someone suggest a better way to offset so that I can pass that formula in the conditional format to highlight them, I will extend this to corresponding columns.

List of data1:

OrangeOrigin102/20/2021
AppleOrigin202/22/2021
KaleOrigin202/22/2021
CucumberOrigin302/22/2021


List of data 2


AppleDenver02/22/2021...
OrangeTexas05/21/2021...
BananaDenver03/15/2020...
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
63,974
Office Version
  1. 365
Platform
  1. Windows
Are you trying to highlight the date if it does not match the relevant date in data2?
 

newexcler

New Member
Joined
Nov 15, 2015
Messages
39
Are you trying to highlight the date if it does not match the relevant date in data2?
Thank you Fluff for getting back. Yes Highlight any missing element in both data1 and data2. Two-way lookup.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
63,974
Office Version
  1. 365
Platform
  1. Windows
Ok, how about
+Fluff 1.xlsm
ABC
1OrangeOrigin120/02/2021
2AppleOrigin222/02/2021
3KaleOrigin222/02/2021
4CucumberOrigin322/02/2021
Sheet1


+Fluff 1.xlsm
ABC
1AppleDenver22/02/2021
2OrangeTexas21/05/2021
3BananaDenver15/03/2020
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C1:C3Expression=C1<>INDEX(Sheet1!$C$1:$C$4,MATCH($A1,Sheet1!$A$1:$A$4,0))textNO
 
Solution

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
63,974
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Forum statistics

Threads
1,144,341
Messages
5,723,806
Members
422,518
Latest member
quack_quack

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