I have a column of cells containing text (column A), and I want to find a formula for the adjacent column (column B) that will put a 1 in column B if the adjacent cell in column A contains "XY".
I found this formula to count cells with specific text in them: =SUM(LEN(range)-LEN(SUBSTITUTE(range,"text","")))/LEN("text")
But I'm not sure how to do what I want.
Advice much appreciated!
Bookmarks