PERCENTOF
share of a data subset within a whole · from excel · excel: verified match · no sheets equivalent
signature
PERCENTOF(data_subset, data_all)
returns: number
| argument | required |
|---|---|
| data_subset | required |
| data_all | required |
examples
formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.
| A | B | |
|---|---|---|
| 1 | 10 | 2 |
| 2 | 20 | 4 |
| 3 | 30 | 6 |
| 4 | 40 | 8 |
| 5 | 50 | 10 |
fx
=PERCENTOF(A1:A10, B1:B10) 5 errors
error values observed from the engine — each with a call that produces it.
| error | produced by |
|---|---|
| #DIV/0! | =PERCENTOF(5, 0) |
related
- AVEDEV average of absolute deviations from the mean
- AVERAGE.WEIGHTED average of values weighted by a second range
- AVERAGEA averages values including text and logicals
- AVERAGEIF averages cells that match a condition
- AVERAGEIFS averages cells matching multiple conditions
- BETA.DIST beta distribution