Percentage change, share of total, and markup
Three everyday percentage formulas: how much something grew, what share it is of the total, and a price with markup.
FormulasBeginner10 minExcel · Google Sheets
Example content. The numbers are fictional and made for learning.
Goal
Work out how much each product grew since last year, and format the result as a percentage.
Why this is useful
Percentages make numbers of different sizes comparable. A 1,800 rise means more for a small product than a big one; the percentage shows it.
Example
| Row | A | B | C |
|---|---|---|---|
| 1 | Product | Last year | This year |
| 2 | Mugs | 12,000 | 13,800 |
| 3 | Tote bags | 8,000 | 7,400 |
| 4 | Prints | 5,000 | 6,500 |
| 5 | Change for Mugs | 15%=(C2-B2)/B2 |
Steps
1. Subtract, then divide
Change is new minus old, divided by old: =(C2-B2)/B2. The parentheses make the subtraction happen first.
2. Format as a percentage
Select the cell and choose the % button. 0.15 is shown as 15%. The value stays 0.15, so it can be used in other formulas.
3. Share of a total
Divide by the total and lock the total with $: =C2/SUM($C$2:$C$4). Copy it down and every row divides by the same total.
4. Add a markup
Multiply by 1 plus the rate: =B2*(1+E1) with 25% typed in E1 adds a quarter on top.
5. Avoid division errors
When the old value can be 0 or empty, wrap it: =IFERROR((C2-B2)/B2,"").
Formulas by language
Cell names such as B2 stay the same. The function name and the character between arguments follow the spreadsheet language. The English line in each list is the reference form used on this site, not a universal spelling. When the decimal sign is a comma, arguments are usually separated with a semicolon, because the comma is already used in numbers.
Change from last year as a fraction. Format it as a percentage.
English (United States)
Decimals look like 1.5. Arguments are separated with ,.
=(C2-B2)/B2Swedish (Sweden)
Decimals look like 1,5. Arguments are separated with ;.
=(C2-B2)/B2German (Germany)
Decimals look like 1,5. Arguments are separated with ;.
=(C2-B2)/B2French (France)
Decimals look like 1,5. Arguments are separated with ;.
=(C2-B2)/B2Spanish (Spain)
Decimals look like 1,5. Arguments are separated with ;.
=(C2-B2)/B2Spanish (Mexico)
Decimals look like 1.5. Arguments are separated with ,.
=(C2-B2)/B2Portuguese (Brazil)
Decimals look like 1,5. Arguments are separated with ;.
=(C2-B2)/B2Italian (Italy)
Decimals look like 1,5. Arguments are separated with ;.
=(C2-B2)/B2Dutch (Netherlands)
Decimals look like 1,5. Arguments are separated with ;.
=(C2-B2)/B2
This product's share of this year's total.
English (United States)
Decimals look like 1.5. Arguments are separated with ,.
=C2/SUM($C$2:$C$4)Swedish (Sweden)
Decimals look like 1,5. Arguments are separated with ;.
=C2/SUMMA($C$2:$C$4)German (Germany)
Decimals look like 1,5. Arguments are separated with ;.
=C2/SUMME($C$2:$C$4)French (France)
Decimals look like 1,5. Arguments are separated with ;.
=C2/SOMME($C$2:$C$4)Spanish (Spain)
Decimals look like 1,5. Arguments are separated with ;.
=C2/SUMA($C$2:$C$4)Spanish (Mexico)
Decimals look like 1.5. Arguments are separated with ,.
=C2/SUMA($C$2:$C$4)Portuguese (Brazil)
Decimals look like 1,5. Arguments are separated with ;.
=C2/SOMA($C$2:$C$4)Italian (Italy)
Decimals look like 1,5. Arguments are separated with ;.
=C2/SOMMA($C$2:$C$4)Dutch (Netherlands)
Decimals look like 1,5. Arguments are separated with ;.
=C2/SOM($C$2:$C$4)
Change, but blank when last year was 0 or empty.
English (United States)
Decimals look like 1.5. Arguments are separated with ,.
=IFERROR((C2-B2)/B2,"")Swedish (Sweden)
Decimals look like 1,5. Arguments are separated with ;.
=OMFEL((C2-B2)/B2;"")German (Germany)
Decimals look like 1,5. Arguments are separated with ;.
=WENNFEHLER((C2-B2)/B2;"")French (France)
Decimals look like 1,5. Arguments are separated with ;.
=SIERREUR((C2-B2)/B2;"")Spanish (Spain)
Decimals look like 1,5. Arguments are separated with ;.
=SI.ERROR((C2-B2)/B2;"")Spanish (Mexico)
Decimals look like 1.5. Arguments are separated with ,.
=SI.ERROR((C2-B2)/B2,"")Portuguese (Brazil)
Decimals look like 1,5. Arguments are separated with ;.
=SEERRO((C2-B2)/B2;"")Italian (Italy)
Decimals look like 1,5. Arguments are separated with ;.
=SE.ERRORE((C2-B2)/B2;"")Dutch (Netherlands)
Decimals look like 1,5. Arguments are separated with ;.
=ALS.FOUT((C2-B2)/B2;"")
The same spoken language can use different separators in different countries. Spanish in Spain often uses a comma for decimals and a semicolon between arguments. Spanish in Mexico often uses a period and a comma. If a formula is rejected, check the spreadsheet locale.
Excel and Google Sheets
- Arithmetic and percentage formatting work the same in Excel and Google Sheets.
- Typing 25% in a cell stores 0.25. Typing 25 stores twenty-five, which gives a markup of 2,500%.
- Function names and the separator between arguments follow the spreadsheet language. Excel uses the language of your installation; Google Sheets uses the spreadsheet locale under File, Settings.
If something goes wrong
The result is 1500% instead of 15%.
The formula multiplies by 100 and the cell is also formatted as a percentage. Remove *100 and keep the % format.
#DIV/0! appears.
Last year is 0 or empty. Use the IFERROR version.
The shares do not add up to 100% after copying.
The total range moved when you copied. Lock it with $ signs: $C$2:$C$4.