Index Collect Formula works perfectly in everything except a Parent row.
My index Collect Formula works perfectly in everything except a Parent row, does anyone have a solution? This is the current formula - =INDEX(COLLECT({Task}, {ID}, [Ops Plan ID]@row), 1)"
Answers
-
-
Thanks Paul
See attached screen shots attached. you will see that ID # 1.1.1 returns with the correct result but ID 1.1 returns with # INVALID VALUE. ID1.1 is a parent row
Cheers
-
How are each of the WBS columns being populated exactly?
-
Hi Paul
See attached screenshots, the column type(s) and formulas are as follows;
LVL - text/Number - =COUNT(ANCESTORS()) + 1
Level Code - text/ number - =IF(NOT([Skip WBS]@row), MATCH([Row ID]@row, COLLECT([Row ID]:[Row ID], Ancestors:Ancestors, Ancestors@row, [Skip WBS]:[Skip WBS], false), 0))
Count - text/number - =COUNT(ANCESTORS())
Ancestors - text/number - =JOIN(ANCESTORS([Row ID]@row), " > ")
Row ID - see attachment -
Skip WBS - checkbox
ID Number - Text/number - =IF(NOT([Skip WBS]@row), UPPER(IF(COUNT(ANCESTORS()) = 0, [Level Code]@row, JOIN(COLLECT(ANCESTORS([Level Code]@row), ANCESTORS([Level Code]@row), NOT(ISBLANK(@cell))), ".") + "." + [Level Code]@row)))
Regards
George A
Help Article Resources
Categories
Check out the Formula Handbook template!