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

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!