Percentage of Two Numbers in Excel: Simple Guide
In this article
To find the percentage of one number relative to another in Excel, use the formula =Part/Total and then format the result as a percentage. For example, if you have a score of 40 in cell A1 and a total possible score of 50 in cell B1, you would enter =A1/B1 in cell C1, which results in 0.8, and then click the Percent Style button on the Home tab to display it as 80%.
What You'll Need
- A computer with Microsoft Excel installed (Windows, macOS, or the web version).
- A dataset containing at least two sets of numbers: the "part" (the value you are measuring) and the "total" (the whole amount).
- Basic familiarity with selecting cells and entering formulas.
Step-by-Step
- Organize Your Data: Place your numbers in clearly labeled columns. For instance, put your "Actual Value" in Column A and your "Target Value" or "Total" in Column B. This ensures that when you write your formula, you can easily identify which cell is the numerator and which is the denominator.
- Select the Result Cell: Click on the empty cell where you want the percentage to appear (e.g., cell C2).
- Enter the Equals Sign: Type
=into the cell. In Excel, every formula must begin with an equals sign to tell the software to perform a calculation rather than treating the entry as plain text. - Select the Part: Click on the cell containing the smaller number or the specific portion you are calculating (e.g., cell A2). Your formula should now look like
=A2. - Insert the Division Operator: Type the forward slash
/. This is the symbol Excel uses for division. - Select the Total: Click on the cell containing the total amount or the base number (e.g., cell B2). Your complete formula should now read
=A2/B2. - Press Enter: Hit the Enter key on your keyboard. Excel will perform the division and return a decimal value (for example, 0.75 if the part is 75 and the total is 100).
- Apply Percentage Formatting: Since Excel displays division results as decimals by default, you must change the format. While the result cell is selected, go to the Home tab on the top ribbon. In the Number group, click the % (Percent Style) button. This multiplies the decimal by 100 and adds the percentage symbol.
- Adjust Decimal Precision: If you need a more precise number (e.g., 75.45% instead of 75%), stay in the Number group on the Home tab. Click the Increase Decimal button (usually an icon with a blue arrow pointing left) to show more digits after the decimal point.
- Fill the Formula Down: If you have a long list of numbers, you do not need to type the formula for every row. Click the small green square (the fill handle) in the bottom-right corner of the result cell and drag it down to the bottom of your data range. Excel will automatically adjust the cell references for each row.
Common Mistakes
One of the most frequent errors is reversing the order of the numbers. In a percentage calculation, the "part" must always come first, followed by the "total." If you divide the total by the part (e.g., 100 divided by 20), you will get a result of 500% instead of 20%. Always double-check that your numerator is the subset and your denominator is the whole.
Another common mistake is manually multiplying by 100 within the formula (e.g., =(A2/B2)*100) and then also clicking the Percentage button. Because the Percentage button automatically multiplies the value by 100 for display purposes, doing both will result in a number that is 100 times too large. Choose one method: either use the raw division and the Percent Style button, or use the multiplication formula and keep the cell format as "General" or "Number."
Users also often forget to use absolute references when dividing multiple cells by a single, fixed total. If your total is in one specific cell (like B10) and you drag your formula down, Excel will shift the reference to B11, B12, and so on. This leads to incorrect results or errors. To fix this, use a dollar sign to lock the cell: =A2/$B$10.
Tips
To calculate the percentage change (the increase or decrease between two numbers), the formula is slightly different. Use =(New_Value - Old_Value) / Old_Value. For example, if last month's sales were 1000 and this month's are 1200, use =(1200-1000)/1000 to get 0.2, which formats to 20% growth.
If you want to find what a specific percentage of a number is (e.g., what is 15% of 200?), use multiplication instead of division. Enter =200*15% or =200*0.15. Excel recognizes the % symbol as a mathematical operator that divides the number by 100 automatically.
Use Conditional Formatting to make your percentages visually intuitive. Select your percentage column, go to Home > Conditional Formatting > Data Bars. This adds a small horizontal bar inside the cell that grows longer as the percentage increases, allowing you to spot high and low values at a glance without reading every digit.
Troubleshooting
If you see #DIV/0!, this is a division by zero error. It happens when the cell you are using as the "total" (the denominator) is empty or contains a zero. To fix this, ensure the total cell has a valid number. If you want to hide this error for a cleaner look, wrap your formula in an IFERROR function: =IFERROR(A2/B2, 0) or =IFERROR(A2/B2, ""). This tells Excel to display a 0 or a blank space instead of the error message.
If the result looks like a date (e.g., "January 0, 1900") instead of a percentage, it is because the cell was previously formatted as a date. To fix this, select the cell, go to the Home tab, click the dropdown menu in the Number group (which likely says "Date"), and change it back to "Percentage" or "General."
If your percentage is showing as 0% even though you know the answer should be something like 0.4%, you likely have the decimal precision set too low. Excel often rounds 0.4% to 0% if no decimals are displayed. Click the Increase Decimal button in the Number group to reveal the hidden precision.
Frequently Asked Questions
How do I calculate the percentage of a total in Excel?
Divide the part by the total using the formula =Part/Total and then apply the Percent Style format from the Home tab.
Can I calculate percentages without using the Percent button?
Yes, you can multiply the division result by 100 manually using =(A1/B1)*100, but the result will be a standard number, not a percentage value.
How do I find the percentage difference between two numbers?
Subtract the old value from the new value, then divide that result by the old value: =(New-Old)/Old.
Why is my Excel percentage showing as a decimal?
Excel stores percentages as decimals (e.g., 0.5 for 50%). You must change the cell category to "Percentage" in the Home tab to see the % symbol.
How do I lock the total cell when dragging a formula?
Use absolute references by adding dollar signs to the cell coordinates, such as $B$1, which prevents the reference from changing as you copy the formula down a column.