Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Determine number of rows meeting a condition

Within Office XP I need to count how many instances there are of a condition
being met...
For example, a column is assigned a categorizing code such as "A", "B", or
"C"... Is there a way to count the rows that have an "A" code assigned to
them? I'm looking for a solution specifying something like "25 rows meet the
"A" criterion".

Thank you...
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Determine number of rows meeting a condition

I will assume Office XP refers to Excel 2003
Let's assume the column is D
If you want to sum all the A's in the entire column use
=COUNTIF(D:D,"A")
If you need to check only part of the column (rows 1 to 100, for example)
=COUNTIF(D1:D100,"A")

To make a fancy answer use
=COUNTIF(D:D,"A")&" rows meet the 'A' condition"
If you are a double-quotes person
=COUNTIF(D:D,"A")&" rows meet the ""A"" condition"
where there are two double-quotes each side of A

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Snapps" wrote in message
...
Within Office XP I need to count how many instances there are of a
condition
being met...
For example, a column is assigned a categorizing code such as "A", "B", or
"C"... Is there a way to count the rows that have an "A" code assigned to
them? I'm looking for a solution specifying something like "25 rows meet
the
"A" criterion".

Thank you...



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Determine number of rows meeting a condition

....My mistake, I'm using Excel 2002. Is there a method that you know of for
that version? Thanks again...

"Bernard Liengme" wrote:

I will assume Office XP refers to Excel 2003
Let's assume the column is D
If you want to sum all the A's in the entire column use
=COUNTIF(D:D,"A")
If you need to check only part of the column (rows 1 to 100, for example)
=COUNTIF(D1:D100,"A")

To make a fancy answer use
=COUNTIF(D:D,"A")&" rows meet the 'A' condition"
If you are a double-quotes person
=COUNTIF(D:D,"A")&" rows meet the ""A"" condition"
where there are two double-quotes each side of A

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Snapps" wrote in message
...
Within Office XP I need to count how many instances there are of a
condition
being met...
For example, a column is assigned a categorizing code such as "A", "B", or
"C"... Is there a way to count the rows that have an "A" code assigned to
them? I'm looking for a solution specifying something like "25 rows meet
the
"A" criterion".

Thank you...




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Determine number of rows meeting a condition

Works will ALL versions - try it!
No one's PC exploded because they made typing error.
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Snapps" wrote in message
...
...My mistake, I'm using Excel 2002. Is there a method that you know of
for
that version? Thanks again...

"Bernard Liengme" wrote:

I will assume Office XP refers to Excel 2003
Let's assume the column is D
If you want to sum all the A's in the entire column use
=COUNTIF(D:D,"A")
If you need to check only part of the column (rows 1 to 100, for example)
=COUNTIF(D1:D100,"A")

To make a fancy answer use
=COUNTIF(D:D,"A")&" rows meet the 'A' condition"
If you are a double-quotes person
=COUNTIF(D:D,"A")&" rows meet the ""A"" condition"
where there are two double-quotes each side of A

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Snapps" wrote in message
...
Within Office XP I need to count how many instances there are of a
condition
being met...
For example, a column is assigned a categorizing code such as "A", "B",
or
"C"... Is there a way to count the rows that have an "A" code assigned
to
them? I'm looking for a solution specifying something like "25 rows
meet
the
"A" criterion".

Thank you...






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Determine number of rows meeting a condition

=COUNTIF(A:A,"A") & " rows are coded A"


Gord Dibben MS Excel MVP


On Thu, 2 Nov 2006 11:58:02 -0800, Snapps
wrote:

Within Office XP I need to count how many instances there are of a condition
being met...
For example, a column is assigned a categorizing code such as "A", "B", or
"C"... Is there a way to count the rows that have an "A" code assigned to
them? I'm looking for a solution specifying something like "25 rows meet the
"A" criterion".

Thank you...




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
The increase number of rows in Excel wise_man Excel Discussion (Misc queries) 12 January 17th 07 02:38 PM
Pivot table row fields limit vs. number of rows in use for Excel 2 VP needs help Excel Discussion (Misc queries) 3 October 11th 06 08:11 PM
Increase the maximum number of rows Mortego Excel Discussion (Misc queries) 3 June 29th 06 02:03 PM
Pulling Data off Web - Need Function Help patfergie44 Excel Worksheet Functions 9 June 22nd 06 03:27 AM
Counting the number of rows blurboiboi Excel Worksheet Functions 1 July 13th 05 11:20 AM


All times are GMT +1. The time now is 05:09 PM.

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

About Us

"It's about Microsoft Excel"