# AVERAGE formula generator

> Describe what you need and get a AVERAGE formula for Excel and Google Sheets, run on real data before you copy it. Plus 8 tested AVERAGE examples.

Source: https://spreadsheetpractice.com/tools/formula-generator/average · Updated October 29, 2026 · Formulas and results on this page were run by the Spreadsheet Practice formula engine on November 20, 2026

AVERAGE adds up the numbers you give it and divides by how many numbers there are.

Describe the task at [AVERAGE formula generator](https://spreadsheetpractice.com/tools/formula-generator/average) and get a AVERAGE formula for Excel and Google Sheets, tested on real data.

## Tested AVERAGE examples

### Calculate employee turnover rate

`=C2/AVERAGE(B2,D2)`

Excel. Result on the sample sheet: 5 rows (E2:E6). [See it and try it](https://spreadsheetpractice.com/formulas/employee-turnover-rate)

### Calculate a moving average

`=AVERAGE(B2:B4)`

Excel. Result on the sample sheet: 6 rows (C4:C9). [See it and try it](https://spreadsheetpractice.com/formulas/moving-average)

### Find the median

`=MEDIAN(B2:B11)`

Excel. Result on the sample sheet: $301,500. [See it and try it](https://spreadsheetpractice.com/formulas/find-the-median)

### Calculate the percentage difference between two numbers

`=ABS(B2-C2)/AVERAGE(B2,C2)`

Excel. Result on the sample sheet: 5 rows (D2:D6). [See it and try it](https://spreadsheetpractice.com/formulas/percentage-difference-between-two-numbers)

### Count cells above or below the average

`=COUNTIF(B2:B11,">"&AVERAGE(B2:B11))`

Excel. Result on the sample sheet: 6. [See it and try it](https://spreadsheetpractice.com/formulas/count-cells-above-average)

### Label values above or below average

`=IF(B2>AVERAGE($B$2:$B$9),"Above average","At or below")`

Excel. Result on the sample sheet: 8 rows (C2:C9). [See it and try it](https://spreadsheetpractice.com/formulas/label-values-above-or-below-average)

### Fix the #NAME? error

`=AVERAGE(B2:B9)`

Excel. Result on the sample sheet: 75.5. [See it and try it](https://spreadsheetpractice.com/formulas/name-error-misspelled-function)

### Average percentages correctly

`=SUM(C2:C6)/SUM(B2:B6)`

Excel. Result on the sample sheet: 2.6%. [See it and try it](https://spreadsheetpractice.com/formulas/average-percentages-correctly)

## Questions

### What does the AVERAGE formula generator do?

You describe the task in plain English, and it writes the formula, using AVERAGE where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.

### What does AVERAGE do?

AVERAGE adds up the numbers you give it and divides by how many numbers there are.

### Can I learn to write AVERAGE formulas myself?

Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the AVERAGE function page has a practice exercise.

---

Spreadsheet Practice (https://spreadsheetpractice.com) teaches spreadsheet formulas by practice: every exercise is graded in a live grid and re-checked on changed data.
