Assistance with returning cell data base on most recent day in specified year.
I am trying to create a formula on a sheet summary that returns the information in my row titled Total that corresponds with the most recent date within a specified year. I came up with the following formula but it is returning #No Match
=INDEX([Total]:[Total], MATCH(MAX(COLLECT([Report Date]:[Report Date], [Report Date]:[Report Date], CONTAINS("24", @cell))), [Total]:[Total], 0))
If anyone has any insight I would greatly appreciate the help :)
Answers
-
Hi @J_S1,
Use a helper column to get the year from your report date:
=YEAR([Report Date]@row
You can then get the value of the latest date in a given year with a formula like this:
= INDEX(COLLECT(Total:Total, [Report Date]:[Report Date], MAX(COLLECT([Report Date]:[Report Date], Year:Year, [Year to check]@row))), 1)
Sample:
If you want to look at only total, then you could change the [Year to check]@row to a fixed cell instead.
Hope this helps, but if you've any problems/questions then just let us know!
-
Thank you, I still can't seem to get this to work using a sheet summary. With how my other reports are structured I need it there for rolling up. It is returning #unparseable
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!