What does the AVERAGE function not ignore

Average Cells with Numbers -- AVERAGE

The Excel AVERAGE function will calculate the average (arithmetic mean) for a specified set of numbers in an Excel spreadsheet.

It is one of the central tendency functions, like MEDIAN and MODE.

  • Note: To see how the central tendency functions compare, go to the MEDIAN Function Examples page.

AVERAGE Syntax

The AVERAGE function syntax has the following arguments:

  • =AVERAGE(number1, [number2], ...)

The arguments (e.g. number1) can be cell references, or cell ranges, or numbers typed into the AVERAGE formula.

In the list of arguments, you can include up to 255 arguments, with numbers to include in the average

What does the AVERAGE function not ignore

AVERAGE Function Example

The following AVERAGE function example uses one argument -- a reference to cells A1:A5.

  1. Enter the sample data on your worksheet
  2. In cell A7, enter an AVERAGE formula, to average the numbers in column A:   =AVERAGE(A1:A5)  

    What does the AVERAGE function not ignore

  3. Press the Enter key, to complete the formula.
  4. The result will be 21.83, the average of the cells that contain numbers.
    Cell A1 isn't included in the average, because it contains text, and the empty cell C3, is ignored.
    What does the AVERAGE function not ignore

Note: Since dates are stored as numbers, the AVERAGE function will include any cells that contain dates.

Average Cells with Data -- AVERAGEA

The AVERAGEA function will average cells that are not empty. Its syntax is:
    =AVERAGEA(value1, value2,...value30).
The arguments (e.g. value1) can be cell references, or values typed into the formula. The following example uses one argument -- a reference to cells A1:A5.

  1. Enter the sample data on your worksheet
  2. In cell A7, enter a AVERAGEA formula, to average the numbers in column A:   =AVERAGEA(A1:A5)  

    What does the AVERAGE function not ignore

  3. Press the Enter key, to complete the formula.
  4. The result will be 16.38, the average of the cells that contain data. Cell A1 contains text, which is treated as a zero, and cell A3 is not included in the average, because it is blank.

Note: AVERAGEA will include cells with formulas — including those that look empty, because they evaluate to "", e.g. =IF(B2="","",B2).

Average cells that match criteria -- AVERAGEIF

This short video show how to create a flexible AVERAGEIF formula, to calculate the average quantity sold, for the selected product name. There are written steps below the video, and the sample file is in the Download section

Match criterion exactly

