Hi, we found a really helpful formula to search for multiple strings of text... but we are wondering if it could be tweaked to show what actual info was found:
Formula in C2:
This will search B2 for any of the terms listed (bulk, reel or tube) and return "vocab-review" if it does.
Is there to actually change that into showing which of those terms was actually found?
(Also trying to make this not case dependent, and take into account that Col B often has blanks)
Thanks for any help you can suggest!
Formula in C2:
VBA Code:
=IF(COUNT(SEARCH({"bulk","reel","tube"},B2)),"vocab-review","")
This will search B2 for any of the terms listed (bulk, reel or tube) and return "vocab-review" if it does.
Is there to actually change that into showing which of those terms was actually found?
(Also trying to make this not case dependent, and take into account that Col B often has blanks)
Row | To be reviewed | Helpful Formula for: does it contain "Bulk, tube or reel"? | What We'd Like! |
2 | bulk packed 10K | vocab-review | bulk |
3 | 3rd party | ||
4 | |||
5 | brown | ||
6 | reels of 5K | vocab-review | reel |
7 | REEL | vocab-review | reel |
8 | |||
9 | tubes | vocab-review | tube |
10 | |||
Thanks for any help you can suggest!