Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default Counting using multiple criteria

I need an array formula that will do the following. Count (not sum) the
number of cells in column C that are above the value of 0 if the adjacent
cells in Column A are equal to a value of 1.



--
Thanks
Shawn
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 342
Default Counting using multiple criteria

=sumproduct(--(A1:A65536=1),--(C1:C655360))

"Shawn" wrote:

I need an array formula that will do the following. Count (not sum) the
number of cells in column C that are above the value of 0 if the adjacent
cells in Column A are equal to a value of 1.



--
Thanks
Shawn

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default Counting using multiple criteria

What is the significance of the "--"s? Also, what if I want to change the
formula as follows?
=sumproduct(--(A1:A65536=B1),--(C1:C655360)) as opposed to
=sumproduct(--(A1:A65536=1),--(C1:C655360))


--
Thanks
Shawn


"TomPl" wrote:

=sumproduct(--(A1:A65536=1),--(C1:C655360))

"Shawn" wrote:

I need an array formula that will do the following. Count (not sum) the
number of cells in column C that are above the value of 0 if the adjacent
cells in Column A are equal to a value of 1.



--
Thanks
Shawn

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Counting using multiple criteria

First, you can't use the entire column in xl2003 and older. So adjust your
ranges accordingly.

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

Shawn wrote:

What is the significance of the "--"s? Also, what if I want to change the
formula as follows?
=sumproduct(--(A1:A65536=B1),--(C1:C655360)) as opposed to
=sumproduct(--(A1:A65536=1),--(C1:C655360))

--
Thanks
Shawn

"TomPl" wrote:

=sumproduct(--(A1:A65536=1),--(C1:C655360))

"Shawn" wrote:

I need an array formula that will do the following. Count (not sum) the
number of cells in column C that are above the value of 0 if the adjacent
cells in Column A are equal to a value of 1.



--
Thanks
Shawn


--

Dave Peterson
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
Multiple Counting Criteria Bentam7 Excel Discussion (Misc queries) 3 April 11th 08 06:38 AM
Help counting multiple Criteria Penguin817 Excel Discussion (Misc queries) 6 May 11th 06 07:18 PM
Counting by multiple criteria Risky Dave Excel Worksheet Functions 4 September 28th 05 01:29 PM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Saleem Excel Worksheet Functions 1 January 12th 05 10:54 AM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Arain Excel Worksheet Functions 1 January 12th 05 08:33 AM


All times are GMT +1. The time now is 10:29 AM.

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"