The midrange is the number exactly halfway between the smallest and the largest value in a set of data. To calculate it in Excel, you do not need a built-in function: subtract the minimum from the maximum and divide the result by two using a formula like =(MAX(A2:A100)+MIN(A2:A100))/2. That single formula gives you the midpoint of the extremes, which is the midrange. It is a quick, crude measure of the centre of data, useful when you want the midpoint of a range and are not worried that a single extreme value can pull it around.

What You'll Need

  • Excel on Windows, Mac, or the web app (the formulas work the same in Google Sheets and LibreOffice Calc).
  • Your data in a single column or row, with one numeric value per cell.
  • Numbers stored as actual numbers, not text (more on this below).
  • An empty cell where the result will display.

Step-by-Step

  1. Identify your data range. Suppose your values sit in cells A2 through A101. Write the range down as A2:A101. Keeping data in one contiguous block makes every later step cleaner and avoids picking up headers, notes, or subtotal rows.
  2. Check the data is numeric. Click a value. If Excel shows a green triangle in the corner of the cell, or the number is left-aligned while other numbers are right-aligned, it may be stored as text. To fix one cell, select it and use Data > Text to Columns > Finish. Or multiply the block by 1 in a helper column and paste the result back as values.
  3. Pick a formula to find the maximum. In an empty cell type =MAX(A2:A101) and press Enter. This gives the largest value in the range. Text and blanks are ignored.
  4. Pick a formula to find the minimum. In another empty cell type =MIN(A2:A101) and press Enter. This gives the smallest value. Again, text and blanks are ignored.
  5. Combine them into one midrange formula. Instead of two helper cells, type =(MAX(A2:A101)+MIN(A2:A101))/2 in a single cell. This is the midrange: the average of the two extremes.
  6. Press Enter and check the answer by hand. If the largest value is 120 and the smallest is 40, the midrange must be (120 + 40) / 2 = 80. Verify a few results manually so you know the formula is pulling the right range.
  7. Test for hidden extremes. A single outlier changes the midrange dramatically because it only uses the two endpoints. Sort the range once with Data > Sort to see whether the minimum and maximum are genuine data points or typos such as 1000 instead of 100.
  8. Copy the formula sideways or down if needed. If you have several columns of data and want the midrange per column, drag the fill handle. Use relative references, such as A2:A101, B2:B101, and so on. If you want a fixed range, lock it with dollar signs: $A$2:$A$101.
  9. Format the result. The cell may show a long decimal. Select it and use Home > Number Format to set decimal places, currency, or a plain integer. Formatting changes only the display, not the underlying value.
  10. Document the range. Add a short note beside the result, for example "Midrange of A2:A101," so anyone opening the sheet later knows exactly which rows were used.

Common Mistakes

  • Confusing midrange with median. The median is the middle value when data is sorted, so it ignores how far the extremes sit apart. The midrange is the average of only the largest and smallest values. Excel's =MEDIAN(A2:A101) is a different measure and will often give a different answer.
  • Including the header row. If the range includes a text header such as "Sales," MIN and MAX ignore it, so the result may still look right, but it is easy to include extra numbers, subtotals, or dates by mistake. Confirm the exact range and that it contains only the data you intend.
  • Leaving numbers stored as text. A column of "numbers" that are actually text returns a min and max that skip them entirely, often producing an error or a misleading value. Use the status bar or a quick =ISNUMBER(cell) check to confirm each value is numeric.
  • Forgetting the minus-and-divide order. Divide the range by two and then add the minimum, not the other way around. The correct order is (max + min) / 2. Adding the minimum after dividing gives a wrong midpoint.
  • Trusting the midrange with outliers. One very high or very low entry shifts the midrange far more than the median or mean. Review the data visually or with a quick chart before quoting the result.
  • Hard-coding numbers instead of a range. Typing =(120+40)/2 is not a live formula. Change the data and the answer goes stale. Reference the range so it updates.

Tips

  • Use one formula, =(MAX(range)+MIN(range))/2, rather than two helper columns. It is easier to read and it keeps the spreadsheet tidy.
  • Convert a formula result to a fixed number when you want a snapshot of a midrange that should not change: copy the cell, then paste with Paste Special > Values. Note that the copy no longer updates if the data changes.
  • Label the result, and, if the range spans multiple areas, write the exact references in a comment instead of relying on memory.
  • If your data has zeros you want to exclude, use $*$ variations of the more advanced functions instead. The straightforward MAX and MIN will count zeros, which can make your midpoint wrong. For example, filter out rows containing zero first, then compute the formula on the filtered range.
  • Pair the midrange with other centre measures. Show midrange, median, and mean side by side. The gap between them tells you how skewed the data is.
  • Use named ranges for repeat work. Select the range, type a name in the Name Box, and the formula becomes =(MAX(MyData)+MIN(MyData))/2. It is clearer and less prone to a mistyped cell reference.

Troubleshooting

  • You get #NUM! or #VALUE!. The range likely contains text that Excel cannot coerce, or it is empty. Check that the range is non-empty and numeric. Apply Text to Columns to convert text figures, or use ISTEXT to find offenders.
  • The answer looks identical to the median. That can happen with symmetric data, where median and midrange coincide. With skewed data they will differ. Confirm you used MAX and MIN, not sample functions.
  • The result changes after a sort or filter. MIN and MAX look at every cell in the range, including hidden rows. If you filtered rows out, the formula still counts them. Either copy the visible data to a new area, or accept that the midrange reflects the full block.
  • The value is not updating. Calculation may be set to manual. Check the Formulas tab and switch Calculation Options to Automatic, then press F9 to recalculate.
  • Wrong value after copying. Relative references moved with the drag. Check that each formula still points at the intended cells, or lock the reference with dollar signs.

Frequently Asked Questions

Is there a built-in MIDRANGE function in Excel?

No. Excel has MAX, MIN, AVERAGE, and MEDIAN, but no MIDRANGE function. The formula (MAX(range)+MIN(range))/2 is the standard way to get it.

Does the midrange handle blank cells and text?

Yes. MAX and MIN ignore blanks and text, so stray notes in the column will not break the result, although it is still best to keep the range clean.

What is the difference between midrange and range?

The range is the spread, max minus min. The midrange is the midpoint, (max + min) divided by 2. For 40 and 120 the range is 80 and the midrange is 80, but they are different concepts and the values only coincide in some cases.

Can I calculate the midrange in Google Sheets?

Yes. The same MAX, MIN, and arithmetic operators work in Google Sheets and LibreOffice Calc, using the identical formula.

Should I use midrange instead of the mean?

Only when you want a quick midpoint of the extremes. The mean uses every value, so it is usually a more reliable centre. The midrange is heavily influenced by outliers and tends to be used in simple quality checks or quick summaries.

Why is my midrange so different from the average?

The midrange uses only the two extreme values, while the average uses them all. If one observation is unusually high or low, the midrange swings far more than the mean. Inspect the data before trusting it.