Matching Alphabetic Data in 2 Columns

JARHTMD

Board Regular
Joined
Nov 16, 2009
Messages
57
ColA & ColB each contain numbers. This formula (in C1:C100) identifies the numbers in ColB that are also in ColA (Match). ColA must be in ascending sequence.

=IF(B1<>"",IF(VLOOKUP(B1,$A$1:$A$100,1)=B1,"Match","NoMatch"),"blank")

How do I make a similar comparison of alphabetic data (John Smith, Jane Doe, etc)?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,884
Hi
Welcome to the board

Try:

=IF(B1<>"",IF(ISNUMBER(MATCH(B1,$A$1:$A$100,0)),"Match","NoMatch"),"blank")

This works for both numbers and text, and does not require that the items are in ascending order.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,203
ColA & ColB each contain numbers. This formula (in C1:C100) identifies the numbers in ColB that are also in ColA (Match). ColA must be in ascending sequence.

=IF(B1<>"",IF(VLOOKUP(B1,$A$1:$A$100,1)=B1,"Match","NoMatch"),"blank")

How do I make a similar comparison of alphabetic data (John Smith, Jane Doe, etc)?

If A1:A100 is in ascending order, the above formula would still work... Othwerwise see pgc's reply.
 

JARHTMD

Board Regular
Joined
Nov 16, 2009
Messages
57
Thanks for the prompt replies.

Part of my problem was that I had erroneously converted the names in ColA Last, First to (space)First Last. I used TRIM to remove the leading space; then pgc01's formula. It works like a champ!:LOL:
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,130,110
Messages
5,640,147
Members
417,127
Latest member
shakilk

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
Top