How to specify a row has a specific parent in a function
I'm trying to average a collection of rows that fit a certain criteria.
So far, I have this formula and I know it works up until Job@row.
=AVG(COLLECT({DurationCPT},{CPTQ}, Job@row,{Packaging JobCPT},(PARENT("CMO")="Packaging Summary")))
For the rest of the formula, I am trying to full specific CMO rows that have "Packaging Summary" as its parent from my criterion range. Pic below:
Does anyone have any tips for this?
Best Answer
-
Hey!
How about a helper column using =parent?
This will mirror the parent for that row and you can use this as your criterion range?
I'm passionate about helping you leverage the truly awesome power of smartsheet!
Answers
-
Hey!
How about a helper column using =parent?
This will mirror the parent for that row and you can use this as your criterion range?
I'm passionate about helping you leverage the truly awesome power of smartsheet!
-
Thanks, that worked! I created a helper column with a column formula of =PARENT([Packaging Job]@row) + " " + [Packaging Job]@row. Then, I created a new sheet reference and this is the finalized formula:
=AVG(COLLECT({DurationCPT}, {CPTQ}, Job@row, {HelperCPT}, "Packaging Summary CMO"))
-
Glad you got it working!
I'm passionate about helping you leverage the truly awesome power of smartsheet!
Help Article Resources
Categories
Check out the Formula Handbook template!