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
 61.2K Get Help
 320 Global Discussions
 197 Industry Talk
 415 Announcements
 4.2K Ideas & Feature Requests
 126 Brandfolder
 153 Just for fun
 123 Community Job Board
 441 Show & Tell
 26 Member Spotlight
 1 SmartStories
 276 Events
 34 Webinars
 7.3K Forum Archives
Check out the Formula Handbook template!