ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   AND function using COUNTIF (https://www.excelbanter.com/excel-worksheet-functions/164973-function-using-countif.html)

Walter L. skinner

AND function using COUNTIF
 
I would like to count entries in column "B" that equal a criteria and also
meet a criteria in column "A".

For EX:

If entry in column "A" equals "Walt" and entry in column "B" equals "x" then
count

Note: I think I had a solution a few years ago that used the -- function.

Please help me solve this again.

Thanks

Bob Phillips

AND function using COUNTIF
 
=SUMPRODUCT(--(A2:A200="Walt"),--(B2:B200="x"))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Walter L. skinner" wrote in
message ...
I would like to count entries in column "B" that equal a criteria and also
meet a criteria in column "A".

For EX:

If entry in column "A" equals "Walt" and entry in column "B" equals "x"
then
count

Note: I think I had a solution a few years ago that used the -- function.

Please help me solve this again.

Thanks




Gav123

AND function using COUNTIF
 
Hi Walter,

You could try something like this..


=SUMPRODUCT(--(A1:A1000="Walt"),--(B1:B1000="X"))

Hope this helps,

Gav.

"Walter L. skinner" wrote:

I would like to count entries in column "B" that equal a criteria and also
meet a criteria in column "A".

For EX:

If entry in column "A" equals "Walt" and entry in column "B" equals "x" then
count

Note: I think I had a solution a few years ago that used the -- function.

Please help me solve this again.

Thanks


Don Guillett

AND function using COUNTIF
 
=sumproduct((a2:a22="Walt")*(b2:b22="x"))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Walter L. skinner" wrote in
message ...
I would like to count entries in column "B" that equal a criteria and also
meet a criteria in column "A".

For EX:

If entry in column "A" equals "Walt" and entry in column "B" equals "x"
then
count

Note: I think I had a solution a few years ago that used the -- function.

Please help me solve this again.

Thanks



David Biddulph[_2_]

AND function using COUNTIF
 
=SUMPRODUCT((A1:A100="Walt")*(B1:B100="x")) or
=SUMPRODUCT(--(A1:A100="Walt"),--(B1:B100="x"))
--
David Biddulph

"Walter L. skinner" wrote in
message ...
I would like to count entries in column "B" that equal a criteria and also
meet a criteria in column "A".

For EX:

If entry in column "A" equals "Walt" and entry in column "B" equals "x"
then
count

Note: I think I had a solution a few years ago that used the -- function.

Please help me solve this again.

Thanks





All times are GMT +1. The time now is 01:16 PM.

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