Issues with Numbering Children (Child 1, Child 2, etc.)
Hi!
I am trying to implement a column formula in Smartsheet that assigns an ordinal number to each of the children in a sheet. For example, the first child would get a "1", the second child a "2", and so on. I've tried several options, and the one I liked the most is the following:
- Create an auxiliary column with a "1" each time a child is found.
- Create a column that sums the entire auxiliary column up to the current row, using this formula:
=SUMIF([Row]:[Row], <[Row]@row, [Aux]:[Aux])
.
The issue with this formula is that Smartsheet tells me there are too many calculations in the sheet and it cannot save it. I tried limiting it with a first IF
, but it still doesn't work.
Do you have any suggestions for achieving this while keeping the main objective, which is to be able to use it as a column formula?
Thank you in advance for your help!
Best Answer
-
You can use the same technique used in the WBS template.
[Parent] =PARENT([Primary Column]@row)
[Children Number] =MATCH([Row ID]@row, COLLECT([Row ID]:[Row ID], Parent:Parent, Parent@row))
[Parent - Children Number] =Parent@row + "-" + [Children Number]@row
Answers
-
You can use the same technique used in the WBS template.
[Parent] =PARENT([Primary Column]@row)
[Children Number] =MATCH([Row ID]@row, COLLECT([Row ID]:[Row ID], Parent:Parent, Parent@row))
[Parent - Children Number] =Parent@row + "-" + [Children Number]@row -
Thanks! That was really helpful!
-
Happy to help!😁
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!