ThatOneDude
New Member
- Joined
- Aug 11, 2022
- Messages
- 14
- Office Version
- 365
- Platform
- Windows
I have a large database that I need to search but I'm struggling with getting this to happen the way I'd like it to.
Let's say the lookup range includes:
ABC123
ABC223
ABC1234
ZABC1234
Then, I have cell A1 that contains the value ABC*23.
When I use the SEARCH function to search the range using A1 as the lookup value, it will return all four of those values because it searches for the cell value anywhere within the lookup range. In this situation, what I would like it to return is ABC123 and ABC223 only. If cell A1 was ABC*23*, then I would expect ABC123, ABC223 and ABC1234. I don't want the ZABC1234 result at all unless the value in A1 starts with Z or *.
Is there a way to search using the exact text in the cell and only including results that have additional characters where the wildcards are located only?
Let's say the lookup range includes:
ABC123
ABC223
ABC1234
ZABC1234
Then, I have cell A1 that contains the value ABC*23.
When I use the SEARCH function to search the range using A1 as the lookup value, it will return all four of those values because it searches for the cell value anywhere within the lookup range. In this situation, what I would like it to return is ABC123 and ABC223 only. If cell A1 was ABC*23*, then I would expect ABC123, ABC223 and ABC1234. I don't want the ZABC1234 result at all unless the value in A1 starts with Z or *.
Is there a way to search using the exact text in the cell and only including results that have additional characters where the wildcards are located only?