Statistical All versions ◉ 19 views

=HARMEAN()

Returns the harmonic mean of a data set. The harmonic mean is the reciprocal of the arithmetic mean of reciprocals.

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=HARMEAN(number1, [number2], ...)
Hover argument names in the table for details.
Output typeNumber
Popularity6 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =HARMEAN() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
Download HARMEAN.xlsx ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
number1 Number Required , number2, ... Number1 is required, subsequent numbers are optional. 1 to 255 arguments for which you want to calculate the mean. You can also use a single array or a reference to an array instead of arguments separated by commas.

▣ Examples

▦ Data
CellValue
A2 4
A3 5
A4 8
A5 7
A6 11
A7 4
A8 3
A9 4
A10 5
A11 8
A12 7
A13 11
A14 4
A15 3
Harmonic mean of the data set in A2:A8. =HARMEAN(A2:A8)
Result: 5.028376

§ Remarks

  • The harmonic mean is always less than the geometric mean, which is always less than the arithmetic mean.
  • Arguments can either be numbers or names, arrays, or references that contain numbers.
  • Logical values and text representations of numbers that you type directly into the list of arguments are counted.
  • If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.
  • Arguments that are error values or text that cannot be translated into numbers cause errors.
  • If any data point ≤ 0, HARMEAN returns the #NUM! error value.
  • The equation for the harmonic mean is:

✦ Tips

  • The harmonic mean is always less than the geometric mean, which is always less than the arithmetic mean.
  • Arguments can either be numbers or names, arrays, or references that contain numbers.
  • Logical values and text representations of numbers that you type directly into the list of arguments are counted.
  • If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.
  • Arguments that are error values or text that cannot be translated into numbers cause errors.
  • The equation for the harmonic mean is:

⚠ Common Errors

#NUM! If any data point ≤ 0, HARMEAN returns the #NUM! error value.
Fix: Correct the input value

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.