Formula Help! Adding Values in child rows based on date range
I'm trying to add the values entered in all child rows in a column, based on the date range (by quarter):
=SUMIFS(CHILDREN([PT Total Hours]@row ), CHILDREN(Date@row ), ">=01/01/2025", CHILDREN(Date@row ), "<=03/31/2025")
This is what the AI formula came back with, also what another external AI platform came back with. Every date format I try, returns 0, but the correct value should be 27.5
Best Answers
-
@jmaxbr Sounds like those AI's need to be retrained ha.
You need to use the DATE() function
=SUMIFS(CHILDREN([PT Total Hours]@row ), CHILDREN(Date@row ), >= date(2025,1,1), CHILDREN(Date@row ), <= date(2025, 3, 31))
Darren Mullen, Author of: Smartsheet Architecture Solutions
Get my 7 Smartsheet tips here
Take your Smartsheet knowledge to the next level and become an expert. Join the Smartsheet Guru Elite
-
Got it, using date(2025, 1, 1) and date (2025, 3, 31. Thank you!
-
@jmaxbr Agh. Sorry! You figured it out. I didn't double check before I hit post!
Darren Mullen, Author of: Smartsheet Architecture Solutions
Get my 7 Smartsheet tips here
Take your Smartsheet knowledge to the next level and become an expert. Join the Smartsheet Guru Elite
Answers
-
@jmaxbr Sounds like those AI's need to be retrained ha.
You need to use the DATE() function
=SUMIFS(CHILDREN([PT Total Hours]@row ), CHILDREN(Date@row ), >= date(2025,1,1), CHILDREN(Date@row ), <= date(2025, 3, 31))
Darren Mullen, Author of: Smartsheet Architecture Solutions
Get my 7 Smartsheet tips here
Take your Smartsheet knowledge to the next level and become an expert. Join the Smartsheet Guru Elite
-
Got it, using date(2025, 1, 1) and date (2025, 3, 31. Thank you!
-
@jmaxbr Agh. Sorry! You figured it out. I didn't double check before I hit post!
Darren Mullen, Author of: Smartsheet Architecture Solutions
Get my 7 Smartsheet tips here
Take your Smartsheet knowledge to the next level and become an expert. Join the Smartsheet Guru Elite
-
I would not have figured it out without the second date! Much appreciated.
Help Article Resources
Categories
Check out the Formula Handbook template!