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
- 63.6K Get Help
- 403 Global Discussions
- 215 Industry Talk
- 455 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 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!