ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Excel Formula to evaluate multiple criteria (countif + and) (https://www.excelbanter.com/excel-worksheet-functions/224616-excel-formula-evaluate-multiple-criteria-countif.html)

VPSales

Excel Formula to evaluate multiple criteria (countif + and)
 
I am trying to evaluate a data base of customers where column A lists the
customers by name, column B is annualized sales $, and column C is the
manhours of service per year spent on that account. I want to know how many
customers I have which generated less than $100,000 of sales, and which
required more than 100 manhours of service. I have tried every variation of
"Countif " combined with "and" that I can think of , for example:
=countif(and(b1:b100,"<"&100000),(c1:c100,""&100) )
This is a simplified example, but this is the solution I need. Can anyone
help?

Luke M

Excel Formula to evaluate multiple criteria (countif + and)
 
=SUMPRODUCT((B1:B100<100000)*(C1:C100100))

Notes about SUMPRODUCT: Prior to 2007, you can not use an entire column as
an array (but you can use an entire row...go figure?). Array sizes must all
be the same. As you may guess, you can easily add more criteria to this
function if you wish.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"VPSales" wrote:

I am trying to evaluate a data base of customers where column A lists the
customers by name, column B is annualized sales $, and column C is the
manhours of service per year spent on that account. I want to know how many
customers I have which generated less than $100,000 of sales, and which
required more than 100 manhours of service. I have tried every variation of
"Countif " combined with "and" that I can think of , for example:
=countif(and(b1:b100,"<"&100000),(c1:c100,""&100) )
This is a simplified example, but this is the solution I need. Can anyone
help?


Ashish Mathur[_2_]

Excel Formula to evaluate multiple criteria (countif + and)
 
Hi,

Assume that the data is arranged as follows in range C9:E14

Name Sales manhours
A 123456 123
S 6746 123
D 89023 23
F 5679 99
A 6689 67

In C16:E16, enter Name,Sales,manhours. In D17, enter <100000 and in E18
enter 100. In cell C17, enter =DCOUNTA($C$9:$E$14,C16,D16:E17)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"VPSales" wrote in message
...
I am trying to evaluate a data base of customers where column A lists the
customers by name, column B is annualized sales $, and column C is the
manhours of service per year spent on that account. I want to know how
many
customers I have which generated less than $100,000 of sales, and which
required more than 100 manhours of service. I have tried every variation
of
"Countif " combined with "and" that I can think of , for example:
=countif(and(b1:b100,"<"&100000),(c1:c100,""&100) )
This is a simplified example, but this is the solution I need. Can anyone
help?




All times are GMT +1. The time now is 11:12 PM.

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