Sei sulla pagina 1di 2

Excel Function Dictionary 1998 - 2000 Peter Noneley A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 B C D E F G H

FREQUENCY Page 1 of 2 I

FREQUENCY
North South East West Jan 5,000 5,800 3,500 12,000 Feb 6,000 7,000 2,000 4,000 Mar 4,500 3,000 10,000 6,000 4 5 3 {=FREQUENCY(D4:F7,E9:E11)} {=FREQUENCY(D4:F7,E9:E11)} {=FREQUENCY(D4:F7,E9:E11)}

Sales 4,000 and below. 4,000 Sales above 4,000 up to 6,000 6,000 Sales above 6,000 999,999

What Does It Do ? This function compares a range of data against a list of intervals. The result shows how many items in the range of data fall between the intervals. The function is entered in the cells as an array, that is why it is enclosed in { } braces. Syntax =FREQUENCY(RangeOfData,ListOfIntervals) Formatting No special formatting is needed. Example 1 The following tables were used to record the weight of a group of children. The =FREQUENCY() function was then used to calculate the number of children whose weights fell between specified intervals. Weight Kg 20.47 22.83 15.74 10.80 8.28 20.66 17.36 16.67 18.01 Number Of Children: Between 0 - 15 Kg 2 Above 15 but less than or equal to 20 Kg 4 Above 20 Kg 3 {=FREQUENCY(C30:C38,C41:C43)} {=FREQUENCY(C30:C38,C41:C43)} {=FREQUENCY(C30:C38,C41:C43)}

Child 1 Child 2 Child 3 Child 4 Child 5 Child 6 Child 7 Child 8 Child 9

Kg Weight Intervals 15 20 100

Example 2 This example uses characters instead of values. A restaurant has asked 40 customers for their rating of the food in the restaurant. The ratings were entered into a table as a single letter, E, V, A, P or D. The manager now wants to calculate how many responses fell into each category. Unfortunately, the =FREQUENCY() function ignores text entries, so how can the frequency

Excel Function Dictionary 1998 - 2000 Peter Noneley A 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 B C of text be calculated? D E F G H

FREQUENCY Page 2 of 2 I

The answer is to use the =CODE() and =UPPER() functions. The =UPPER() forces all the text entries to be considered as capital letters. The =CODE() function calculates the unique ANSI code for each character. As this code is a numeric value, the =FREQUENCY() function can then be used! Rating E V A P D Frequency 6 8 9 8 9

Excellent Very Good Average Poor Disgusting

{=FREQUENCY(CODE(UPPER(B67:I71)),CODE(UPPER(C60:C64)))} {=FREQUENCY(CODE(UPPER(B67:I71)),CODE(UPPER(C60:C64)))} {=FREQUENCY(CODE(UPPER(B67:I71)),CODE(UPPER(C60:C64)))} {=FREQUENCY(CODE(UPPER(B67:I71)),CODE(UPPER(C60:C64)))} {=FREQUENCY(CODE(UPPER(B67:I71)),CODE(UPPER(C60:C64)))}

Customer Ratings V V A A V

D P V E e

V a E d P

A D P V P

p A p D A

A P E P V

D V D a E

D d A E D

Potrebbero piacerti anche