How to use HARMEAN function in Excel?

The `HARMEAN` function in Excel is used to calculate the harmonic mean of a set of numbers. The harmonic mean is a type of average, which is particularly useful when dealing with rates or ratios, such as speeds or densities.

Here’s how you can use the `HARMEAN` function:

Syntax

HARMEAN(number1, [number2], ...)
  • number1, number2, …: These are the numbers for which you want to calculate the harmonic mean. You can input numbers directly, use cell references, or include ranges.

Steps to Use HARMEAN

  • Select a Cell: Click on the cell where you want to display the harmonic mean result.
  • Enter the Function: Type `=HARMEAN(` to start the function.
  • Input Numbers/Range:
    • You can either type in the numbers separated by commas, like `=HARMEAN(1, 2, 3)`.
    • Or, if your numbers are in a range of cells, select that range. For example, `=HARMEAN(A1:A10)`.
  • Close Parenthesis and Enter: Finish the formula with a closing parenthesis `)` and press `Enter`.

Example

Suppose you have a list of numbers in cells A1 through A5:

  • A1: 4
  • A2: 5
  • A3: 8
  • A4: 7
  • A5: 10

To calculate the harmonic mean, click on a different cell (say B1), and enter the formula:

=HARMEAN(A1:A5)

Press `Enter`, and the harmonic mean of these numbers will be displayed in cell B1.

Considerations

  • Numbers must be positive. If any number in the reference is zero or negative, the function returns a `#NUM!` error.
  • The harmonic mean is most useful when dealing with quantities that are rates, as it gives a better indicator of average in such contexts compared to the arithmetic mean.

By following these steps, you can easily calculate the harmonic mean of a set of numbers using Excel’s `HARMEAN` function.

Unlock Your Potential

Excel

Basic - Advanced

Access

Access Basic - Advanced

Power BI

Power BI Basic - Advanced

Help us grow the project