To work out a percentage in Excel, divide the part by the total and format the result as a percentage: =A2/B2, then press Ctrl+Shift+%. For a percentage of a number, multiply: =A2*15%. For percentage change between two numbers, use =(new-old)/old, for example =(C2-B2)/B2.
| Task | Formula | Example | Result |
|---|---|---|---|
| What percent is A of B? | =A2/B2 |
42 of 50 | 84% |
| Percentage of a number | =A2*B2 |
15% of 240 | 36 |
| Percentage change | =(B2-A2)/A2 |
1,250 to 1,400 | 12% |
| Deduct a percentage | =A2*(1-B2) |
80 less 15% | 68 |
| Add a percentage | =A2*(1+B2) |
50 plus 20% | 60 |
| Percentage of a percentage | =A2*B2 |
40% of 25% | 10% |
| Percent error | =ABS(A2-B2)/B2 |
9.6 vs 9.81 | 2.14% |
How do I work out a percentage in Excel?
Divide the part by the whole, then apply the Percent Style format. Excel stores percentages as decimals, so 0.84 and 84% are the same value displayed differently.

| A (Region) | B (Sales) | C (Share of total) | |
|---|---|---|---|
| 2 | North | 12,000 | 30% |
| 3 | South | 18,000 | 45% |
| 4 | West | 10,000 | 25% |
| 5 | Total | 40,000 | 100% |
- In B5, enter
=SUM(B2:B4). - In C2, enter
=B2/$B$5. The dollar signs lock the total so it doesn't shift when you copy down. - Fill C2 down to C4.
- Select C2:C5 and click Home > Number > Percent Style, or press Ctrl+Shift+%. Use Increase Decimal for more precision.
Microsoft's calculate percentages page uses the same divide-and-format approach. To find the percentage of rows that meet a condition, divide a count by a count, for example =COUNTIF(D2:D200,"Paid")/COUNTA(D2:D200); our guide to COUNTIFS with multiple criteria covers more complex conditions.
How do I find a percentage of a number in Excel?
Multiply the number by the percentage. To find 15% of 240, enter =240*15% or, with 240 in A2 and 15% in B2, =A2*B2. Both return 36.
Typing the % sign is the safest way to enter a rate. If you type 15 into a cell and later apply Percent Style, Excel shows 1500%, because it multiplies the stored value by 100 for display. Either type 15% or 0.15. Our guide to basic maths formulas in Excel explains the other operators.
How do I calculate percentage increase between two numbers?
Subtract the old value from the new value and divide by the old value: =(new-old)/old. A positive result is an increase and a negative result is a decrease.

=(B2-A2)/A2
With 1,250 in A2 (January) and 1,400 in B2 (February), the result is 0.12, which displays as 12%. If February had been 1,100, the result would be −12%. An equivalent form is =B2/A2-1.
When the old value is zero, the formula returns #DIV/0!. Handle it with =IF(A2=0,"n/a",(B2-A2)/A2). If the old value can be negative, such as a loss turning into a profit, divide by its absolute value so the sign makes sense: =(B2-A2)/ABS(A2). Our guide to the ABS function explains why.
Keep percentage change separate from percentage points. A rate rising from 4% to 5% is a 1 percentage point rise (=B2-A2) but a 25% increase (=(B2-A2)/A2).
How do I deduct or add a percentage in Excel?
To deduct a percentage, multiply by 1 minus the rate: =A2*(1-B2). With a price of 80 in A2 and a 15% discount in B2, the result is 68. To add a percentage, such as 20% VAT, multiply by 1 plus the rate: =A2*(1+B2), which turns 50 into 60.

