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 <> ""))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Answers
-
Try this:
=INDEX([January 2022]$1:[March 2022]$1, 1, COUNTIFS([January 2022]@row:[March 2022]@row, @cell <> ""))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Perfect, Paul. Thank you!!
-
Happy to help. 👍️
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!