LikeOffice.com

excel utility

Keep In Touch:
 contact us  facebook
 
Get HELP with your Excel Project:
 Excel Formula
 List of Excel Formula examples
 
Home >> excel 2007 >> Excel 2007 - Statistical formula

This page presents how to work with Microsoft Excel 2007 features and its redesigned interface. You may also visit our Excel Question page.

 

   Calculate the average of a group of numbers

   Calculate the median of a group of numbers

   Calculate the mode of a group of numbers

 

Calculate the average of a group of numbers

Excel 2007

Let's say you want to find the average number of days to complete a milestone in a project or the average temperature on a particular day over a 10-year time span. There are several ways to calculate the average of a group of numbers.

The AVERAGE function measures central tendency, which is the location of the center of a group of numbers in a statistical distribution. The three most common measures of central tendency are:

  • Average   which is the arithmetic mean, and is calculated by adding a group of numbers and then dividing by the count of those numbers. For example, the average of 2, 3, 3, 5, 7, and 10 is 30 divided by 6, which is 5.
  • Median   which is the middle number of a group of numbers; that is, half the numbers have values that are greater than the median, and half the numbers have values that are less than the median. For example, the median of 2, 3, 3, 5, 7, and 10 is 4.
  • Mode   which is the most frequently occurring number in a group of numbers. For example, the mode of 2, 3, 3, 5, 7, and 10 is 3.

For a symmetrical distribution of a group of numbers, these three measures of central tendency are all the same. For a skewed distribution of a group of numbers, they can be different.

What do you want to do?

Calculate the average of numbers in a contiguous row or column

Calculate the average of numbers not in a contiguous row or column

Calculate a weighted average

Calculate the average of numbers, ignoring zero (0) values

Calculate the average of numbers in a contiguous row or column

  1. Click a cell below or to the right of the numbers for which you want to find the average.
  2. On the Home tab, in the Editing group, click the arrow next to AutoSum , click Average, and then press ENTER.

 Top of Page

Calculate the average of numbers not in a contiguous row or column

To do this task, use the AVERAGE function.

Example

The example may be easier to understand if you copy it to a blank worksheet.

How to copy an example

  1. Create a blank workbook or worksheet.
  2. Select the example in the Help topic.

 Note    Do not select the row or column headers.

Selecting an example from Help

  1. Press CTRL+C.
  2. In the worksheet, select cell A1, and press CTRL+V.
  3. To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.

 

1

2

3

4

5

6

7

A

 

Data

10

7

9

27

0

4

Formula

Description (Result)

=AVERAGE(A2:A7)

Averages all of numbers in list above (9.5)

=AVERAGE(A2:A4,A7)

Averages the top three and the last number in the list (7.5)

=AVERAGEIF(A2:A7, "<>0")

Averages the numbers in the list except those that contain zero, such as cell A6 (11.4)

Function details

AVERAGE

AVERAGEIF

 Top of Page

Calculate a weighted average

To do this task, use the SUMPRODUCT and SUM functions.

Example

The example may be easier to understand if you copy it to a blank worksheet.

How to copy an example

  1. Create a blank workbook or worksheet.
  2. Select the example in the Help topic.

 Note    Do not select the row or column headers.

Selecting an example from Help

  1. Press CTRL+C.
  2. In the worksheet, select cell A1, and press CTRL+V.
  3. To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.

This example calculates the average price paid for a unit across three purchases, where each purchase is for a different number of units at a different price per unit.

 

1

2

3

4

A

B

Price per unit

Number of units

20

500

25

750

35

200

Formula

Description (Result)

=SUMPRODUCT(A2:A4,B2:B4)/SUM(B2:B4)

Divides the total cost of all three orders by the total number of units ordered (24.66)

Function details

SUM

SUMPRODUCT

 Top of Page

Calculate the average of numbers, ignoring zero (0) values

To do this task, use the AVERAGE and IF functions.

Example

The example may be easier to understand if you copy it to a blank worksheet.

How to copy an example

  1. Create a blank workbook or worksheet.
  2. Select the example in the Help topic.

 Note    Do not select the row or column headers.

