Compatibility function

GAMMAINV function

Returns the value at which the cumulative gamma distribution reaches a given probability. Replaced by GAMMA.INV.

Available in All versions of Excel, including Microsoft 365 and Excel for the web (kept for compatibility)

In every Excel versionWorks in Google Sheets

Older function. GAMMAINV still works, but for new workbooks use GAMMA.INV.

Syntax

GAMMAINV(probability, alpha, beta)
ArgumentWhat it means
probabilityRequiredA probability between 0 and 1.
alphaRequiredShape parameter, > 0.
betaRequiredScale parameter, > 0.

Returns: The value x where the gamma cumulative probability equals probability.

How GAMMAINV works

GAMMAINV is the inverse of GAMMADIST with cumulative TRUE. It is how you set a planning figure from a gamma model: "how many hours should we allow so that three repairs are done in 95% of cases?" or "what claim size is exceeded only 1% of the time?".

Excel searches iteratively for the answer; if the search fails it returns #N/A. Beta is the scale (average per event), as in GAMMADIST.

Compatibility note: GAMMAINV is one of the older statistical functions that Excel 2010 moved to the Compatibility group. It still works in every version, but for new workbooks Microsoft recommends GAMMA.INV. Same arguments; rename to GAMMA.INV(probability, alpha, beta).

Examples

1Reverse a GAMMADIST result

D2fx=GAMMAINV(A2, B2, C2)
ABCD
1ProbabilityAlphaBeta
20.0680949210.0000

Result: 10.0000

The probability from the GAMMADIST example returns x ≈ 10 (formatted to 4 decimals).

2Time to allow for 95% of cases

D2fx=GAMMAINV(A2, B2, C2)
ABCD
1ConfidenceJobsAvg hours per job
20.953212.59

Result: 12.59

Three jobs averaging 2 hours each take 6 hours on average, but to be 95% sure they are finished you should allow 12.59 hours (formatted to 2 decimals).

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 13 KB

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!probability outside 0–1, or alpha or beta ≤ 0.Check the inputs.
#N/AThe iteration did not converge.Check for extreme inputs.

Tips

  • Check your answer: =GAMMADIST(result, alpha, beta, TRUE) should return the probability you started with.

Questions

Should I still use GAMMAINV?

Only if the workbook must open in Excel 2007 or earlier. Otherwise use GAMMA.INV, which gives the same result and makes the intent clearer to the next person who reads the formula.

Will GAMMAINV stop working?

There is no announced removal date. Microsoft keeps compatibility functions so old workbooks keep calculating, but they get no new features.

Google Sheets

GAMMAINV also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

GAMMAINV in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DutchGAMMA.INV
FinnishGAMMAJAKAUMA.KÄÄNT
FrenchLOI.GAMMA.INVERSE
HungarianINVERZ.GAMMA
ItalianINV.GAMMA
PolishROZKŁAD.GAMMA.ODW
Portuguese (Brazil)INVGAMA
Portuguese (Portugal)INVGAMA
RussianГАММАОБР
SpanishDISTR.GAMMA.INV
TurkishGAMATERS