How can I label rows based on their level 0 text?
Ben B.
✭✭✭
I'm looking for a column formula that will apply the text from level 0 to all of its children, grandchildren, etc. My sheet has multiple level 0 rows.
Tags:
Best Answers
-
You would use something like this:
=INDEX(ANCESTORS([Primary Column]@row), 1)
-
=IFFERROR(INDEX(ANCESTORS([Primary Column]@row), 1), [Primary Column]@row)
Answers
-
You would use something like this:
=INDEX(ANCESTORS([Primary Column]@row), 1)
-
That worked great! The only snag now is that it returns an #INVALID VALUE error for the Level 0 rows. This is a minor problem that I can work around, but it'd be great if it had the same label.
-
=IFFERROR(INDEX(ANCESTORS([Primary Column]@row), 1), [Primary Column]@row)
-
Thanks! That took care of the error. :)
-
Happy to help. 👍️
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
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!