GAMMAINV function
GAMMAINV returns the value at which the gamma distribution reaches a given probability, which is useful for finding percentile cut-offs. It still works, but GAMMA.INV supersedes it for new workbooks.
Example
Read it as a sentence: find the gamma distribution value for a probability taken from D1 (which is empty, so counted as 0) with shape 1 and scale 2.
Excel shows 0
D
1
Data
Syntax
GAMMAINV(probability, alpha, beta)
-
probability(required) - Cumulative probability.
-
alpha(required) - Shape parameter.
-
beta(required) - Scale parameter.
Returns: The x value at which the gamma distribution reaches the given probability.
What Excel actually returns
Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.
| Formula | Excel shows | Case |
|---|---|---|
=GAMMAINV(0.5,1,2) | 1.386294361 | Working example |
=GAMMAINV("0.5",1,2) | 1.386294361 | Text-number in first arg |
=GAMMAINV({0.5,0.5},1,2) | 1.386294361 | Array in first arg (lifts, spills) |
=GAMMAINV(0,1,2) | 0 | Probability 0 |
=GAMMAINV(Data!D1,1,2) | 0 | Blank cell as first arg |
=GAMMAINV("abc",1,2) | #VALUE! | Non-numeric text in first arg |
=GAMMAINV(NA(),1,2) | #N/A | Error in first arg |
=GAMMAINV(1,1,2) | #NUM! | Probability 1 |
The Data sheet these formulas read
A cell that starts with = holds that formula.
D
1
Data
Watch out for
- Superseded by GAMMA.INV; use that in new workbooks.
- Iterative, so odd parameter combinations may return #N/A.
Where it works
- Excel
- GAMMAINV is in every version of Excel from 2007 on. Compatibility function: still works in every version, but newer replacements exist.
- Google Sheets
- Same name, same behaviour for everyday use.
Part of Compatibility functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .