Formula for returning a value when multiple criteria are met

I am attempting to write a formula in a sheet to pull in a single value from another sheet when both the Area and yesterday's date match.

I have tried this:

=IF(AND({Area}, "Offsite", {Date Collected} = TODAY() - 1), {Daily Collection Amount}, "")

and this:

=IF({Area}, "Offsite", IF({Date Collected} = TODAY() - 1), {Daily Collection Amount}, "")

I think that is the closet I have gotten, but it is still wrong.

• ✭✭✭✭✭✭

You are going to need an INDEX/COLLECT along the lines of...

=INDEX(COLLECT({Daily Collection Amount}, {Area}, "Offsite", {Date Collected}, = TODAY() - 1), 1)

• ✭✭✭✭✭✭

You are going to need an INDEX/COLLECT along the lines of...

=INDEX(COLLECT({Daily Collection Amount}, {Area}, "Offsite", {Date Collected}, = TODAY() - 1), 1)

• You are awesome!!! Thank you so much. The only thing I changed was that it didn't like the equal sign in front of the today function. This solves so many problems for my team. I appreciate you taking the time to enter a solution to my problem.

• ✭✭✭✭✭✭

Sorry about that. My brain and fingers weren't on the same speed. I actually meant to use an @cell reference (personal preference).

=INDEX(COLLECT({Daily Collection Amount}, {Area}, "Offsite", {Date Collected}, @cell = TODAY() - 1), 1)

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!