开发者

How to remove a particular word in an Excel cell?

How do you remove a particular word in a column of one cell that's in another cell in Excel.

Example: if


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,""))


Just use the Replace function. leave " replace with" blank


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),""))
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