#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Counting

Hi Adam

Sumproduct is being used to calculate the outcome of 2 arrays.
There are a series of tests which will return True or False, which upon
multiplication will be coerced to 1 or 0
=SUMPRODUCT((A1:A50=1)*(A1:A50<=2))
(A1:A50=1) will return either True or False
(A1:A50<=2) will return either True or False

Multiplying them together will only give a result of 1, where both cases
are True (1 * 1), and therefore both conditions are met.
Sumproduct then adds all these results to give your answer.

For more information on Sumproduct (and alternative ways to coerce True
and False to 1 and 0), take a look at Bob Phillips excellent treatise at
http://xldynamic.com/source/xld.SUMPRODUCT.html

--
Regards

Roger Govier


"AdamMCW" wrote in message
...
Thanks to you both.

I see how Biff's works with subtraction.

Although yours looks more direct Ragdyer I'm not clear why it works.
I'm
assuming the "*" is not intended to multiply anything and is instead
redifined when used with the Sumproduct function. Is this correct?

"AdamMCW" wrote:

I have a list of scores 1.1, 3.2, 1.2, 2.4, 1.1, 3, etc... . I need
to know
how many are between 1 and 2. Is this a countif? I can't seem to
figure out
how to use two conditions.



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
Counting unique values giantwolf Excel Discussion (Misc queries) 4 August 28th 06 01:31 PM
counting days? Richard Excel Discussion (Misc queries) 2 August 1st 06 02:37 PM
conditional counting with Excel LeicaElmar Excel Worksheet Functions 1 October 17th 05 10:23 PM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 PM
Counting... Patrick G Excel Worksheet Functions 3 February 23rd 05 10:05 PM


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