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!!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 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
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!