To reverse an added percentage, divide rather than subtract. A price of 60 including 20% VAT has a net price of =60/(1+20%), which is 50. Taking 20% off 60 would give 48, which is wrong. This is one of the most common percentage errors in invoices and price lists.
How do I calculate a percentage of a percentage?
Multiply the two percentages. If 40% of customers open an email and 25% of those click a link, the share of all customers who click is =40%*25%, which is 10%.
Don't add or subtract percentages that refer to different bases. A 10% price rise followed by a 10% cut doesn't bring you back to where you started: =100*(1+10%)*(1-10%) returns 99. To combine successive percentage changes, multiply the growth factors, then subtract 1: =(1+B2)*(1+C2)-1.
How do I calculate percent error in Excel?
Percent error compares a measured value with an accepted or true value: =ABS(measured-actual)/actual. With a measured value of 9.6 in A2 and an accepted value of 9.81 in B2:
=ABS(A2-B2)/B2
That returns 0.0214, or 2.14% when formatted as a percentage. ABS keeps the result positive whether the measurement was too high or too low. Remove ABS if you need to see the direction of the error. For mean absolute percentage error across many rows in Excel 2021, 2024 or Microsoft 365, use =AVERAGE(ABS(A2:A20-B2:B20)/B2:B20); in older versions enter it with Ctrl+Shift+Enter.
How do I find the average of percentages in Excel?
Only use AVERAGE on percentages when every percentage is based on the same size group. Otherwise, divide the total of the parts by the total of the wholes.
| Class | Passed | Students | Pass rate |
|---|---|---|---|
| A | 18 | 20 | 90% |
| B | 30 | 40 | 75% |
=AVERAGE(90%,75%) gives 82.5%, but the real overall pass rate is =SUM(B2:B3)/SUM(C2:C3), which is 48/60, or 80%. When you only have the rates and the group sizes, use a weighted average: =SUMPRODUCT(D2:D3,C2:C3)/SUM(C2:C3). Our guide to why an average of averages is wrong covers this in depth.
How do I calculate a percentile in Excel?
A percentile is different from a percentage: it tells you the value below which a given share of the data falls. Use =PERCENTILE.INC(range, k), where k is between 0 and 1. For the 90th percentile of test scores in B2:B101, enter =PERCENTILE.INC(B2:B101, 0.9). Microsoft's PERCENTILE.INC reference notes that k outside 0 to 1 returns #NUM!.
To go the other way and find where one score ranks, use =PERCENTRANK.INC(B2:B101, B2). All of these functions, and every percentage formula in this guide, work the same in Excel 2016, 2019, 2021, 2024 and Microsoft 365. Only the single-cell array version of the percent error formula needs a newer release; the Office 2024 editions handle it natively.
What we commonly see: a percentage column shows 0% for everything. The values are fine; the cells are formatted with zero decimal places and the results are tiny, or the formula divides by a total cell that hasn't been locked with dollar signs, so lower rows divide by blank cells. Check one cell's formula in the formula bar and add $ to the total reference.
Advanced nuance: a cell showing 12% may actually hold 0.123456. If you then multiply by that cell, Excel uses the full value, not the rounded display. If invoices must match the displayed rate exactly, round the percentage itself, for example =ROUND(B2/A2,4). Our guide on how Excel rounding works explains display versus stored precision.
Frequently asked questions
Why does Excel show 1500% instead of 15%?
The cell holds 15, not 0.15. Percent Style multiplies the stored value by 100 for display, so 15 becomes 1500%. Retype the value as 15% or 0.15, or divide the existing values by 100 with Paste Special > Divide. If you format empty cells as Percentage before typing, Excel converts entries such as 15 to 15% automatically.
What is the formula for percentage in Excel?
There is no single PERCENT function. The basic formula is part divided by total, =A2/B2, formatted with Percent Style. Other percentage calculations are variations: multiply for a percentage of a number, =(new-old)/old for change, and *(1-rate) or *(1+rate) to deduct or add a percentage.
How do I show a negative percentage change in red?
Select the cells, press Ctrl+1, choose Custom and enter 0.0%;[Red]-0.0%. Positive values stay black and negative values turn red. For more control, such as green for increases, use Home > Conditional Formatting > Highlight Cells Rules > Less Than with 0 as the value.
How do I calculate percentage of total in a pivot table?
Right-click a value in the pivot table, choose Show Values As and pick % of Grand Total, % of Column Total or % of Row Total. The pivot table recalculates the shares automatically, so you don't need a separate formula column. This works in all current Excel versions on Windows and Mac.
Related guides
- Average of averages in Excel: why it's wrong
- Add, subtract, multiply and divide in Excel
- How to stop Excel rounding numbers
- Absolute value in Excel: the ABS function
- COUNTIFS with multiple criteria
Links in this guide
| Link | Type | Why it helps |
|---|---|---|
| Microsoft Support: Calculate percentages | External | Official percentage formula examples |
| Microsoft Support: PERCENTILE.INC function | External | Percentile syntax and errors |
| COUNTIFS with multiple criteria | Internal | Percentages of rows that meet conditions |
| Basic maths formulas in Excel | Internal | Arithmetic operators |
| ABS function | Internal | Percent error and negative bases |
| Average of averages | Internal | Averaging percentages correctly |
| Office 2024 editions | Internal | Native dynamic array support |
| How Excel rounding works | Internal | Displayed versus stored percentages |
