# Matching Alphabetic Data in 2 Columns

#### JARHTMD

##### Board Regular
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
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.

##### MrExcel MVP
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
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!

Last edited:

Replies
1
Views
251
Replies
3
Views
176
Replies
1
Views
433
Replies
12
Views
302
Replies
15
Views
560

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.

### Which adblocker are you using?

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

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