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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 494 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!