How to use IF/AND formula with INDEX(COLLECT)
I have an existing formula that pulls in the date that receipts are submitted from a different sheet, however I need to modify the formula so that it only pulls in results if the Request Type is "Travel Receipts" and if the Rejected Checkbox is not checked.
I think I'm close, but I'm still getting #UNPARSEABLE as the result. Does anyone have some insight into how I might make the modified formula work?
I'm new to using formulas in Smartsheet, so I'm sure that I'm making some basic errors, but any assistance or even just a push in the right direction would be appreciated.
Existing formula that works:
=IFERROR(INDEX(COLLECT({Date submitted to Fiscal}, {Travel Log - TRQS Number}, [TRQS Number (entered when TRQS final)]@row), 1), "Not Submitted")
My most recent attempt:
=IFERROR(INDEX(COLLECT(IF(AND({Request Type} = "Travel Receipts", {Reject Box}@row=1,"", {Date submitted to Fiscal})), {Date submitted to Fiscal}, {Travel Log - TRQS Number}, [TRQS Number (entered when TRQS final)]@row), 1), "Not Submitted")
Thank you in advance for your time and assistance.
Answers
-
You would not use the IF/AND. You would simply include the new range/criteria sets within the COLLECT function the same way you currently have your existing range/criteria sets.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!