Selecting an example from Help

  1. Press CTRL+C.
  2. In the worksheet, select cell A1, and press CTRL+V.
  3. To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.

 

1

2

3

4

5

6

7

A

 

Data

10

7

9

27

0

4

Formula

Description (Result)

=AVERAGEIF(A2:A7, "<>0")

Averages the numbers in the list except those that contain zero, such as cell A6 (11.4)

Function details

AVERAGEIF

 Top of Page

 

 

Excel > Formula and name basics > Examples of formulas > Statistical

Calculate the median of a group of numbers

Excel 2007

Let's say you want to find out what the midpoint is in a distribution of student grades or a quality control data sample. To calculate the median of a group of numbers, use the MEDIAN function.

The MEDIAN function measures central tendency, which is the location of the center of a group of numbers in a statistical distribution. The three most common measures of central tendency are:

  • Average   which is the arithmetic mean, and is calculated by adding a group of numbers and then dividing by the count of those numbers. For example, the average of 2, 3, 3, 5, 7, and 10 is 30 divided by 6, which is 5.
  • Median   which is the middle number of a group of numbers; that is, half the numbers have values that are greater than the median, and half the numbers have values that are less than the median. For example, the median of 2, 3, 3, 5, 7, and 10 is 4.
  • Mode   which is the most frequently occurring number in a group of numbers. For example, the mode of 2, 3, 3, 5, 7, and 10 is 3.

For a symmetrical distribution of a group of numbers, these three measures of central tendency are all the same. For a skewed distribution of a group of numbers, they can be different.

Example

The example may be easier to understand if you copy it to a blank worksheet.

How to copy an example

  1. Create a blank workbook or worksheet.
  2. Select the example in the Help topic.

 Note    Do not select the row or column headers.

Selecting an example from Help

  1. Press CTRL+C.
  2. In the worksheet, select cell A1, and press CTRL+V.
  3. To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.

 

1

2

3

4

5

6

7

A

 

Data

10

7

9

27

0

4

Formula

Description (Result)

=MEDIAN(A2:A7)

Median of numbers in list above (8)

Function details

MEDIAN

 

 

Excel > Formula and name basics > Examples of formulas > Statistical

Calculate the mode of a group of numbers

Excel 2007

Let's say you want to find out the most common number of bird species sighted in a sample of bird counts at a critical wetland over a 30-year time period, or you want to find out the most frequently occurring number of phone calls at a telephone support center during off-peak hours. To calculate the mode of a group of numbers, use the MODE function.

The MODE function measures central tendency, which is the location of the center of a group of numbers in a statistical distribution. The three most common measures of central tendency are:

  • Average   which is the arithmetic mean, and is calculated by adding a group of numbers and then dividing by the count of those numbers. For example, the average of 2, 3, 3, 5, 7, and 10 is 30 divided by 6, which is 5.
  • Median   which is the middle number of a group of numbers; that is, half the numbers have values that are greater than the median, and half the numbers have values that are less than the median. For example, the median of 2, 3, 3, 5, 7, and 10 is 4.
  • Mode   which is the most frequently occurring number in a group of numbers. For example, the mode of 2, 3, 3, 5, 7, and 10 is 3.

For a symmetrical distribution of a group of numbers, these three measures of central tendency are all the same. For a skewed distribution of a group of numbers, they can be different.

Example

The example may be easier to understand if you copy it to a blank worksheet.

How to copy an example

  1. Create a blank workbook or worksheet.
  2. Select the example in the Help topic.

 Note    Do not select the row or column headers.

Selecting an example from Help

  1. Press CTRL+C.
  2. In the worksheet, select cell A1, and press CTRL+V.
  3. To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.

 

1

2

3

4

5

6

7

A

 

Data

10

7

9

7

0

4

Formula

Description (Result)

=MODE(A2:A7)

Mode of numbers in list above (7)

                  

Microsoft® and Microsoft Excel® are registered trademarks of Microsoft Corporation.
©2003-2013 LikeOffice - Privacy Policy - Contact us