Counting a date diffrence with children
Hello,
Does anybody know if there is there a way to make the below formula work? I'm not sure what I'm missing.
I need a count of children where the difference between the task due date and the created date is 1 or less.This one has stumped me.
=COUNTIF(SUM(CHILDREN([Due Date]8) - CHILDREN(Created8)), <=1)
Comments
-
Hi Darren,
One way you could accomplish this would be with a helper column. You could create a third, hidden column that simply minuses the one date from the other, and drag-fill this down the whole column:
=[Due Date]@row - [Created]@row
Then in your current formula column, you could count how many of the children display 1 or less in that new helper column:
=COUNTIF(CHILDREN([Helper Column]:[Helper Column]), <=1)
Cheers!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Thank you Genevieve,
The struggle I'm having with a helper column is that if multiple lines are inserted the formula will not populate even though I've copied the formula through out the entire column. Is there a way to make it populate even if more than one row is added?
-
Hi Darren,
You’ll see formulas populate automatically when you type in a newly inserted or blank row that is:
- Directly between two others that contain the same formula in adjacent cells.
- At the topmost of the sheet if it’s above two rows that have the same formula in adjacent cells.
- At the bottommost of the sheet if it’s below two rows that have the same formula in adjacent cells.
- Above or below a single row that is between blank rows and has formulas.
Based on this, it sounds like the first point (creating new rows between two rows) should work for your purposes and auto-fill the formula as needed. If you are cutting/pasting multiple rows at one time, all of the rows inserted between the two rows at once will auto-populate. Just make sure you save your sheet, as that's when the auto-fill happens.
If you're not seeing your formula auto-populate but it fits in one of the categories above, it would be helpful to see a screen capture of your sheet in Grid view, with an example of how/where you are inserting rows.Hope this helps! Let me know, otherwise.
- Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!