ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   countif() help for multiple rows (https://www.excelbanter.com/excel-worksheet-functions/6127-countif-help-multiple-rows.html)

ob3ron02

countif() help for multiple rows
 

Hi, I've got a table that takes the following form:

A B
____
1 x
1 x
1 (blank)
1 x
1 (blank)
2 x
2 x
2 x
2 (blank)

Is there a way to use COUNTIF() to count for example the number x's in
col B where column A is 1 ?


--
ob3ron02
------------------------------------------------------------------------
ob3ron02's Profile: http://www.excelforum.com/member.php...o&userid=15450
View this thread: http://www.excelforum.com/showthread...hreadid=277099


mzehr

Hi,
Try:
=SUMPRODUCT((A1:A9=1)*(B1:B9="x"))

"ob3ron02" wrote:


Hi, I've got a table that takes the following form:

A B
____
1 x
1 x
1 (blank)
1 x
1 (blank)
2 x
2 x
2 x
2 (blank)

Is there a way to use COUNTIF() to count for example the number x's in
col B where column A is 1 ?


--
ob3ron02
------------------------------------------------------------------------
ob3ron02's Profile: http://www.excelforum.com/member.php...o&userid=15450
View this thread: http://www.excelforum.com/showthread...hreadid=277099



Frank Kabel

Hi
=SUMPRODUCT(--(A1:A100=1),--(B1:B100="x"))

Also see:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
Regards
Frank Kabel
Frankfurt, Germany

"ob3ron02" schrieb im
Newsbeitrag ...

Hi, I've got a table that takes the following form:

A B
____
1 x
1 x
1 (blank)
1 x
1 (blank)
2 x
2 x
2 x
2 (blank)

Is there a way to use COUNTIF() to count for example the number x's

in
col B where column A is 1 ?


--
ob3ron02
---------------------------------------------------------------------

---
ob3ron02's Profile:

http://www.excelforum.com/member.php...o&userid=15450
View this thread:

http://www.excelforum.com/showthread...hreadid=277099




All times are GMT +1. The time now is 07:42 PM.

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