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

argumentrequired
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.

AB
1 102
2 204
3 306
4 408
5 5010
fx =PERCENTOF(A1:A10, B1:B10) 5

errors

error values observed from the engine — each with a call that produces it.

errorproduced 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