A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
To compare names in two different Excel columns and show matches, use a worksheet formula.
If the names to compare are in column A and column C:
- Leave column B empty for the results.
- In B1, enter:
=IF(ISERROR(MATCH(A1,$C$1:$C$5,0)),"",A1)
- Fill the formula down the rows that contain data.
This returns the name from column A in column B when that name is also found in column C. If there is no match, the result stays blank.
If the list is longer than row 5, adjust $C$1:$C$5 to the actual range in column C.