I'm looking for a way to search through a range of cells and populate another cell with that same data if specific text is found.
I've used this code to search a specific cell for contained text and it works great. However, I'm having trouble searching a RANGE of cells using the same logic.
See below for the logic that works when searching 1 cell for specific data:
Now, when I change my search criteria from B2 to a range, say B2:B40, I get no results:
Do I need to search through a range of cells differently so that I get the correct result to show? Any help would be great!
I've used this code to search a specific cell for contained text and it works great. However, I'm having trouble searching a RANGE of cells using the same logic.
See below for the logic that works when searching 1 cell for specific data:
Code:
=IF(ISNUMBER(SEARCH("AA",B2)),"OK","")
Now, when I change my search criteria from B2 to a range, say B2:B40, I get no results:
Code:
=IF(ISNUMBER(SEARCH("AA",B2:B40)),"OK","")
Do I need to search through a range of cells differently so that I get the correct result to show? Any help would be great!