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
- Customer Resources
- 65.5K Get Help
- 447 Global Discussions
- 144 Industry Talk
- 480 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 152 Just for fun
- 72 Community Job Board
- 492 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 304 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!