{
  "category": "Compatibility",
  "display_name": "LOGINV",
  "entry_kind": "built_in_function",
  "eval_api": {
    "method": "POST",
    "url": "https://handbook.dnacalc.com/api/eval"
  },
  "function_id": "FUNC.LOGINV",
  "implementation_state": {
    "answer_bank": null,
    "detail": "Everything else matches (5 workbook cells). Last-bit means a finite number within 16 ULP of Excel's.",
    "dnacalc_commit": "9e1884369a678158dd82d3d74188daf986995e87",
    "in_catalogue": true,
    "state": "close",
    "state_label": "Close: last-bit deviations remain",
    "summary": "Close: 2 of 5 recorded answers differ in the last bits, worst 2 ULP",
    "workbook_corpus": {
      "cells": 5,
      "last_bit": 2,
      "matched": 3,
      "worst_ulp": 2
    }
  },
  "implementations": [
    {
      "commit": "9e1884369a678158dd82d3d74188daf986995e87",
      "flavour": "excel-compatibility-candidate",
      "language": "Rust",
      "name": "CalcFunc",
      "own_code": [
        "https://github.com/DnaCalc/DnaCalc/blob/9e1884369a678158dd82d3d74188daf986995e87/crates/calc-func/src/catalogue/distributions.rs#L93-L96"
      ],
      "repository": "https://github.com/DnaCalc/DnaCalc",
      "shared_code": [
        "catalogue/distributions::nums",
        "ported/excel_numeric::binary_with",
        "ported/excel_numeric::excel_x87_mul",
        "ported/excel_numeric/x87::mul",
        "ported/normal_dist_common::phi_kernel",
        "ported/normal_log_family::validate_positive_sigma",
        "ported/normal_log_family::validate_probability_open_unit",
        "ported/normal_log_family::inverse_standard_normal_acklam_refined",
        "ported/normal_log_family::inverse_standard_normal",
        "ported/normal_log_family::lognorm_inv_kernel"
      ],
      "source": "https://github.com/DnaCalc/DnaCalc/blob/9e1884369a678158dd82d3d74188daf986995e87/crates/calc-func/src/catalogue/distributions.rs#L93-L96",
      "state": "close",
      "suite": null,
      "summary": "Close: 2 of 5 recorded answers differ in the last bits, worst 2 ULP"
    }
  ],
  "json_url": "https://handbook.dnacalc.com/api/functions/FUNC.LOGINV.json",
  "name": "LOGINV",
  "notes": [],
  "schema": "efh.function-reference/v1",
  "section_order": [
    "what-it-does",
    "try-it",
    "quirks",
    "how-to-implement",
    "version-differences",
    "alternatives"
  ],
  "sections": {
    "alternatives": "\n[LOGNORM.INV](FUNC.LOGNORM.INV.md) is the modern spelling. [NORM.DIST](FUNC.NORM.DIST.md) describes the normal variable in log space.\n\n\n",
    "how-to-implement": "\n1. Validate the open probability interval and positive finite log-space spread.\n2. Obtain a standard-normal quantile `z` at `p`. The current candidate uses Acklam’s piecewise rational approximation followed by one Newton correction; that generic inverse is not an identified Excel inverse program.\n3. Form `t=mean+standard_dev*z` with the current binary64 multiplication and addition order.\n4. Call the measured public EXP chain on the stored `t`. The current code explicitly uses `excel_exp` here, rather than an arbitrary host exponential.\n\nAt `p=0.5`, the symmetric standard quantile is zero, so the calculation reduces to `EXP(mean)`. This explains both examples without settling the inverse approximation away from the median. Tail quantiles, input coercion and publication still need their own controls; a direct lognormal inverse library can have different intermediate values.\n\n\n",
    "quirks": "\nThe probability must be strictly between zero and one. Either endpoint, an out-of-range probability or a nonpositive standard deviation gives `#NUM!`; nonnumeric arguments give `#VALUE!`. The location may be negative: that describes positive values below one rather than negative output values.\n\nExtreme quantiles can overflow after exponentiation, or become so small that worksheet publication matters. A normal quantile in log space can be representable even when its exponential is not. Do not treat that outer exponential as harmless formatting.\n\n\n",
    "sources": "\n- [Microsoft: LOGINV function](https://support.microsoft.com/en-us/excel/functions/loginv-function), opened 6 November 2026; syntax, documented argument rules and errors.\n- [DnaCalc implementation](https://github.com/DnaCalc/DnaCalc/blob/da3ecc4fb19a3a5529708c311d0e8f05688ac165/crates/calc-func/src/ported/normal_log_family.rs); implementation steps and the limits identified in the text.\n\n",
    "try-it": "\n`=LOGINV(0.5,0,1)` returns `1`. Probability one half selects the median; the log-space median is zero and exponentiating it gives one.\n\n`=LOGINV(0.5,1,0.5)` is about `2.718281828459045`, the exponential of the log-space location one. Changing the positive spread does not move the mathematical median, although it changes other quantiles.\n\n\n",
    "version-differences": "\nNo same-input comparison between named Excel builds is recorded for this function here. The documented behaviour below is not a measurement of every Excel release.\n\n\n",
    "what-it-does": "\n`LOGINV(probability,mean,standard_dev)` returns the value `x` at a specified cumulative lognormal probability. The parameters describe **ln(X)**: `mean` is the location in log space and `standard_dev` its positive spread. They are not the arithmetic mean and standard deviation of the positive output variable. This is the compatibility spelling of LOGNORM.INV.\n\n\n"
  },
  "signature": {
    "display": "LOGINV(probability, mean, standard_dev)",
    "parameters": [
      {
        "description": null,
        "name": "probability",
        "optional": false,
        "repeats": false
      },
      {
        "description": null,
        "name": "mean",
        "optional": false,
        "repeats": false
      },
      {
        "description": null,
        "name": "standard_dev",
        "optional": false,
        "repeats": false
      }
    ],
    "trailing_repeats": false
  },
  "sources": {
    "metadata": {
      "admission": {
        "label": "implemented",
        "reason": null
      },
      "arity": {
        "max": 3,
        "min": 3
      },
      "category": "Compatibility",
      "classification": {
        "arg_preparation_profile": "RefsVisibleInAdapter",
        "coercion_lift_profile": "Custom",
        "determinism_class": "Deterministic",
        "error_collapse_profile": "None",
        "fec_dependency_profile": "RefOnly",
        "host_interaction_class": "None",
        "kernel_signature_class": "Custom",
        "rich_value_usage": "RichBlind",
        "surface_fec_dependency_profile": "RefOnly",
        "thread_safety_class": "SafePure",
        "volatility_class": "NonVolatile"
      },
      "descriptions": {
        "long": null,
        "short": "Inverse of the cumulative lognormal distribution (older form)",
        "short_source": "dna-calc-own"
      },
      "docs": {
        "english_description": "Returns the inverse of the lognormal cumulative distribution function",
        "microsoft_url": "https://support.microsoft.com/en-us/office/loginv-function-0bd7631a-2725-482b-afb4-de23df77acfe"
      },
      "entry_kind": "built_in_function",
      "localized_family_names": null,
      "localized_names": [
        {
          "locale": "ar-SA",
          "name": "LOGINV"
        },
        {
          "locale": "bg-BG",
          "name": "LOGINV"
        },
        {
          "locale": "cs-CZ",
          "name": "LOGINV"
        },
        {
          "locale": "da-DK",
          "name": "LOGINV"
        },
        {
          "locale": "de-DE",
          "name": "LOGINV"
        },
        {
          "locale": "el-GR",
          "name": "LOGINV"
        },
        {
          "locale": "en-AU",
          "name": "LOGINV"
        },
        {
          "locale": "en-GB",
          "name": "LOGINV"
        },
        {
          "locale": "en-US",
          "name": "LOGINV"
        },
        {
          "locale": "es-ES",
          "name": "DISTR.LOG.INV"
        },
        {
          "locale": "et-EE",
          "name": "LOGINV"
        },
        {
          "locale": "fi-FI",
          "name": "LOGNORM.JAKAUMA.KÄÄNT"
        },
        {
          "locale": "fr-FR",
          "name": "LOI.LOGNORMALE.INVERSE*"
        },
        {
          "locale": "he-IL",
          "name": "LOGINV"
        },
        {
          "locale": "hr-HR",
          "name": "LOGINV"
        },
        {
          "locale": "hu-HU",
          "name": "INVERZ.LOG.ELOSZLÁS"
        },
        {
          "locale": "id-ID",
          "name": "LOGINV"
        },
        {
          "locale": "it-IT",
          "name": "LOGINV"
        },
        {
          "locale": "ja-JP",
          "name": "LOGINV"
        },
        {
          "locale": "ko-KR",
          "name": "LOGINV"
        },
        {
          "locale": "lt-LT",
          "name": "LOGINV"
        },
        {
          "locale": "lv-LV",
          "name": "LOGINV"
        },
        {
          "locale": "nb-NO",
          "name": "LOGINV"
        },
        {
          "locale": "nl-NL",
          "name": "LOG.NORM.INV"
        },
        {
          "locale": "pl-PL",
          "name": "ROZKŁAD.LOG.ODW"
        },
        {
          "locale": "pt-BR",
          "name": "LOGINV"
        },
        {
          "locale": "pt-PT",
          "name": "INVLOG"
        },
        {
          "locale": "ro-RO",
          "name": "LOGINV"
        },
        {
          "locale": "ru-RU",
          "name": "ЛОГНОРМОБР"
        },
        {
          "locale": "sk-SK",
          "name": "LOGINV"
        },
        {
          "locale": "sl-SI",
          "name": "LOGINV"
        },
        {
          "locale": "sr-Latn-RS",
          "name": "LOGINV"
        },
        {
          "locale": "sv-SE",
          "name": "LOGINV"
        },
        {
          "locale": "th-TH",
          "name": "LOGINV"
        },
        {
          "locale": "tr-TR",
          "name": "LOGTERS işlevi"
        },
        {
          "locale": "uk-UA",
          "name": "LOGINV"
        },
        {
          "locale": "vi-VN",
          "name": "LOGINV"
        },
        {
          "locale": "zh-CN",
          "name": "LOGINV"
        },
        {
          "locale": "zh-HK",
          "name": "LOGINV"
        },
        {
          "locale": "zh-TW",
          "name": "LOGINV"
        }
      ],
      "signature": {
        "display": "LOGINV(probability, mean, standard_dev)",
        "parameters": [
          {
            "description": null,
            "name": "probability",
            "optional": false,
            "repeats": false
          },
          {
            "description": null,
            "name": "mean",
            "optional": false,
            "repeats": false
          },
          {
            "description": null,
            "name": "standard_dev",
            "optional": false,
            "repeats": false
          }
        ],
        "trailing_repeats": false
      },
      "surface_name": "LOGINV",
      "version_marker": null,
      "xlcall": {
        "code": "291",
        "symbol": "xlfLoginv"
      }
    },
    "microsoft": "https://support.microsoft.com/en-us/office/loginv-function-0bd7631a-2725-482b-afb4-de23df77acfe"
  },
  "try_it": {
    "formula": "=LOGINV(0.5,0,1)"
  },
  "url": "https://handbook.dnacalc.com/functions/LOGINV.html",
  "variants": [],
  "versions": []
}