Matching 2 columns in Excel

Solved/Closed
alaisa - Aug 2, 2010 at 10:47 AM
 alaisa - Aug 2, 2010 at 11:53 AM
Hello, I've got 2 columns of data- I'm trying to see if there's a match between the data in Column A with Column B- if the data is in Column B somewhere, I'd like to have the location appear in Column C.

Ex:
A B C
17 5 B2
8 17 B3
5 8 B1


Thanks for any help!


Related:

2 responses

rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
Aug 2, 2010 at 10:56 AM
use match function

=IF(ISERROR(MATCH(A2, B:B, 0)), "", MATCH(A2, B:B, 0))

It will show the row number of B where there is a match

If you want to see cell address you can try
=IF(ISERROR(MATCH(A2, B:B, 0)), "", "B" & MATCH(A2, B:B, 0))
3
Thanks!
0