tony noriega
tony noriega

Reputation: 7663

Excel 2007 - Compare 2 columns, find matching values

I have two colums. Column A and Column B which have email addresses. Column A has about 3000 rows, Column B has about 1800. Is there anyway to compare the two columns, and find any fields that match...

And if so, how to either highlight or flag them as a match... or shit, for even simplicitys sake, just give me a count of how many matches were found...

Should i try a macro? Or is there a forumula that will help with this?

Upvotes: 3

Views: 102514

Answers (3)

connect2vishal
connect2vishal

Reputation: 31

VLOOKUP deosnt work for String literals

Upvotes: 0

Sandeep
Sandeep

Reputation: 1

=VLOOKUP(lookup_value,table_array,col_index_num,range_lookup) will solve this issue.

This will search for a value in the first column to the left and return the value in the same row from a specific column.

Upvotes: 0

Erin Stanfill
Erin Stanfill

Reputation: 1278

You could fill the C Column with variations on the following formula:

=IF(ISERROR(MATCH(A1,$B:$B,0)),"",A1)

Then C would only contain values that were in A and C.

Upvotes: 8

Related Questions