PERCENTOF Function in Excel: Share of the Total

⏱ 1 min readUpdated 28 September 2026

MathLevel: IntermediateAvailable in: Excel 365 / 2021+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Related functions

PERCENTOF returns a subset’s share of a total — mostly used inside GROUPBY and PIVOTBY to show % of total.

Syntax

=PERCENTOF(data_subset, data_all)
Argument What it means
data_all The full set.

Examples

Example 1

=GROUPBY(B2:B500, E2:E500, PERCENTOF)

Each region as % of total sales.

GROUPBY · SUM

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong