Adding "If" statement to an INDEX and MATCH formula
Hello,
I've created an INDEX and MATCH formula to update a daily staffing sheet. So, it shows the employee status for TODAY(), based on another sheet. I realized today that when there is no value (which is fine - that has a meaning), I get #NO MATCH. Is there a way I could do some sort of IF statement or something to let this just be blank?
=INDEX({2021 RE Staffing Calendar Range 5}, MATCH(TODAY(), {2021 RE Staffing Calendar Range 1}, 0))
Best Answer
-
Yes, you can add the IFERROR function before the formula and the result to show after.
Something like this.
=IFERROR(INDEX({2021 RE Staffing Calendar Range 5}, MATCH(TODAY(), {2021 RE Staffing Calendar Range 1}, 0)),"")
Did that work?
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Answers
-
Yes, you can add the IFERROR function before the formula and the result to show after.
Something like this.
=IFERROR(INDEX({2021 RE Staffing Calendar Range 5}, MATCH(TODAY(), {2021 RE Staffing Calendar Range 1}, 0)),"")
Did that work?
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
@Andrée Starå That did! Thank you so much!
-
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 422 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!