Fonction Date + Counif

Hello everyone,
I am looking for a formula allowing me to return the projects in progress during the month. In my logic the formula gives this:
IF(AND({2022 Plage 1}@row >=[Colonne5]2; {2022 Plage 1} <= [Colonne5]3); COUNTIF({2022 Plage 2}; [Colonne principale]@row); "")
With :
[Colonne5]2 =DATE(YEAR(TODAY()); MONTH(TODAY()); 1)
[Colonne5]3 =IFERROR(DATE(YEAR(TODAY()); MONTH(TODAY()) + 1; 1); DATE(YEAR(TODAY()) + 1; 1; 1)) - 1
But it doesn't work... So can you help me please ?
Sorry for my english
Best Answer
-
Hi @azerty64
Instead of doing an IF statement with an AND to look across sheets, I would put the date criteria within the COUNTIF and make it a COUNTFS, plural.
Try this:
=COUNTIFS({2022 Plage 1}; @cell >=[Colonne5]2; {2022 Plage 1}; @cell <= [Colonne5]3; {2022 Plage 2}; [Colonne principale]@row)
This assumes {2022 Plage 1} is a Date Column referenced. Let me know if this makes sense and works for you!
Cheers,
Genevieve
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
Answers
-
Hi @azerty64
Instead of doing an IF statement with an AND to look across sheets, I would put the date criteria within the COUNTIF and make it a COUNTFS, plural.
Try this:
=COUNTIFS({2022 Plage 1}; @cell >=[Colonne5]2; {2022 Plage 1}; @cell <= [Colonne5]3; {2022 Plage 2}; [Colonne principale]@row)
This assumes {2022 Plage 1} is a Date Column referenced. Let me know if this makes sense and works for you!
Cheers,
Genevieve
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
- 67.8K Get Help
- 474 Global Discussions
- 205 Use Cases
- 516 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 82 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!