Determining Frequency Distribution in a Range of CellsLast reviewed: November 2, 1994Article ID: Q42801 |
The information in this article applies to:
The easiest way to determine the frequency of distribution in a range is to use the SUM and IF functions in an array. For example, to determine the number of 3's in the range B2:E10, use the following formula:
=SUM(IF(B2:E10=3,1,0))To enter this function as an array formula, press CTRL+SHIFT+ENTER. This will give you the desired result. The IF function, when entered as an array, checks each array element separately and returns either a 1 or a 0 (zero) depending on whether it compares true or false. For each 1 or 0, the SUM function keeps a total. After it goes through the entire selection, you will have the total number of 3's in the range.
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |