ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   compare two lists (https://www.excelbanter.com/excel-worksheet-functions/186217-compare-two-lists.html)

lark

compare two lists
 
Excel 2007, Windows XP SP2

trying to compare two lists, one should be a sub set of the other, I'd like
to high light any values in the smaller list (sub set one) that is not found
in the super set. can this be done with vlookup and if so, do you have an
example i can use?

thanks



Dave

compare two lists
 
Hi,
Assuming your large list is A1:A21
Assuming your small list starts in B1, going down the column

Select all items in the small list, starting with B1
Open the Conditional Format dialog box
Select 'Formula is'
Put this in the formula field:
=COUNTIF($A$1:$A$21,$B1)=0
Select your format (eg red bold font)
OK
The cells you want should be red bold font.

Change the references to suit your data.
Hope this is what you need.
Regards - Dave.

lark

compare two lists
 
Thanks man, that was great.


"Dave" wrote in message
...
Hi,
Assuming your large list is A1:A21
Assuming your small list starts in B1, going down the column

Select all items in the small list, starting with B1
Open the Conditional Format dialog box
Select 'Formula is'
Put this in the formula field:
=COUNTIF($A$1:$A$21,$B1)=0
Select your format (eg red bold font)
OK
The cells you want should be red bold font.

Change the references to suit your data.
Hope this is what you need.
Regards - Dave.




Dave

compare two lists
 
Glad to help.
Thanks for the feedback.
Regards - Dave.


All times are GMT +1. The time now is 01:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com