Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Count Rows when certain conditions are met

I am trying to calculate the total number of rows in a table where certain
conditions are met. For example, to put in plain English:

count row 8 if k8=X and n8 = x
count row 9 if k9=x and n8=x
count row 10 if k10= x and n10=x
and so forth....to row 32

Total number of rows where this is true________

Thanks.
DMC
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Count Rows when certain conditions are met

=SUMPRODUCT(--(K2:K32="x"),--(N2:N32="x"))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"dmc0409" wrote in message
...
I am trying to calculate the total number of rows in a table where certain
conditions are met. For example, to put in plain English:

count row 8 if k8=X and n8 = x
count row 9 if k9=x and n8=x
count row 10 if k10= x and n10=x
and so forth....to row 32

Total number of rows where this is true________

Thanks.
DMC



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Count Rows when certain conditions are met

Try something like

=SUMPRODUCT((K8:K32="x")*(N8:N32="x"))


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"dmc0409" wrote in message
...
I am trying to calculate the total number of rows in a table
where certain
conditions are met. For example, to put in plain English:

count row 8 if k8=X and n8 = x
count row 9 if k9=x and n8=x
count row 10 if k10= x and n10=x
and so forth....to row 32

Total number of rows where this is true________

Thanks.
DMC



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Count Rows when certain conditions are met

For example, if you want to count rows matching your criteria:
=SUMPRODUCT((H8:H32="x")*(N8:N32="x"))
If you want to sum the column X matching your criteria, adapt the previous
formula as follows:
=SUMPRODUCT(X8:X32*(H8:H32="x")*(N8:N32="x"))

--
Bye

V.


"dmc0409" wrote:

I am trying to calculate the total number of rows in a table where certain
conditions are met. For example, to put in plain English:

count row 8 if k8=X and n8 = x
count row 9 if k9=x and n8=x
count row 10 if k10= x and n10=x
and so forth....to row 32

Total number of rows where this is true________

Thanks.
DMC

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
How to count after 2 conditions are met Dave Schwinger Excel Worksheet Functions 3 April 3rd 06 09:29 PM
Count Cells if diff cell meets conditions DJS Excel Worksheet Functions 5 January 12th 06 03:47 PM
Conditional count of rows dependent on multiple columns Edwin Castro Excel Worksheet Functions 1 January 11th 06 12:16 AM
Insert rows Mr. G. Excel Worksheet Functions 3 March 31st 05 03:49 AM
How do I count number of cels the matches 2 conditions ? Abra Excel Worksheet Functions 2 February 27th 05 08:56 PM


All times are GMT +1. The time now is 11:09 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"