PERCENTOF Function

Excel Functions › Math & Trig

Excel 2024+ Math & Trig

The Excel PERCENTOF function returns what fraction one set of numbers is of a larger set — it divides the sum of a subset by the sum of a total, giving a ready-made share or percentage.


Quick answer:
=PERCENTOF(B2:B4, B2:B10) share of the total = 0.35 (35%)

Syntax

=PERCENTOF(data_subset, data_all)
ArgumentDescription
data_subsetRequiredThe range or values whose share you want (the numerator). Its sum is divided by the total.
data_allRequiredThe full range or values that make up the whole (the denominator).

How to use it

PERCENTOF is shorthand for SUM(subset)/SUM(all). It returns a decimal share that you format as a percentage.

=PERCENTOF(B2:B4, B2:B10) // e.g. 350 / 1000 = 0.35 = 35%

If the first three rows total 350 and the whole column B2:B10 totals 1000, PERCENTOF returns 0.35 — format the cell as a percentage to display 35%. It is the tidy way to answer “what portion of the total does this group represent?” without writing two SUMs.

New in Excel 2024. PERCENTOF was added in Excel 2024 and Microsoft 365. On older versions write it the long way: =SUM(B2:B4)/SUM(B2:B10).

Try it: interactive demo

Live demo

Pick a PERCENTOF example to see the formula and its result.

Result:

Practice workbook

📊
Download the free PERCENTOF practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

What does PERCENTOF actually calculate?
It divides the sum of the subset by the sum of the whole: SUM(data_subset)/SUM(data_all). The result is a decimal share — format it as a percentage to read it as, say, 35%.
How is PERCENTOF different from writing two SUMs?
It is mostly a convenience — =PERCENTOF(sub, all) is shorter and clearer than =SUM(sub)/SUM(all), but both give the same number.
Does the result come out as a percentage automatically?
PERCENTOF returns a decimal like 0.35. Apply the cell's Percentage format (or multiply by 100) to show it as 35%.
Which Excel versions have PERCENTOF?
PERCENTOF is new in Excel 2024 and Microsoft 365. On earlier versions use =SUM(subset)/SUM(all) instead.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: SUM · SUMPRODUCT · SUMIF · PERCENTILE · AVERAGE