GAMMA.INV function
Returns the value x at which the gamma cumulative distribution reaches a given probability, the inverse of GAMMA.DIST.
Available in Excel 2010 and later, Microsoft 365, Excel for the web, Excel for Mac 2011 and later
Excel 2010 and laterWorks in Google Sheets
Syntax
GAMMA.INV(probability, alpha, beta)| Argument | What it means | |
|---|---|---|
probability | Required | The cumulative probability, from 0 to 1 (exclusive of 1). |
alpha | Required | The shape parameter, greater than 0. |
beta | Required | The scale parameter, greater than 0. |
Returns: The value x such that GAMMA.DIST(x, alpha, beta, TRUE) equals probability.
How GAMMA.INV works
GAMMA.INV turns a probability back into a value. If GAMMA.DIST answers "what share of repairs take less than 4 hours?", GAMMA.INV answers the reverse: "how many hours do 90% of repairs fit into?". That makes it the tool for setting limits, reserves and service-level targets on skewed data, for example a claims reserve that covers 95% of cases or a delivery promise that holds 9 times out of 10.
Excel finds the answer by searching (iterating) until the gamma CDF matches the probability you asked for, so the result is accurate to many digits. A probability of 0.5 gives the median, which for a gamma distribution is always a little below the mean because of the long right tail.
Examples
1Claim size that covers 90% of claims
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Parameter | Value | ||
| 2 | Probability | 0.9 | 1944.86 | |
| 3 | alpha | 2 | ||
| 4 | beta | 500 |
Result: 1944.86
90% of claims are at or below 1944.8601, shown to 2 decimals. An insurer could use this as the limit above which a claim goes to manual review.
2Median repair time
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Parameter | Value | ||
| 2 | Probability | 0.5 | 5.35 | |
| 3 | alpha | 3 | ||
| 4 | beta | 2 |
Result: 5.35
Half of all repairs finish within 5.3481 hours (shown to 2 decimals), below the mean of 6 hours because a few very long jobs pull the average up.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | probability is below 0 or at least 1, or alpha/beta is 0 or less. | Use a probability strictly between 0 and 1 and positive parameters. |
#VALUE! | An argument is text. | Check the input cells. |
Tips
- Check the result by feeding it back:
=GAMMA.DIST(GAMMA.INV(p,α,β),α,β,TRUE)returns p. - GAMMAINV (no dot) is the older compatibility name with identical arguments.
Google Sheets
GAMMA.INV also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
GAMMA.INV 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.
| Language | Function name |
|---|---|
| Dutch | GAMMA.INV.N |
| Finnish | GAMMA.JAKAUMA.KÄÄNT |
| French | LOI.GAMMA.INVERSE.N |
| Hungarian | GAMMA.INVERZ |
| Italian | INV.GAMMA.N |
| Polish | ROZKŁ.GAMMA.ODWR |
| Portuguese (Brazil) | INV.GAMA |
| Portuguese (Portugal) | INV.GAMA |
| Russian | ГАММА.ОБР |
| Spanish | INV.GAMMA |
| Turkish | GAMA.TERS |