Need to compare two columns, highlighting true matches

tenbusi

New Member
Joined
Sep 20, 2016
Messages
23
Hi again,

I have two sets of data and where i need to use the array in column V2:V154 to find matching values in column O2:O386.

If an exact match is found, i'd like to highlight that cell. The end goal is to highlight in V, all exact matches of column O, so i can then sort by what matched and what didn't match.

I tried to use conditional formatting, new rule, =MATCH($V$2:$V$154,$O$2:$O$386,0) but i noticed that if '4' was in column O, it was highlighting any instance of '4' in column V, eg., 144, 154, etc., when i'd need just the '4'.

I'm sure i'm just missing something silly.

Thanks as always!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
First select all the V col cells in the array you want to highlight if a match is found. Then use this rule:

=ISNUMBER(MATCH($V$2:$V$154,$O$2:$O$386,0))
 
Last edited:
Upvote 0
i mis-typed above, apologies.

I need to highlight the cells in O using V as my search criteria. I tried just flipping your formula, which seemed to work, but i ended up with a 100% match, which i know to not be true. It looks like it's matching '39' to numbers like '339'.
 
Upvote 0
Remove the existing CF cells. Then select all col O cells you want to CF.

Then New>UseFormula and use this rule:

=ISNUMBER(MATCH($O2,$V$2:$V$154,0))
 
Upvote 0
I don't know what 'CF' means.

So i just erased the old rule and tried the new one. It appears to have been much more selective in matching, but in doing a couple cross checks, i'm not seeing it as accurate.

For example, my value in O3 did not highlight but is present in V105.
 
Upvote 0
if you enter the formula below in any empty cell, what does it return?

=EXACT(O3,V105)
 
Upvote 0
Here's a snip of it non highlighted - Editing because it didn't transfer the cell font color.

[TABLE="width: 64"]
<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]SN[/TD]
[/TR]
[TR]
[TD="align: right"]790[/TD]
[/TR]
[TR]
[TD="align: right"]320[/TD]
[/TR]
[TR]
[TD="align: right"]283[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:
Upvote 0
If that's returning TRUE and O3 is not highlighted, then you haven't applied the CF (Conditional Formatting) correctly. Go back to post #4 and follow the procedure there after you remove the existing CF. Be sure to copy the CF formula directly from your browser and paste it into the CF formula rule window.
 
Last edited:
Upvote 0
I just tried again and got the same result. I then decided to take the two columns, paste them on their own sheet so i can trouble shoot, copy and pasted exactly, and got the same result.


From the original sheet: =ISNUMBER(MATCH($O2,$V$2:$V$154,0))

From the stripped sheet: =ISNUMBER(MATCH($A2,$B$2:$B$154,0))


It's still not finding 320.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
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