Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

LOGNORM.DIST in Google Sheets: Step-by-Step Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

LOGNORM.DIST in Google Sheets returns the probability that a value from a lognormal distribution is at or below a given number. You type =LOGNORM.DIST(x, mean, standard_deviation, cumulative) into a cell, press Enter, and Sheets calculates either the cumulative probability (with TRUE) or the probability density (with FALSE). No add-on or special setup is required; it is a built-in statistical function. The only real prerequisites are a valid positive value for x, a positive standard deviation, and a clear idea of whether you want a cumulative result or a density value.

What You'll Need

  • A Google account with access to Google Sheets (desktop browser or the mobile app).
  • A spreadsheet with your data, or a blank sheet if you are calculating manually.
  • Your x value (must be greater than 0).
  • The mean and standard deviation of the natural logarithm of your data, not the raw data itself.
  • Decimal points typed as periods, and no thousands separators inside the formula.

Step-by-Step

  1. Open your spreadsheet at sheets.google.com or in the Google Sheets app, and click the cell where you want the result.
  2. Type an equals sign to start a formula: =
  3. Type LOGNORM.DIST( and you will see the function name appear in the autocomplete list. Press Tab or keep typing.
  4. Enter the first argument, x: the value you are testing. It must be a positive number. For example, 50.
  5. Type a comma, then enter the mean of ln(x). For example, 3.5. If you have raw data, calculate this with =AVERAGE(LN(range)) in a separate cell first.
  6. Type a comma, then enter the standard deviation of ln(x). For example, 0.8. Calculate it with =STDEV(LN(range)) if needed. It must be greater than 0.
  7. Type a comma, then enter TRUE for the cumulative probability (the usual choice) or FALSE for the probability density.
  8. Close the bracket with ) and press Enter. The finished formula looks like =LOGNORM.DIST(50, 3.5, 0.8, TRUE).
  9. Check the result. A cumulative value between 0 and 1 is expected. Format the cell as a percentage if you want to read it that way (Format > Number > Percent).
  10. To reuse the formula, drag the fill handle down or copy the cell. Use absolute references (for example $B$1) for the mean and standard deviation so they do not shift.

On the mobile app the steps are the same, but the function autocomplete appears above the keyboard. Menu labels can differ slightly by version, device or region, so if a label does not match exactly, look for the closest equivalent.

Common Mistakes

  • Using the raw mean and standard deviation. LOGNORM.DIST expects the mean and standard deviation of the natural logarithm of your data, not of the original values. Mixing these up gives a wrong answer.
  • Entering x as zero or negative. The lognormal distribution is defined only for positive values, so the function returns an error.
  • Entering a standard deviation of zero or less. This also produces an error.
  • Typing TRUE or FALSE as text with quotes. Write them without quotation marks; otherwise Sheets treats them as text.
  • Local list separators. In some locales the argument separator is a semicolon instead of a comma. If you get a parse error, try the separator your locale uses.
  • Confusing LOGNORM.DIST with LOGNORM.INV. DIST gives a probability from a value; INV gives a value from a probability.

Tips

  • Keep the mean, standard deviation and x in separate cells and reference them. That makes it easy to change inputs without rewriting the formula.
  • Use =LN() on your source data before averaging and taking the standard deviation, so the inputs are in the right form.
  • If you need the probability above a value instead of below it, subtract the result from 1: =1-LOGNORM.DIST(...).
  • Use FALSE (density) only when you are plotting or comparing shapes; most practical questions need TRUE.
  • Label the output cell clearly, for example "P(X ≤ 50)", so the number is not mistaken for a raw value.

Troubleshooting

If you see #NUM!, check that x is greater than 0 and the standard deviation is greater than 0. If you see #VALUE!, one of the arguments is text where a number is expected, or TRUE/FALSE was typed with quotes. If you see #NAME?, the function name is misspelled or the sheet is in a locale that uses a different name; retype it from the autocomplete list. If you get a parse error, check the argument separator for your locale. If the result looks implausible, confirm you used the log-transformed mean and standard deviation rather than the raw ones. If a referenced cell shows an error, fix that cell first, because the error propagates into the formula.

Frequently Asked Questions

What does the cumulative argument do?

TRUE returns the cumulative probability, the chance that a value is at or below x. FALSE returns the probability density at x, which is used for plotting rather than for a probability.

Can I use LOGNORM.DIST with negative x?

No. The lognormal distribution is defined only for positive values, so x must be greater than 0.

How do I get the mean and standard deviation for the formula?

Take the natural log of each data point with =LN(), then use =AVERAGE() and =STDEV() on those logged values.

What is the difference between LOGNORM.DIST and LOGNORM.INV?

LOGNORM.DIST converts a value into a probability. LOGNORM.INV converts a probability into a value, which is useful for percentiles.

Why does my formula return an error when I copy it down?

Relative references shift as you copy. Lock the mean and standard deviation cells with dollar signs, for example $B$1 and $B$2.

Does LOGNORM.DIST work in the Google Sheets mobile app?

Yes, the function is available in the Sheets app. Type it the same way; the autocomplete appears above the keyboard.