PERCENTOF Function

Returns what share of a total a subset makes up.

Category

Math & Trig

Available in

Microsoft 365

Returns

A number (a fraction of 1)

Want to practice PERCENTOF in a real spreadsheet? Open a blank sheet in our Practice Sandbox and try it with live data, with the AI Excel tutor beside you. No Excel needed — just a free account.Try it free in the Sandbox

Overview

PERCENTOF(subset, everything) adds up both and divides — the share one group contributes to the whole.

It was added for GROUPBY and PIVOTBY, where it shows each group as a percentage of the total, but works on its own too.

Syntax

=PERCENTOF(data_subset, data_all) Explain

Arguments

ArgumentRequired?What it does
data_subsetYesThe values in the group.
data_allYesAll the values.

Examples

Example 1 — West's share of sales

What share of total sales came from the first two (West) reps?

C2fx=PERCENTOF(B2:B3, B2:B5)
ABC
1RepSalesWest share
2Ana (West)6200.5091
3Cara (West)500
4Ben (East)480
5Dev (North)600
=PERCENTOF(B2:B3, B2:B5) Explain

Format as a percentage: 50.9%.

Example 2 — Inside GROUPBY

Each region's share of the total.

=GROUPBY(A2:A100, C2:C100, PERCENTOF) Explain

Common mistakes

  • Not available everywhere. Older versions show #NAME?. =SUM(B2:B3)/SUM(B2:B5) works in every version.

Notes

Kyle Stott

Author

Kyle Stott

Certified Microsoft Excel Expert

Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.