Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,814
Default Countings rows based on column criteria

Hi,

I'm working with Microsoft Excel 2000 and I am trying to obtain how to count
the number of rows that correspond to a variety of column criteria (e.g.
column A is equal to "N" and column B is equal to "Y" and column C is equal
to "Z") but can't seem to work out an easy function to do this.

Can you please help ASAP?

Thanks,
Steve Boscoscuro

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Countings rows based on column criteria

Try this,

=SUMPRODUCT(--(A2:A10="N"),--(B2:B10="Y"),--(C2:C10="Z"))

I have assumed your data are in A2 to C10, allter to suit.

Mike

"Steve" wrote:

Hi,

I'm working with Microsoft Excel 2000 and I am trying to obtain how to count
the number of rows that correspond to a variety of column criteria (e.g.
column A is equal to "N" and column B is equal to "Y" and column C is equal
to "Z") but can't seem to work out an easy function to do this.

Can you please help ASAP?

Thanks,
Steve Boscoscuro

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Countings rows based on column criteria

Try this:

=Sumproduct((A1:A100="N")*(B1:B100="Y")*(C1:C100=" Z"))

You *cannot* use total column references (A:A), and all ranges *must* be of
equal size.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Steve" wrote in message
...
Hi,

I'm working with Microsoft Excel 2000 and I am trying to obtain how to

count
the number of rows that correspond to a variety of column criteria (e.g.
column A is equal to "N" and column B is equal to "Y" and column C is

equal
to "Z") but can't seem to work out an easy function to do this.

Can you please help ASAP?

Thanks,
Steve Boscoscuro


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
Code help, delete rows based on column criteria Stout Excel Discussion (Misc queries) 2 March 20th 07 01:17 PM
Selecting rows based on criteria JCP Excel Discussion (Misc queries) 3 April 5th 06 09:26 AM
Delete rows based on certain criteria Coal Miner Excel Discussion (Misc queries) 2 March 3rd 06 05:56 PM
move contents of column C based on criteria related to column A Debra Excel Discussion (Misc queries) 2 December 27th 05 10:25 PM
Copying whole rows based upon one criteria kirbster1973 Excel Discussion (Misc queries) 2 May 26th 05 10:00 PM


All times are GMT +1. The time now is 02:14 PM.

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"