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
 

Some videos you may like

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Blade Hunter

Well-known Member
Joined
Mar 13, 2008
Messages
3,147
In D1
=if(countif(A:A,C1)>0,"Duplicate data","")

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

cynoo

New Member
Joined
Jul 27, 2010
Messages
3
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..
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,765
Messages
5,513,292
Members
408,943
Latest member
ola abufroukh

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...
Top