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. :)
-
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.7K Get Help
- 438 Global Discussions
- 152 Industry Talk
- 497 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 509 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 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!