ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Countif formula with multiple criteria ie >30 and <60? (https://www.excelbanter.com/excel-worksheet-functions/8840-countif-formula-multiple-criteria-ie-%3E30-%3C60.html)

Dali

Countif formula with multiple criteria ie >30 and <60?
 
What is the syntax for writing a CountIf formula to find items that are 30
and <60 from a range of numbers?

I tried =COUNTIF(Days_to_Process_Query!$D$2:$D$20840,"60 and <=90") and it
doesn't work.

Don Guillett

You can use 2 countifs or
=sumproduct((rnga60)*(rngA<=90))

--
Don Guillett
SalesAid Software

"Dali" wrote in message
...
What is the syntax for writing a CountIf formula to find items that are
30
and <60 from a range of numbers?

I tried =COUNTIF(Days_to_Process_Query!$D$2:$D$20840,"60 and <=90") and

it
doesn't work.




Dave R.

The numbers in your sentence don't match those in the formula, but one way
is to count the number greater than 30 then subtract the number greater than
60.

=COUNTIF(A1:A100,"30")-COUNTIF(A1:A100,"60")


"Dali" wrote in message
...
What is the syntax for writing a CountIf formula to find items that are
30
and <60 from a range of numbers?

I tried =COUNTIF(Days_to_Process_Query!$D$2:$D$20840,"60 and <=90") and

it
doesn't work.





All times are GMT +1. The time now is 02:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com