Hi,
I'm having trouble getting the SEARCH function to work using a range for multiple search criteria. I think my problem is getting the array to work.
I have a range called Animals consisting of the following 4 rows
<tbody>
</tbody>
Column A has many rows of text. For example, A2 = "I have a dream" and A3 = "I want a dog and a unicorn"
I tried using this formula
=SEARCH(Animals,A2)
I typed the search in the formula box and hit CTL-SHIFT-RETURN to enter it in as an array so that it looked like this {=SEARCH(Animals,A2)}
But I got the #VALUE! for every cell that contains "cat", "fish" or "cow". The only time the formula worked is when the cell contained "dog". This tells me the array isn't working.
I would like to try =SEARCH({Animals},A2) but I don't know how to enter an array inside a formula.
I'm sure this is an easy question for some smart cookie but I'm stumped.
Thank you,
ScottKkar
I'm having trouble getting the SEARCH function to work using a range for multiple search criteria. I think my problem is getting the array to work.
I have a range called Animals consisting of the following 4 rows
dog |
cat |
fish |
cow |
<tbody>
</tbody>
Column A has many rows of text. For example, A2 = "I have a dream" and A3 = "I want a dog and a unicorn"
I tried using this formula
=SEARCH(Animals,A2)
I typed the search in the formula box and hit CTL-SHIFT-RETURN to enter it in as an array so that it looked like this {=SEARCH(Animals,A2)}
But I got the #VALUE! for every cell that contains "cat", "fish" or "cow". The only time the formula worked is when the cell contained "dog". This tells me the array isn't working.
I would like to try =SEARCH({Animals},A2) but I don't know how to enter an array inside a formula.
I'm sure this is an easy question for some smart cookie but I'm stumped.
Thank you,
ScottKkar