How to Combine Two VLOOKUP Formulas into 1
Hi,
I have two VLOOKUP formulas that work independently:
=VLOOKUP([Iteration Name]@row, {HH Release Schedule Sprint 1}, 5, false)
=VLOOKUP([Iteration Name]@row, {HH Release Schedule Sprint 2}, 5, false)
How do I combine these with an OR? I want the formula to look in 1 schedule, if it doesn't find a match, look in the other schedule. (the result will always be in one or the other)
I tried some IF(ORs but got tripped up in the logic.
Best Answer
-
Hi @SergeantPup,
In Smartsheet, you can achieve the functionality you're looking for by using the
IFERROR
function, rather thanIF
orOR
. TheIFERROR
function allows you to specify a fallback formula if the primary formula results in an error, such as when theVLOOKUP
does not find a match in the first dataset. Here's how you can structure this:=IFERROR( VLOOKUP([Iteration Name]@row, {HH Release Schedule Sprint 1}, 5, false), VLOOKUP([Iteration Name]@row, {HH Release Schedule Sprint 2}, 5, false) )
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
Answers
-
Hi @SergeantPup,
In Smartsheet, you can achieve the functionality you're looking for by using the
IFERROR
function, rather thanIF
orOR
. TheIFERROR
function allows you to specify a fallback formula if the primary formula results in an error, such as when theVLOOKUP
does not find a match in the first dataset. Here's how you can structure this:=IFERROR( VLOOKUP([Iteration Name]@row, {HH Release Schedule Sprint 1}, 5, false), VLOOKUP([Iteration Name]@row, {HH Release Schedule Sprint 2}, 5, false) )
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
@Bassam Khalil that worked beautifully. Thank you.
-
Happy for you! If you need any more help, please don't hesitate to call.
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!