Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ob3ron02
 
Posts: n/a
Default 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

  #2   Report Post  
mzehr
 
Posts: n/a
Default

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


  #3   Report Post  
Frank Kabel
 
Posts: n/a
Default

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert rows based on specific value bob Excel Worksheet Functions 6 February 29th 08 07:11 PM
HELP! How do you--> Lock a set of rows but also link worksheets to FRUSTRATED Excel Discussion (Misc queries) 6 December 29th 04 10:05 PM
Unable to select rows in the repeat rows on top option Noppie Excel Discussion (Misc queries) 2 December 28th 04 03:17 PM
Adding Rows to Master Sheet Excel Newbie New Users to Excel 1 December 23rd 04 10:56 PM
Copying Rows when hiding other rows Neutron1871 Excel Worksheet Functions 2 November 3rd 04 11:38 PM


All times are GMT +1. The time now is 12:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"