MAX children date if another children column is not blank
I am having an issue with a formula. I need to capture the children's max date for Closed Date only if all children's Location cells that are not blank have a Close date.
With the sample below
- Currently, the Parent Close date would be blank as not all of the Locations 1-4 have a Close Date.
- If all four locations had dates, the MAX date would be provided
- The rows below Location 4 are omitted as the Location is blank
I hope I explained this well. Thank you in advance.
Best Answer
-
Give this a try:
=IF(COUNTIFS(CHILDREN(Location@row), NOT(ISBLANK(@cell)), CHILDREN([Close Date]@row), ISDATE(@cell)) = COUNTIFS(CHILDREN(Location@row), NOT(ISBLANK(@cell))), MAX(COLLECT(CHILDREN([Close Date]@row), CHILDREN([Close Date]@row), ISDATE(@cell))))
Answers
-
Give this a try:
=IF(COUNTIFS(CHILDREN(Location@row), NOT(ISBLANK(@cell)), CHILDREN([Close Date]@row), ISDATE(@cell)) = COUNTIFS(CHILDREN(Location@row), NOT(ISBLANK(@cell))), MAX(COLLECT(CHILDREN([Close Date]@row), CHILDREN([Close Date]@row), ISDATE(@cell))))
-
That worked. Thank you very much for your time.
-
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!