In Excel, calculate average of the numbers for cells that meet a specific criterion. In this example only the quantities for the Pen orders will be averaged.

  1. Select the cell in which you want to see the average (cell A12 in this example)
  2. Type an equal sign (=) to start the formula
  3. Type:   AVERAGEIF(
  4. Select the cells that contain the values to check for the criterion. In this example, cells A1:A10 will be checked
  5. Type a comma, to separate the arguments
  6. Type the criterion. In this example, you're checking for text, so type the word in double quotes:   "Pen"
    Note: upper and lower case are treated equally
  7. Type a comma, to separate the arguments
  8. Select the cells that contain the values to average. In this example, cells B1:B10 contain the values
  9. Type a closing bracket
    The completed formula is: =AVERAGEIF(A1:A10,"Pen",B1:B10)
  10. What does the AVERAGE function not ignore

  11. Press the Enter key to complete the entry
  12. The result will be 9.25, the average of the values for rows that contain "Pen"
    What does the AVERAGE function not ignore

Match criterion in a string

In Excel, average cells in rows that contain a criterion as part of the cell's contents. In this example all Pen, Gel Pen, and Pencil orders will be averaged, because they contain the string "pen".

  1. Select the cell in which you want to see the calculated average (cell A12 in this example)
  2. Type an equal sign (=) to start the formula
  3. Type:   AVERAGEIF(
  4. Select the cells that contain the values to check for the criterion. In this example, cells A1:A10 will be checked
  5. Type a comma, to separate the arguments
  6. Type the criterion. In this example, you're checking for text, so type the word in double quotes, with one or more asterisk (*) wildcard characters:   "*Pen*"
    Note: upper and lower case are treated equally
  7. Type a comma, to separate the arguments
  8. Select the cells that contain the values to average. In this example, cells B1:B10 contain the values
  9. Type a closing bracket
    The completed formula is: =AVERAGEIF(A1:A10,"*Pen*",B1:B10)
  10. What does the AVERAGE function not ignore

  11. Press the Enter key to complete the entry
  12. The result will be 8.83, the average of a range of rows that contain the string, "Pen", in column A
    What does the AVERAGE function not ignore

Note: Instead of typing the criterion in a formula, you can refer to a cell. For example, the formula in step 7 above could be changed to:
    =AVERAGEIF(A1:A10,"*" & B12 & "*",B1:B10)
if cell B12 contained the text — pen.

Criterion and operator

You can use an operator with a criterion. In this example only the rows where the quantity is greater than or equal to ten will be averaged.

  1. Select the cell in which you want to see the average (cell A12 in this example)
  2. Type an equal sign (=) to start the formula
  3. Type:   AVERAGEIF(
  4. Select the cells that contain the values to check for the criterion. In this example, cells B1:B10 will be checked
  5. Type a comma, to separate the arguments
  6. Type the criterion. In this example, you're checking for rows where the quantity is greater than or equal to 10. The >= operator is used before the number, and the entire criterion is enclosed in double quotes: ">=10"
    Note: Even though this is a numerical criterion, it must enclosed in double quote marks.
  7. Type a closing bracket
  8. The completed formula is:
              =AVERAGEIF(B1:B10,">=10")

  9. Press the Enter key to complete the entry
  10. What does the AVERAGE function not ignore

Note: Instead of typing the criterion in a formula, you can refer to a cell. For example, the formula in step 8 above could be changed to:
    =AVERAGEIF(B1:B10,">=" & B12)
if cell B12 contained the number — 10

Average Rows in a Filtered List -- SUBTOTAL

After you filter the rows in a list, you can use the SUBTOTAL function to average the visible rows.

  1. Apply an AutoFilter to the table. There are instructions here -- AutoFilter Basics
  2. Filter at least one of the columns in the table. In this example, the first column has been filtered for Binders.
  3. Select the cell immediately below the column you want to sum.
  4. Click the AutoSum button on the Ribbon's Home tab or Formulas tab.
    • If you want the SUBTOTAL function in a cell other than the one directly below the filtered list, you can type the formula, instead of using the AutoSum button.
  5. A SUBTOTAL formula will be automatically inserted, totalling the visible cells in the column
    • The first argument in the SUBTOTAL function is a function number, that specifies how the numbers should be calculated. The default is 9, which tells Excel to SUM the numbers.
    • Other function numbers can be used, such as 1 for AVERAGE, or 2 for COUNT.
  6. To Average all the non-empty cells in column D, select 1 - AVERAGE from the drop down list of functions, as the first argument:
    =SUBTOTAL(1,D2:D10)
  7. What does the AVERAGE function not ignore

  8. Check the range of cells to be averaged, and correct the range address, if necessary.
  9. Press the Enter key to complete the formula entry.
  10. Note: In the Subtotal function, you can use 101, instead of 1:
        =SUBTOTAL(101,D2:D10)
    to subtotal rows which have been manually hidden, as well as filtered rows.

    What does the AVERAGE function not ignore

Video: Trimmed Mean With TRIMMEAN Function

To exclude a specific percentage of outlying data from an average, you can use Excel's TRIMMEAN function. Watch this video to see how to set up the formula, and the written instructions are below the video.

Trimmed Mean With TRIMMEAN Function

To exclude outlying data from an average, you can use the TRIMMEAN function. This function excludes a specific percentage of data points from the top and bottom of the data set, then returns the average (mean) of the remaining data points.

NOTE: In this example, the quantities are sorted in ascending order, so it is easier to see the top and bottom numbers. Numbers do NOT need to be sorted, for the TRIMMEAN function to calculate correctly.

TRIMMEAN Function

The TRIMMEAN function requires 2 arguments: TRIMMEAN(array, percent)

In this example,

  • the values for the array are in cells B2:B21
  • the trim percent is entered in cell E3, as 25% (or 0.25)

To calculate the trimmed mean, enter this formula in cell E4::

=TRIMMEAN(B2:B21, E3)

The TRIMMEAN result (53.06) is different from the AVERAGE (51.95), which is shown in cell E5.

What does the AVERAGE function not ignore

How TRIMMEAN Works

In this example, there are 20 values, and the trim percent is 25%.

To calculate how many number to trim,

  • the values are counted, then multiplied by the trim percentage (e.g. 20 * .25 = 5
  • That number is divided by 2, to get the number to trim at each end ( e.g. 5 / 2 = 2.5)
  • To remove an equal number of data points at each end, the number is rounded down to the nearest integer ( e.g. INT( 2.5) = 2)

So, in this excample, the top 2 (86,97) and bottom 2 (3,4) data points will not be included in the average that TRIMMEAN calculates.

The AVERAGE function, used on cells B4:B19 in this example, returns the same result as the TRIMMEAN function, with a trim percentage of 25%.

What does the AVERAGE function not ignore

What does the average function not ignore in Excel?

The AVERAGE, AVERAGEIF, and AVERAGEIFS function all automatically ignore blank cells (and cells that contain text values), so there is no need to provide criteria to filter out empty cells. The LARGE function is designed to retrieve the top nth value from a set of numbers.

What does the average function not ignore quizlet?

When Average function calculates cell entries, it ignores certain cell entries. The average function will ignore text in cells and blank cells (not zeros).

Does Excel average function ignore text?

AVERAGE and IFERROR Note: this is an array formula and must be entered with Control + Shift + Enter, except in Excel 365, where arrays are native. AVERAGE automatically ignores text values and returns the same result as above: 90.67.

Does the average function ignore zeros?

If you want to exclude zeroes, use these alternatives. Excel's AVERAGE() function considers zero values in its calculations, which is probably what you'd expect, but not necessarily what you want.