If, Contains

T

Tracey

Hello,

I have a column which contains names of Cities...
eg: cell a1= Tokyo, Hong Kong, New York
cell a2= London, Amsterdam, berlin
cell a3= London, Tokyo, New York, Madrid

is there a formula that will be able to pull out Tokyo

I was thinking of an IF statement: =IF(cell contains "Tokyo", "Tokyo", " ")
not sure how to go forward without going down the filtering route as it's a
huge spreadsheet and time is quite critical in reporting season.

many thanks
 
E

edvwvw via OfficeKB.com

=AND(FIND("Tokyo",A1))

The result will be TRUE if Tokyo is in the cell

edvwvw
 
B

Bob Phillips

Sorry, missed an apostrophe

=IF(ISNUMBER(SEARCH("tokyo",A1)),"Found","Not found")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top