"I currently have a Parent Child Sheet that goes down 3 Levels, in one of my columns I have number v
"I currently have a Parent Child Sheet that goes down 3 Levels, in one of my columns I have number values and I want to take the Average of the 3 values but I'm having issues incorporating the Level / Indent Field using the "IF" formula, I also don't know if this is better to user "Ancestors" or "Children". For now at the Level 2 entry I have this "=AVG(CHILDREN())", but I need I would prefer a column Formula where I could say IF Row Level 1 has Ancestors or kids then perform an average. I want to create a new column for this formula
"
Answers
-
You can create a helper column to get the level. The formula you can use is =COUNT(ANCESTORS([Primary Column]@row)). This will give you 0 as a value for the parent, 1 for the child, and 2 for the grandchild. You can then use this helper column in your formula to get different average values.
Thanks,
Aravind GP| Principal Consultant
Atturra Data & Integration
M: +61493337445
E:Aravind.GP@atturra.com
W: www.atturra.com
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 142 Industry Talk
- 473 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 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!