Compare 2 columns in excel

cynoo

New Member
Joined
Jul 27, 2010
Messages
3
Dear experts,

Need help with comparing 2 columns.

Column A must be compared with Column C and the string that's in both the Columns must be the output.

Please see below. Since this is in words/alphabets I'm facing the problems writing it.

Any help is greatly appreciated.

A
xyz-abc-q
xyz-abc-c
xyz-abc-d
xyz-abc-g
xyz-abc-p

C
xyz-mnk-y
xyz-abc-i
xyz-abc-k
xyz-abc-o
xyz-abc-c
xyz-aoc-g
xyz-adc-g
xyz-abc-c
xyz-cbc-n
xyz-abc-q
xyz-abc-l
xyz-abc-b
xyz-abc-n
xyz-abc-m
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
In D1
=if(countif(A:A,C1)>0,"Duplicate data","")

Drag down, anything with "Duplicate data" next to it is a dupe
 
Upvote 0
In D1
=if(countif(A:A,C1)>0,"Duplicate data","")

Drag down, anything with "Duplicate data" next to it is a dupe

Is there any way it can be written without dragging down..? I'm comparing columns in my excel sheet which is 10,000+ rows and its getting hung every time I try it.

Appreciate any help..
 
Upvote 0

Forum statistics

Threads
1,214,986
Messages
6,122,611
Members
449,090
Latest member
vivek chauhan

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