Child Parent Formula Help
I want my formula to look at the child count column and if it is great than one to run a sum of the children rows and if it has 0 children to run a lookup SUMIFS formula:
I was hoping it would work like this but I keep getting errors.
=IF([Children Count]@row > 0, SUM(Children()), SUMIFS({Curo.Points}, {Curo.Category}, "GENERATING DENIAL LETTER", {Curo.User ID}, LEFT([User ID]@row, FIND("-", [User ID]@row) - 1), {Curo.Week#}, [Week Number]@row) + SUMIFS({CCA.Total}, {CCA.Category}, "GENERATING DENIAL LETTER", {CCA.User ID}, RIGHT([User ID]@row, LEN([User ID]@row) - FIND("-", [User ID]@row)), {CCA.Week#}, [Week Number]@row)
For some reason when I use this formula it's acting like the row is 0 even though its 14 and skipping to the false part of the IF statement.
Any guesses
Answers
-
What is the formula in the [Children Count] column?
-
-
It's hard to say without seeing all your references, but I think using the VALUE() function will solve your problem here as your "User ID" looks to be numeric, and that's your criterion. When you use the LEFT() and RIGHT() functions, they return a text value, even if the text appears to be a number, and you can't match a number 100 to a text of '100. You can test this by adding a number to a LEFT() or RIGHT() value and see if it concatenates the values or sums them:
So I believe you should be able to update your formula to wrap the LEFT() and RIGHT() criterions in a VALUE() function, you should be good to go.
Jason Tarpinian - Sevan Technology
Smartsheet Aligned Partner
-
You say it is jumping to the SUMIFS instead of doing the SUM(CHILDREN()). What is it actually outputting?
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!