Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=MEDIAN(B2:B6)Computed by a real spreadsheet engine on the sample data below.
| Salesperson | Revenue |
| Alice | 300 |
| Bob | 500 |
| Carol | 200 |
| Dave | 800 |
| Eve | 450 |
=MEDIAN(B2:B6)→450
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need it for your exact data?
Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.
In Excel 365 or Google Sheets: =MEDIAN(IF(A2:A6="North",B2:B6)). In older Excel, confirm with Ctrl+Shift+Enter to make it an array formula.
It returns the arithmetic mean of the two middle values when the count is even.
Use the AVERAGE function to calculate the arithmetic mean of a range of numbers in Excel or Google Sheets.
How-toUse AVERAGEIF with a "<>0" criterion to calculate an average that excludes zero values from the calculation.
How-toAVERAGE naturally ignores blank cells; use AVERAGEIF with "<>" to also ignore text placeholders like dashes.
How-toUse AVERAGEIF to compute the mean of values in one column where a corresponding column meets a specified criterion.
How-toCompute a rolling average for each row using AVERAGE with a fixed-window OFFSET or INDEX formula anchored to each row.
How-toUse MODE for numbers or COUNTIF-based logic for text to find the value that appears most frequently in a dataset.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: