• Share

Discuss in my forum

# Excel AVERAGE IF Quick Tutorial

## Using the AVERAGEIF Function on Selected Ranges of Data

Excel AVERAGEIF Function

Related Tutorial: Step by Step Tutorial with Screen Shots - Excel AVERAGE IF Function

The AVERAGE IF function is used to find the average of values in cells in a selected range that meet certain criteria.

The syntax for the AVERAGE IF function is:

=AVERAGEIF( Range, Criteria, Average_range)

Range - the group of cells the function is to search.

Criteria - determines whether the data in a cell is to be averaged or not.

Average_range - the data range that is averaged if the first range meets the specified criteria. If this range is omitted, the first range is averaged instead.

### Example: Using Excel 2010's AVERAGE IF Function

In this example we will find the values in the range E1 to E6 that equal 165.

For those that do equal 165, we will average the corresponding numbers in cells F1 to F6.

Note: For help with this example, see the image above.

1. Enter the following data into cells E1 to E6: 114, 165, 178, 143, 130, 165.

2. Enter the following data into cells F1 to F6: 10, 20, 30, 10, 20, 30.

3. Click on cell F7 - the location where the results will be displayed.

4. Click on the Formulas tab of the ribbon.

5. Choose More Functions > Statistical from the ribbon to open the function drop down list.

6. Click on AVERAGEIF in the list to bring up the function's dialog box.

7. In the dialog box, click on the Range line.

8. Drag select cells E1 to E6 on the spreadsheet.

9. On the Criteria line in the dialog box, type "165".

10. Click on the Average_range line.

11. Drag select cells F1 to F6 on the spreadsheet.

12. Click OK.

13. The answer 25 should appear in cell F7. Since the criteria of equaling 165 is met by only two cells - E2 and E6, only their corresponding cells - F2 and F6 are averaged. The average of 20 and 30 is 25.

Ted French