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
| Argument | Required? | What it does |
|---|---|---|
| data_subset | Yes | The values in the group. |
| data_all | Yes | All 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)
| A | B | C | |
|---|---|---|---|
| 1 | Rep | Sales | West share |
| 2 | Ana (West) | 620 | 0.5091 |
| 3 | Cara (West) | 500 | |
| 4 | Ben (East) | 480 | |
| 5 | Dev (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

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.