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

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
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.
 
Upvote 0
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.
 
Upvote 0
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:
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,731
Members
449,093
Latest member
Mnur

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