Metrics with INDEX and TODAY function
Hello. I am trying to combine the INDEX and TODAY functions into a formula that will return the value of a row in a column called "Redeemed" if the date in the "Date" column of that row also falls within the last 7 days. I am not sure how to incorporate the TODAY into the formula. How can I make these work together?
Something like this? =INDEX({Redeemed}, {Date}, >=TODAY(-7))
Best Answer
-
Try something like this:
=INDEX({Redeemed}, MATCH(MAX(COLLECT({Date}, {Date}, @cell >= TODAY(-7))), {Date}, 0))
Answers
-
Would you only have one date that falls within the past 7 days?
-
Thanks Paul. Yes there will only be one date that falls within the past 7 days.
-
Try something like this:
=INDEX({Redeemed}, MATCH(MAX(COLLECT({Date}, {Date}, @cell >= TODAY(-7))), {Date}, 0))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!