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
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 35 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!