LOGNORM.DIST
Quirk foundCategory: Statistical · Last tested 2026-09-01
Real compatibility results for the LOGNORM.DIST function: executed in Excel for the web, Google Sheets and LibreOffice Calc, with desktop Excel behavior from Microsoft’s official documentation (we do not run desktop Excel — Excel for the web is a different application and is executed separately). Syntax and links to that documentation are below.
Support matrix
| Engine | Documented | Live-tested | Verdict |
|---|---|---|---|
| Excel (desktop) | Yes | No — documented only | n/a |
| Excel for the web | — | Yes (recalc, 2026-09-01) | Supported, behaves as documented |
| Google Sheets | Yes | Yes (Drive import, 2026-08-31) | Supported, behaves as documented |
| LibreOffice Calc | Yes | Yes (25.8.7.3, 2026-08-31) | Quirk found |
LibreOffice version history
We executed the same test cases under each LibreOffice release to show exactly when LOGNORM.DIST’s support changed — not documentation claims, real results.
| LibreOffice version | Verdict | Tested |
|---|---|---|
| 24.2.0.3 | Quirk found | 2026-08-31 |
| 24.8.7.2 | Quirk found | 2026-08-31 |
| 25.2.0.3 | Quirk found | 2026-08-31 |
| 25.8.7.3 | Quirk found | 2026-08-31 |
Why isn't LOGNORM.DIST working in LibreOffice?
LOGNORM.DIST exists in LibreOffice 25.8.7.3, but it is not a drop-in match for
Excel — our executed tests found real behavioral differences (detailed in the test results on this
page). If a formula that works in Excel or Google Sheets misbehaves in LibreOffice, compare your usage
against the failing cases above before assuming your data is wrong.
Discovered quirks
-
=LOGNORM.DIST(0,A3,A4,TRUE) on
LibreOffice Calc returned
0, but the documented/expected
result is #NUM!.
Provenance
Excel documents: "If x <= 0 or if standard_dev <= 0, LOGNORM.DIST returns the #NUM! error value." The exclusion is not cosmetic -- ln(x) is undefined at and below zero, so there is no value to return. Zero is the boundary the <= sign includes.; MISMATCH vs expected: expected '#NUM!', got 0
-
=LOGNORM.DIST(-1,A3,A4,TRUE) on
LibreOffice Calc returned
0, but the documented/expected
result is #NUM!.
Provenance
The same documented sentence, asserted a second time strictly inside the excluded range rather than on its boundary. An engine that guards only the exact value 0 -- or that guards nothing and lets the underlying maths return something -- is distinguished from a conforming one here.; MISMATCH vs expected: expected '#NUM!', got 0
-
=LOGNORM.DIST(A2,A3,0,TRUE) on
LibreOffice Calc returned
#VALUE!, but the documented/expected
result is #NUM!.
Provenance
Excel documents: "If x <= 0 or if standard_dev <= 0, LOGNORM.DIST returns the #NUM! error value." Zero standard deviation is also the denominator of the documented standardisation (ln(x)-mu)/sigma.; MISMATCH vs expected: expected '#NUM!', got '#VALUE!'
Executed test cases
Excel for the web (executed 2026-09-01 via OneDrive recalculation)
These values come from Excel for the web, not from desktop Excel. They are two different implementations of the calculation engine, and this run measured only the web one: the corpus was uploaded to OneDrive as .xlsx, recalculated by Excel for the web on open, and downloaded again for readback. Excel for the web is a rolling service with no pinnable version, so the run is identified by its date. Where a value here disagrees with the Expected column — which is Microsoft’s documentation of the desktop product — we cannot tell you whether the web engine diverges from the desktop one or the documentation is wrong about both, because we do not run desktop Excel.
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =ROUND(LOGNORM.DIST(A2,A3,A4,TRUE),7) | Microsoft's first documented worked example: the cumulative lognormal distribution at 4 | 0.0390836 | 0.0390836ProvenanceMicrosoft publishes '=LOGNORM.DIST(A2,A3,A4,TRUE)' with the result 0.0390836. DERIVATION, along a different path from the published figure. The lognormal CDF is documented on the LOGNORM.DIST page as NORM.S.DIST((ln(x)-mu)/sigma), so with x = 4, mu = 3.5 and sigma = 1.2 the standardised argument is z = (ln 4 - 3.5)/1.2 = (1.3862943611198906188 - 3.5)/1.2 = -1.7614213657334244843. This corpus does not call any statistics library's normal CDF: it evaluates Phi(z) = erfc(-z/sqrt(2))/2 with mpmath at 50 digits, giving 0.039083555706800473296. The density is computed from its own closed form, exp(-(ln x - mu)^2/(2 sigma^2)) / (x sigma sqrt(2 pi)) = 0.017617596681819223728. The inverse is obtained by ROOT-FINDING on that same erfc-based CDF rather than by any inverse-normal routine: solving Phi(z) = 0.039084 gives z = -1.7613003288..., and exp(mu + sigma z) = 4.0000252186806350759 -- note the probability Microsoft feeds back in, 0.039084, is its own published CDF figure ROUNDED to six places, which is exactly why the inverse lands on 4.0000252 rather than on 4. Rounded to the seven decimal places Microsoft prints, 0.039083555706800473 is 0.0390836. ROUND is applied in the sheet so the comparison is against the published decimal rather than against one engine's last floating-point bit. |
Matched |
| =ROUND(LOGNORM.DIST(A2,A3,A4,TRUE),10) | The same cumulative value carried to ten decimal places | 0.0390835557 | 0.0390835557ProvenanceThe published figure is only given to seven places, which cannot distinguish an engine that is right from one that is right to six. Derived independently to 50 digits as 0.039083555706800473296 (see the derivation on the previous case), which is 0.0390835557 at ten places. This is the assertion that actually constrains the implementation. |
Matched |
| =ROUND(LOGNORM.DIST(A2,A3,A4,FALSE),7) | Microsoft's second documented worked example: the probability density at 4 | 0.0176176 | 0.0176176ProvenanceMicrosoft publishes '=LOGNORM.DIST(A2,A3,A4,FALSE)' with the result 0.0176176. The cumulative argument is documented as "A logical value that determines the form of the function. If cumulative is TRUE, LOGNORM.DIST returns the cumulative distribution function; if FALSE, it returns the probability density function." Derived from the closed-form density rather than by differencing the CDF: exp(-(ln 4 - 3.5)^2/(2 x 1.44)) / (4 x 1.2 x sqrt(2 pi)) = 0.017617596681819223728, which is 0.0176176 at seven places. |
Matched |
| =ROUND(LOGNORM.DIST(A2,A3,A4,FALSE),10) | The same density carried to ten decimal places | 0.0176175967 | 0.0176175967Provenance0.017617596681819223728 at ten places, derived as on the previous case. Together with the ten-place cumulative assertion this pins both branches of the cumulative argument at a precision the published figures cannot. |
Matched |
| =LOGNORM.DIST(0,A3,A4,TRUE) | An x of zero, which the page excludes | #NUM! | #NUM!ProvenanceExcel documents: "If x <= 0 or if standard_dev <= 0, LOGNORM.DIST returns the #NUM! error value." The exclusion is not cosmetic -- ln(x) is undefined at and below zero, so there is no value to return. Zero is the boundary the <= sign includes. EXECUTED RESULT -- A SILENT WRONG ANSWER: all four LibreOffice builds return the NUMBER 0 here instead of the documented #NUM!. Zero is a perfectly plausible value for a cumulative distribution, so a column of non-positive inputs comes back as a column of zeros rather than a visible column of errors -- the same shape batch C found in EXPON.DIST and batch D in GAMMADIST. Both spellings, the legacy LOGNORMDIST and the modern LOGNORM.DIST, do it, so unlike batch D's GAMMADIST/GAMMA.DIST split there is no correct sibling to fall back on. |
Matched |
| =LOGNORM.DIST(-1,A3,A4,TRUE) | A negative x, well inside the excluded region | #NUM! | #NUM!ProvenanceThe same documented sentence, asserted a second time strictly inside the excluded range rather than on its boundary. An engine that guards only the exact value 0 -- or that guards nothing and lets the underlying maths return something -- is distinguished from a conforming one here. EXECUTED RESULT: 0 on all four builds, the same silent zero as at x = 0 -- so the guard is not merely mis-set at the boundary, it is absent. ln(x) does not exist here at all. |
Matched |
| =LOGNORM.DIST(A2,A3,0,TRUE) | A standard deviation of zero, the other half of the same documented exclusion | #NUM! | #NUM!ProvenanceExcel documents: "If x <= 0 or if standard_dev <= 0, LOGNORM.DIST returns the #NUM! error value." Zero standard deviation is also the denominator of the documented standardisation (ln(x)-mu)/sigma. |
Matched |
| =LOGNORM.DIST("x",A3,A4,TRUE) | A non-numeric argument, which the page gives a DIFFERENT error code | #VALUE! | #VALUE!ProvenanceExcel documents: "If any argument is nonnumeric, LOGNORM.DIST returns the #VALUE! error value." Asserted alongside the #NUM! cases because the page deliberately distinguishes the two: a malformed argument is #VALUE!, an out-of-range one is #NUM!. |
Matched |
Google Sheets (executed 2026-08-31 via Drive import)
Google Sheets is a rolling service with no pinnable version, so this run is identified by its date. The corpus was imported to Drive as .xlsx, recalculated by Sheets, and exported back for readback.
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =ROUND(LOGNORM.DIST(A2,A3,A4,TRUE),7) | Microsoft's first documented worked example: the cumulative lognormal distribution at 4 | 0.0390836 | 0.0390836ProvenanceMicrosoft publishes '=LOGNORM.DIST(A2,A3,A4,TRUE)' with the result 0.0390836. DERIVATION, along a different path from the published figure. The lognormal CDF is documented on the LOGNORM.DIST page as NORM.S.DIST((ln(x)-mu)/sigma), so with x = 4, mu = 3.5 and sigma = 1.2 the standardised argument is z = (ln 4 - 3.5)/1.2 = (1.3862943611198906188 - 3.5)/1.2 = -1.7614213657334244843. This corpus does not call any statistics library's normal CDF: it evaluates Phi(z) = erfc(-z/sqrt(2))/2 with mpmath at 50 digits, giving 0.039083555706800473296. The density is computed from its own closed form, exp(-(ln x - mu)^2/(2 sigma^2)) / (x sigma sqrt(2 pi)) = 0.017617596681819223728. The inverse is obtained by ROOT-FINDING on that same erfc-based CDF rather than by any inverse-normal routine: solving Phi(z) = 0.039084 gives z = -1.7613003288..., and exp(mu + sigma z) = 4.0000252186806350759 -- note the probability Microsoft feeds back in, 0.039084, is its own published CDF figure ROUNDED to six places, which is exactly why the inverse lands on 4.0000252 rather than on 4. Rounded to the seven decimal places Microsoft prints, 0.039083555706800473 is 0.0390836. ROUND is applied in the sheet so the comparison is against the published decimal rather than against one engine's last floating-point bit. |
Matched |
| =ROUND(LOGNORM.DIST(A2,A3,A4,TRUE),10) | The same cumulative value carried to ten decimal places | 0.0390835557 | 0.0390835557ProvenanceThe published figure is only given to seven places, which cannot distinguish an engine that is right from one that is right to six. Derived independently to 50 digits as 0.039083555706800473296 (see the derivation on the previous case), which is 0.0390835557 at ten places. This is the assertion that actually constrains the implementation. |
Matched |
| =ROUND(LOGNORM.DIST(A2,A3,A4,FALSE),7) | Microsoft's second documented worked example: the probability density at 4 | 0.0176176 | 0.0176176ProvenanceMicrosoft publishes '=LOGNORM.DIST(A2,A3,A4,FALSE)' with the result 0.0176176. The cumulative argument is documented as "A logical value that determines the form of the function. If cumulative is TRUE, LOGNORM.DIST returns the cumulative distribution function; if FALSE, it returns the probability density function." Derived from the closed-form density rather than by differencing the CDF: exp(-(ln 4 - 3.5)^2/(2 x 1.44)) / (4 x 1.2 x sqrt(2 pi)) = 0.017617596681819223728, which is 0.0176176 at seven places. |
Matched |
| =ROUND(LOGNORM.DIST(A2,A3,A4,FALSE),10) | The same density carried to ten decimal places | 0.0176175967 | 0.0176175967Provenance0.017617596681819223728 at ten places, derived as on the previous case. Together with the ten-place cumulative assertion this pins both branches of the cumulative argument at a precision the published figures cannot. |
Matched |
| =LOGNORM.DIST(0,A3,A4,TRUE) | An x of zero, which the page excludes | #NUM! | #NUM!ProvenanceExcel documents: "If x <= 0 or if standard_dev <= 0, LOGNORM.DIST returns the #NUM! error value." The exclusion is not cosmetic -- ln(x) is undefined at and below zero, so there is no value to return. Zero is the boundary the <= sign includes. EXECUTED RESULT -- A SILENT WRONG ANSWER: all four LibreOffice builds return the NUMBER 0 here instead of the documented #NUM!. Zero is a perfectly plausible value for a cumulative distribution, so a column of non-positive inputs comes back as a column of zeros rather than a visible column of errors -- the same shape batch C found in EXPON.DIST and batch D in GAMMADIST. Both spellings, the legacy LOGNORMDIST and the modern LOGNORM.DIST, do it, so unlike batch D's GAMMADIST/GAMMA.DIST split there is no correct sibling to fall back on. |
Matched |
| =LOGNORM.DIST(-1,A3,A4,TRUE) | A negative x, well inside the excluded region | #NUM! | #NUM!ProvenanceThe same documented sentence, asserted a second time strictly inside the excluded range rather than on its boundary. An engine that guards only the exact value 0 -- or that guards nothing and lets the underlying maths return something -- is distinguished from a conforming one here. EXECUTED RESULT: 0 on all four builds, the same silent zero as at x = 0 -- so the guard is not merely mis-set at the boundary, it is absent. ln(x) does not exist here at all. |
Matched |
| =LOGNORM.DIST(A2,A3,0,TRUE) | A standard deviation of zero, the other half of the same documented exclusion | #NUM! | #NUM!ProvenanceExcel documents: "If x <= 0 or if standard_dev <= 0, LOGNORM.DIST returns the #NUM! error value." Zero standard deviation is also the denominator of the documented standardisation (ln(x)-mu)/sigma. |
Matched |
| =LOGNORM.DIST("x",A3,A4,TRUE) | A non-numeric argument, which the page gives a DIFFERENT error code | #VALUE! | #VALUE!ProvenanceExcel documents: "If any argument is nonnumeric, LOGNORM.DIST returns the #VALUE! error value." Asserted alongside the #NUM! cases because the page deliberately distinguishes the two: a malformed argument is #VALUE!, an out-of-range one is #NUM!. |
Matched |
LibreOffice Calc 25.8.7.3 (tested 2026-08-31)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =ROUND(LOGNORM.DIST(A2,A3,A4,TRUE),7) | Microsoft's first documented worked example: the cumulative lognormal distribution at 4 | 0.0390836 | 0.0390836ProvenanceMicrosoft publishes '=LOGNORM.DIST(A2,A3,A4,TRUE)' with the result 0.0390836. DERIVATION, along a different path from the published figure. The lognormal CDF is documented on the LOGNORM.DIST page as NORM.S.DIST((ln(x)-mu)/sigma), so with x = 4, mu = 3.5 and sigma = 1.2 the standardised argument is z = (ln 4 - 3.5)/1.2 = (1.3862943611198906188 - 3.5)/1.2 = -1.7614213657334244843. This corpus does not call any statistics library's normal CDF: it evaluates Phi(z) = erfc(-z/sqrt(2))/2 with mpmath at 50 digits, giving 0.039083555706800473296. The density is computed from its own closed form, exp(-(ln x - mu)^2/(2 sigma^2)) / (x sigma sqrt(2 pi)) = 0.017617596681819223728. The inverse is obtained by ROOT-FINDING on that same erfc-based CDF rather than by any inverse-normal routine: solving Phi(z) = 0.039084 gives z = -1.7613003288..., and exp(mu + sigma z) = 4.0000252186806350759 -- note the probability Microsoft feeds back in, 0.039084, is its own published CDF figure ROUNDED to six places, which is exactly why the inverse lands on 4.0000252 rather than on 4. Rounded to the seven decimal places Microsoft prints, 0.039083555706800473 is 0.0390836. ROUND is applied in the sheet so the comparison is against the published decimal rather than against one engine's last floating-point bit. |
Matched |
| =ROUND(LOGNORM.DIST(A2,A3,A4,TRUE),10) | The same cumulative value carried to ten decimal places | 0.0390835557 | 0.0390835557ProvenanceThe published figure is only given to seven places, which cannot distinguish an engine that is right from one that is right to six. Derived independently to 50 digits as 0.039083555706800473296 (see the derivation on the previous case), which is 0.0390835557 at ten places. This is the assertion that actually constrains the implementation. |
Matched |
| =ROUND(LOGNORM.DIST(A2,A3,A4,FALSE),7) | Microsoft's second documented worked example: the probability density at 4 | 0.0176176 | 0.0176176ProvenanceMicrosoft publishes '=LOGNORM.DIST(A2,A3,A4,FALSE)' with the result 0.0176176. The cumulative argument is documented as "A logical value that determines the form of the function. If cumulative is TRUE, LOGNORM.DIST returns the cumulative distribution function; if FALSE, it returns the probability density function." Derived from the closed-form density rather than by differencing the CDF: exp(-(ln 4 - 3.5)^2/(2 x 1.44)) / (4 x 1.2 x sqrt(2 pi)) = 0.017617596681819223728, which is 0.0176176 at seven places. |
Matched |
| =ROUND(LOGNORM.DIST(A2,A3,A4,FALSE),10) | The same density carried to ten decimal places | 0.0176175967 | 0.0176175967Provenance0.017617596681819223728 at ten places, derived as on the previous case. Together with the ten-place cumulative assertion this pins both branches of the cumulative argument at a precision the published figures cannot. |
Matched |
| =LOGNORM.DIST(0,A3,A4,TRUE) | An x of zero, which the page excludes | 0 | #NUM!ProvenanceExcel documents: "If x <= 0 or if standard_dev <= 0, LOGNORM.DIST returns the #NUM! error value." The exclusion is not cosmetic -- ln(x) is undefined at and below zero, so there is no value to return. Zero is the boundary the <= sign includes. EXECUTED RESULT -- A SILENT WRONG ANSWER: all four LibreOffice builds return the NUMBER 0 here instead of the documented #NUM!. Zero is a perfectly plausible value for a cumulative distribution, so a column of non-positive inputs comes back as a column of zeros rather than a visible column of errors -- the same shape batch C found in EXPON.DIST and batch D in GAMMADIST. Both spellings, the legacy LOGNORMDIST and the modern LOGNORM.DIST, do it, so unlike batch D's GAMMADIST/GAMMA.DIST split there is no correct sibling to fall back on. |
Mismatch |
| =LOGNORM.DIST(-1,A3,A4,TRUE) | A negative x, well inside the excluded region | 0 | #NUM!ProvenanceThe same documented sentence, asserted a second time strictly inside the excluded range rather than on its boundary. An engine that guards only the exact value 0 -- or that guards nothing and lets the underlying maths return something -- is distinguished from a conforming one here. EXECUTED RESULT: 0 on all four builds, the same silent zero as at x = 0 -- so the guard is not merely mis-set at the boundary, it is absent. ln(x) does not exist here at all. |
Mismatch |
| =LOGNORM.DIST(A2,A3,0,TRUE) | A standard deviation of zero, the other half of the same documented exclusion | #VALUE! | #NUM!ProvenanceExcel documents: "If x <= 0 or if standard_dev <= 0, LOGNORM.DIST returns the #NUM! error value." Zero standard deviation is also the denominator of the documented standardisation (ln(x)-mu)/sigma. |
Mismatch |
| =LOGNORM.DIST("x",A3,A4,TRUE) | A non-numeric argument, which the page gives a DIFFERENT error code | #VALUE! | #VALUE!ProvenanceExcel documents: "If any argument is nonnumeric, LOGNORM.DIST returns the #VALUE! error value." Asserted alongside the #NUM! cases because the page deliberately distinguishes the two: a malformed argument is #VALUE!, an out-of-range one is #NUM!. |
Matched |
Docs & syntax
- Excel (desktop): official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation