Compare Data two Columns

kodakvicky

New Member
Joined
Aug 12, 2009
Messages
1
I need to compare the data in Column A with the Data in Column D. Column A has approx lines 1100 rowes with some duplicates. Column D contains 346 rows and no duplicates. I need to know which itmes in Column D are duplicated in Column A. When I do a duplicate search it also picks up the duplicates in Column A. I only want to know which items in D are also in A. I would like the the items in Column D that are duplicated in Column A to be highlighted
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Highlight column D1:D146, click on FORMAT menu, CONDITIONAL FORMATTING, choose FORMULA IS, then type this formula:

=ISNUMBER(MATCH(D1,$A$1:$A$1100,0))

set the shading to desired, and click ok.
 
Upvote 0
Hello and welcome to the board,

assuming below as the sample data in column A

Excel Workbook
A
1AAA
2BBB
3CCC
4AAA
5DDD
6EEE
7BBB
8AAA
9FFF
10EEE
Sheet1
Excel Workbook
D
1AAA
2BBB
3CCC
Excel 2003 and the column D looks like Sheet1
Excel 2003



select D1:D3 with D1 being the active cell,

goto -> Format -> Conditional formatting->Condition 1->Formula is ->

Code:
=COUNTIF($A$1:$A$10,D1)>1
choose the format, click ok
 
Upvote 0
Try conditional formating with a formula. Select the cells in D-column and then type the following on the Conditional Formatting field:

=COUNTIF($A:$A,$D1)>1

You can find the Conditional Formatting from the Format-menu field. Also, because you want to use the formula, you have to check "Formula Is". And don't forget to choose how you want the cells to be highlighted before exiting the Conditional Formatting.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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