SOLVED

matching names from 1 column with another

Copper Contributor

I have a list of names from column A, and trying to see if there is a match in column B. 

kept trying a few formulas, but i'm doing something wrong and it's not working.

 

Basically, if john doe is in column A, and found in column B, column C says match. If there is no name matching, column C not matching.

namename 2match ?
smith,davidsmith,david 
smith,johnsmith,john 
doe,johndoe,jane 
doe,janedoe,john 
smith,janesmith,janet 
hick,daviddavid,hick 
4 Replies
best response confirmed by nerdyplayer (Copper Contributor)
Solution

@nerdyplayer 

In B2:

=IF(ISNUMBER(MATCH(A2,B:B,0)),"Match","No Match")

or

=IF(COUNTIF(B:B,A2),"Match","No Match")

Fill down.

oo that worked. Also 1 more question. Turns out the reasoning why it wasn't working as well was there was a space in the name that caused them not to match.
smith,john jr[ ] smith,john jr
smith,david[ ] smith,david[ ]

There a quick way to remove the space at the end of the cell? If i try to find and replace all the [ ] then their middle name crunches together. ty

@nerdyplayer 

For example:

 

=IF(ISNUMBER(MATCH(TRIM(A2),TRIM(B$1:B$1000),0)),"Match","No Match")

 

I'd avoid using the entire column here. Adjust the range B$1:B$1000 as needed.

YAY! thank you.

i'd hug you.
1 best response

Accepted Solutions
best response confirmed by nerdyplayer (Copper Contributor)
Solution

@nerdyplayer 

In B2:

=IF(ISNUMBER(MATCH(A2,B:B,0)),"Match","No Match")

or

=IF(COUNTIF(B:B,A2),"Match","No Match")

Fill down.

View solution in original post