How to use wildcards "*" in a formulate like vlookup
I am looking for a formula like vlookup that can use wildcards to search text within a cell.
Excel example
=VLOOKUP(D1&"*",A1:B9,2,FALSE)
See attached
Best Answer
-
I was able to figure it out. But will take suggestions if they are out there.
Answers
-
Hi @gveilleux
You can use the CONTAINS function to check within a column to see if any cell contains a partial bit of text.
However instead of a VLOOKUP I would maybe suggest a JOIN(COLLECT, in case you have more than one match.
E.g:
=JOIN(COLLECT({Column to Return}, {Column with Criteria}, CONTAINS("Text", @cell)), ",")
Resources that may be useful: JOIN Function / COLLECT Function / CONTAINS Function / Create Efficient Formulas with @cell and @row / Cross-sheet formulas
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
I was able to figure it out. But will take suggestions if they are out there.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!