Count Children If
Hello,
I am trying to create a formula to count the current providers I have in each office location. So I have a "Locations" column with each office location, and each office location have child rows that indicate a provider per row. I also have a column called "Start Date" that indicates when a provider has started with the company. I am trying to figure out a formula that would count the children rows of each office location IF the provider has already started (date in Start Date column is in the past from TODAY)
I'm issues with my syntax and nesting the conditions:
=COUNT(CHILDREN(Locations@row, IF([Start Date (Training)]@row, <TODAY())
Thank you in advance
Answers
-
Use COUNTIFS , The way you are using the IF statement is incorrect. You are using it Intuitively, but not the way it works in Smartsheet .
Darren Mullen, join the Smartsheet Guru Elite
Get my 7 Smartsheet tips here
Author of: Smartsheet Architecture Solutions
-
@Darren Mullen Thank you. Do you mean to replace the "IF" statement with "COUNTIF"? Or rewrite the formula overall using COUNTIFS function? I'm still having a hard time figuring it out. Would you be able to give an example?
-
I hope you're well and safe!
Try something like this.
=COUNTIFS(CHILDREN(Locations@row), <>"", CHILDREN([Start Date (Training)]@row), <TODAY())
Did that work/help?
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
@Andrée Starå That worked perfectly. Thank you so much!
-
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 69 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!