简体   繁体   中英

Excel - Check if column has specific text

I went to this site . It says the answer is this:

=ISNUMBER(SEARCH(substring,text))

I need it to check a column so I tried:

=ISNUMBER(SEARCH(C5,B5:B25))

but of course this doesn't work.

I also tried another article from the same site , but I have no idea how to present the range.

Use MATCH instead of SEARCH()

MATCH whole cell:

=ISNUMBER(MATCH(C5,B5:B25,0))

MATCH part of cell:

=ISNUMBER(MATCH("*"&C5&"*",B5:B25,0))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM