COUNTIFS nested with AND
Hello community, I need your help.
I want to count how many rows meet the following conditions:
1. The rows where the value of the column {ESTADO} equals "Espera".
2. The rows where the value of the column {RESULTADO} is empty.
3. The rows where the value of the column {DATE} is greater than 7 days but less than 14.
I am using the following:
=COUNTIFS({FECHA LIMITE}, AND({FECHA LIMITE} > (TODAY() - 14), {FECHA LIMITE} < (TODAY() - 7)), {ESTADO}, "Espera", {RESULTADO}, "")
The range is the entire column of another sheet.
The error is this: #INVALID OPERATION
Best Answer
-
Try this slight change. =COUNTIFS({FECHA LIMITE}, AND(@cell > (TODAY() - 14), @cell < (TODAY(- 7))), {ESTADO}, "Espera", {RESULTADO}, "")
Does this help get you results?
Answers
-
Try this slight change. =COUNTIFS({FECHA LIMITE}, AND(@cell > (TODAY() - 14), @cell < (TODAY(- 7))), {ESTADO}, "Espera", {RESULTADO}, "")
Does this help get you results?
-
Excellent thank you very much
-
You're welcome. When using AND or OR in a COUNTIFS statement your AND or OR statements should use the @cell instead of the reference again. :D
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!