Compare data to another sheet and if it matches, run VLOOKUP

Answers
-
Thank you for this but I am getting a response invalid operation.
In my process I am trying to compare the data to another sheet and if it matches then run the VLOOKUP
Used IF with VLOOKUP and got "#INVALID OPERATION"
=IF([Client Name]@row = {Client Name Master}, VLOOKUP([Client Name]@row, {Master Table}, 2, 0), "N/A")
Also tried INDEX/MATCH and I keep getting the same error (Example above
=INDEX({Master Table}, MATCH([Client Name]@row, {Master Table}, 0))
I appreciate the help on this matter
-
Hi @MKellermann
If there isn't a match for your [Client Name]@row, then an INDEX(MATCH formula will give you a NO MATCH error. This means that we can use an IFERROR Function around your formula to output "N/A", instead of an IF statement.
An INDEX(MATCH formula requires two separate {cross sheet references}. Each reference will be one unique column (versus a range of columns).
Try something like this:
=IFERROR(INDEX({Column with Data to Return}, MATCH([Client Name]@row, {Client Name Column}, 0)), "N/A")
Cheers,
Genevieve
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.6K Get Help
- 472 Global Discussions
- 200 Use Cases
- 513 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 81 Community Job Board
- 520 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 307 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!