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.
Best Answer
-
You are going to need an INDEX/COLLECT along the lines of...
=INDEX(COLLECT({Daily Collection Amount}, {Area}, "Offsite", {Date Collected}, = TODAY() - 1), 1)
Answers
-
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
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 445 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!