Return Header Based on Last Column Populated
I'm trying to figure out a formula to add a date to a particular cell, then return the 'header' value in another cell. Ideally it's a formula automated to find the last populated cell of a row, then return the 'header' of that column.
Sample situation: with the 4/1 date populated here, I want the empty green cell to read as "Mar". If the last populated cell was the 3/28, though, the empty green cell would read "Feb".
Is this possible?
Best Answer
-
Try this:
=INDEX([January 2022]$1:[March 2022]$1, 1, COUNTIFS([January 2022]@row:[March 2022]@row, @cell <> ""))
Answers
-
Try this:
=INDEX([January 2022]$1:[March 2022]$1, 1, COUNTIFS([January 2022]@row:[March 2022]@row, @cell <> ""))
-
Perfect, Paul. Thank you!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 448 Global Discussions
- 154 Industry Talk
- 503 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 512 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!