Reputation: 145
How do you remove a particular word in a column of one cell that's in another cell in Excel.
Example: if
*1603 Ad street New York*
,*New York*
*1603 Ad street*
Upvotes: 4
Views: 81891
Reputation: 198
Try this formula for range of words:
=TRIM(SUBSTITUTE(A1,INDEX($B$1:$B$56,IF(ISNA(MATCH(FALSE,ISERR(FIND($B$1:$B$56,A1)),FALSE)),0,MATCH(FALSE,ISERR(FIND($B$1:$B$56,A1)),FALSE)),1),""))
Upvotes: 0
Reputation: 27478
Use the Substitute function:
=SUBSTITUTE(A1,B1,"")
EDIT: Per brettdj's suggestion, added TRIM to get rid of leading or trailing spaces:
=TRIM(SUBSTITUTE(A1,B1,""))
Upvotes: 14