Percentage of Function Excel: How to Calculate Percentages
In this article
To calculate a percentage in Excel, you divide the part by the whole (=Part/Total) and then format the resulting cell as a percentage. Excel does not have a single named "PERCENTAGE" function like it does for SUM or AVERAGE; instead, it uses basic division combined with the Percentage Number Format to display the result correctly.
What You'll Need
- A computer with Microsoft Excel installed (any version, including Excel for the Web).
- A dataset containing at least two numbers: the value you are measuring (the part) and the total value (the whole).
- Basic knowledge of how to enter a formula into a cell.
Step-by-Step
- Organize Your Data: Place your "Part" value in one cell (e.g., cell A2) and your "Total" or "Whole" value in another cell (e.g., cell B2). For example, if you are calculating a sales goal, A2 might be "Current Sales" and B2 might be "Target Sales."
- Select the Result Cell: Click on the empty cell where you want the percentage to appear (e.g., cell C2).
- Enter the Division Formula: Type the equals sign (
=) to start the formula, then click the cell containing the part, type a forward slash (/) for division, and click the cell containing the total. The formula should look like=A2/B2. - Press Enter: Hit the Enter key. Excel will initially display the result as a decimal (for example, 0.75 instead of 75%).
- Apply Percentage Formatting: With the result cell still selected, navigate to the Home tab on the ribbon. In the Number group, click the Percent Style (%) button. This multiplies the decimal by 100 and adds the percentage symbol.
- Adjust Decimal Places: If you need more precision (e.g., 75.25% instead of 75%), stay in the Number group on the Home tab and click the Increase Decimal button (the icon showing a blue arrow pointing left) once or twice.
- Fill the Formula Down: If you have a list of multiple items, hover your mouse over the bottom-right corner of the result cell until a small black cross (the Fill Handle) appears. Click and drag that cross down to apply the same percentage calculation to all subsequent rows.
Common Mistakes
One of the most frequent errors is multiplying by 100 manually within the formula. Many users type =(A2/B2)*100. While this mathematically gives you the number 75, if you then apply the Excel "Percentage" format, Excel will multiply that 75 by 100 again, resulting in 7500%. Always stick to simple division (=Part/Total) and let the cell formatting handle the visual conversion.
Another common mistake is dividing the total by the part (=B2/A2). This will give you a reciprocal value rather than a percentage of the whole. Always remember the logic: Small Number (or Part) divided by Big Number (or Total).
Users also often forget to use absolute cell references when dividing multiple items by a single grand total. If your total is in a single cell (like B10) and you drag a formula down, Excel will shift the reference to B11, B12, and so on. This results in #DIV/0! errors because those cells are empty.
Tips
Using Absolute References: When calculating the percentage share of a grand total, use the dollar sign symbol to lock the total cell. Instead of =A2/B10, use =A2/$B$10. This ensures that as you drag the formula down, the "Part" (A2) changes to A3, A4, etc., but the "Total" remains locked on B10.
Calculating Percentage Change: To find the percentage increase or decrease between two values (e.g., last month's sales vs. this month's), use the formula: =(New_Value - Old_Value) / Old_Value. For example, if last month was in A2 and this month is in B2, use =(B2-A2)/A2. A positive result indicates growth, while a negative result indicates a decline.
Calculating Percentage Increase (Adding a %): If you want to increase a price by a certain percentage (e.g., adding a 15% tax to a price in A2), use the formula =A2 * (1 + 15%) or =A2 * 1.15. This is much faster than calculating the tax separately and then adding it back to the original price.
Calculating a Value from a Percentage: If you know the total and the percentage and want to find the actual number (e.g., what is 20% of 500?), use the formula =Total * Percentage. If A2 is 500 and B2 is 20%, the formula =A2*B2 will correctly return 100.
Troubleshooting
The result shows #DIV/0!: This error occurs when Excel tries to divide by zero or an empty cell. Check your "Total" cell. If the cell is empty or contains a zero, Excel cannot perform the calculation. To hide this error and show a blank or a zero instead, wrap your formula in an IFERROR function: =IFERROR(A2/B2, 0) or =IFERROR(A2/B2, "").
The result is 0% or 100% unexpectedly: This is usually a rounding issue. If your result is 0.004 and you have zero decimal places set, Excel rounds it down to 0%. Use the Increase Decimal button in the Home tab to see the actual value.
The result is a weird date: Sometimes Excel incorrectly guesses the format of a cell based on surrounding data. If your percentage looks like a date (e.g., Jan-00), go to the Home tab, open the Number Format dropdown menu (which likely says "Date"), and change it to "Percentage."
The formula is showing as text: If you see =A2/B2 written in the cell instead of a number, the cell is likely formatted as "Text." Change the cell format to "General" or "Percentage," then double-click the cell and press Enter to re-trigger the calculation.
Frequently Asked Questions
How do I calculate the percentage of a total in Excel?
Divide the specific value by the total value using the formula =Part/Total, then click the Percent Style (%) button on the Home tab to format the result.
How do I find the percentage difference between two numbers?
Subtract the old value from the new value, then divide by the old value: =(New-Old)/Old. Format the result as a percentage to see the growth or decline rate.
Can I calculate percentages without using the % button?
Yes, but you must multiply the result by 100 manually: =(A2/B2)*100. However, this result is a standard number, not a "Percentage" type, meaning you cannot use it easily in other financial functions.
What is the fastest way to apply a percentage formula to a whole column?
Enter the formula in the first cell, then double-click the small green square (Fill Handle) in the bottom-right corner of that cell. Excel will automatically copy the formula down to the last row of your data.
How do I calculate a percentage of a percentage?
Simply multiply the two percentages together. For example, if you want to find 50% of 20%, use =50% * 20%, which will result in 10% (0.10).