Conditional count of parents rows only with now children on a date column.
Help!
I have this formula on a different sheet that works when I am counting the dates in the column. However, I want to count only the parent deliverables, not the children’s tasks. Can someone please help me?
=COUNTIFS({CC Label Activities}, AND(@cell >= DATE(year@row, [Month1]@row, 1), @cell <= DATE(year@row, [Month1]@row, 31)))
Sample Data Sheet
Sample Formula sheet
Thank you!
Best Answers
-
Hi @Kingskid
Ah my apologies! I skipped over the AND in your COUNTIFS. You don't need this as the COUNTIFS is already an AND statement.
Try:
=COUNTIFS({Date Logged}, <> "", {CC Label Activities}, >= DATE(year@row, [Month1]@row, 1), {CC Label Activities}, <= DATE(year@row, [Month1]@row, 31))
Let me know if this gives you an error or incorrect result.
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
-
Hi @Kingskid
Since we removed the AND(), you only need 2 )) at the end of the formula. Try removing out one of the ) and see if that helps. 🙂
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
Answers
-
Hi @Kingskid
You can filter out Child Rows as long as your source sheet has something that indicates if the row is a Child or Parent.
From what I can see in your screen capture, only Parent rows have a date in the "Date Logged" column, is that correct? If so, you can add criteria that says that cell needs to be <> "" or Not Blank:
=COUNTIFS({Date Logged Column}, <> "", {CC Label Activities}, AND(@cell >= DATE(year@row, [Month1]@row, 1), @cell <= DATE(year@row, [Month1]@row, 31)))
Cheers,
Genevieve
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
-
-
Hi @Kingskid
Ah my apologies! I skipped over the AND in your COUNTIFS. You don't need this as the COUNTIFS is already an AND statement.
Try:
=COUNTIFS({Date Logged}, <> "", {CC Label Activities}, >= DATE(year@row, [Month1]@row, 1), {CC Label Activities}, <= DATE(year@row, [Month1]@row, 31))
Let me know if this gives you an error or incorrect result.
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
-
Sorry but I am getting the error below. I tried to play around with it, but I still get errors.
Thank you for your time.
-
Hi @Kingskid
Since we removed the AND(), you only need 2 )) at the end of the formula. Try removing out one of the ) and see if that helps. 🙂
Need more information? 👀 | 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
- 65.9K Get Help
- 429 Global Discussions
- 147 Industry Talk
- 487 Announcements
- 5.2K Ideas & Feature Requests
- 86 Brandfolder
- 151 Just for fun
- 74 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!