Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Percent of Two Numbers in Excel: Easy Calculation Guide

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To find the percentage of one number relative to another in Excel, divide the part by the total and then format the result as a percentage. For example, if you have 20 in cell A1 and 100 in cell B1, the formula =A1/B1 will return 0.2, which becomes 20% once you click the Percent Style button in the Home tab. This basic division operation is the foundation for calculating proportions, growth rates, and goal completion within any spreadsheet.

What You'll Need

  • A computer with Microsoft Excel installed (works across Windows, macOS, and Excel for the Web).
  • A dataset consisting of at least two sets of numbers (a numerator/part and a denominator/total).
  • Basic familiarity with selecting cells and typing into the formula bar.

Step-by-Step

  1. Input Your Data: Enter your numbers into two separate cells. For clarity, place the "part" (the number you want to find the percentage of) in cell A2 and the "total" (the number that represents 100%) in cell B2.
  2. Select the Result Cell: Click on an empty cell where you want the percentage to appear (for example, cell C2).
  3. Enter the Division Formula: Type the equal sign = to tell Excel you are starting a formula. Then, click on cell A2, type a forward slash / (the division symbol), and click on cell B2. Your formula should look exactly like this: =A2/B2.
  4. Execute the Calculation: Press the Enter key on your keyboard. Excel will perform the division and display the result as a decimal. For instance, if A2 is 45 and B2 is 50, the cell will show 0.9.
  5. Apply Percentage Formatting: With the result cell (C2) still selected, navigate to the Home tab on the top ribbon. In the Number group, click the Percent Style (%) button. The decimal 0.9 will instantly transform into 90%.
  6. Adjust Decimal Precision: If your result is a complex number (like 90.45%) but Excel is rounding it to 90%, stay in the Number group on the Home tab. Click the Increase Decimal button (usually an icon with a blue arrow pointing left) one or two times to show the exact percentage.
  7. Apply to Multiple Rows: 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 cell C2 and drag it down to the bottom of your data range. Excel will automatically adjust the cell references (A3/B3, A4/B4, etc.) for each row.

Common Mistakes

One of the most frequent errors is reversing the order of the numbers. In mathematics, the formula for percentage is (Part / Total) * 100. If you divide the total by the part (e.g., =B2/A2), you will get a number greater than 1 (or 100%), which represents the ratio of the total to the part rather than the percentage of the part within the total.

Another common mistake is manually multiplying by 100 within the formula. Many users type =(A2/B2)*100. While this mathematically produces the number 20 for a 20% result, it creates a conflict when you apply Excel's built-in Percent Style formatting. Since the Percent Style button multiplies the cell value by 100 and adds the % symbol, your result would unexpectedly become 2000%. To avoid this, stick to simple division and let the formatting tool handle the conversion.

Users also often forget to lock cell references when calculating percentages against a single fixed total. If you are dividing a list of parts (A2, A3, A4) by one single total located in cell B1, dragging the formula down will cause Excel to shift the reference to B2, B3, and so on. This results in errors because those cells may be empty. To fix this, use an absolute reference: =A2/$B$1. The dollar signs tell Excel to keep the reference locked on cell B1 regardless of where the formula is copied.

Tips

To make your spreadsheet more professional, use Table formatting. Select your data range and press Ctrl + T. When you enter a percentage formula in a Table, Excel automatically fills the entire column for you, eliminating the need to drag the fill handle manually. This also ensures that any new rows added to the bottom of the table automatically inherit the percentage calculation.

If you are calculating a percentage change (the increase or decrease between two numbers), the formula changes slightly. Instead of just dividing, you subtract the old value from the new value first: =(New_Value - Old_Value) / Old_Value. For example, if last month's sales were in A2 and this month's are in B2, use =(B2-A2)/A2. This tells you the percentage growth or decline rather than just the proportion.

For those who prefer keyboard shortcuts, you can apply the percentage format quickly. Select the cell and press Ctrl + Shift + %. This is significantly faster than navigating the ribbon menu when working with large datasets.

Troubleshooting

If you see a #DIV/0! error, it means the cell you are using as the denominator (the total) is empty or contains a zero. Excel cannot divide by zero. To fix this, ensure your total column is fully populated. If you want the cell to remain blank or show a zero instead of an error when no data is present, wrap your formula in an IFERROR function: =IFERROR(A2/B2, 0) or =IFERROR(A2/B2, "").

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 resolve this, go to the Home tab, look at the Number dropdown menu (which likely says "Date"), and change it back to "General" or click the Percent Style button.

If your percentage is showing as 0% even though you know the answer is not zero, it is likely a rounding issue. Excel may be rounding a small number (like 0.4%) down to the nearest whole number. Use the Increase Decimal button in the Number group to reveal the hidden precision.

Frequently Asked Questions

How do I calculate a percentage of a total if I only have the percentage and the total?

If you have a total (e.g., 500) and a percentage (e.g., 20%) and want to find the actual amount, multiply them: =500 * 20% or =B2 * C2. Excel recognizes the % symbol as a mathematical value (0.20), so the result will be 100.

Can I calculate percentages across different worksheets?

Yes. When typing your formula, after typing = and clicking the part on the first sheet, click the tab of the second worksheet and select the total cell. The formula will look like =Sheet1!A2/Sheet2!B2.

Why does my percentage result show as a decimal like 0.15?

By default, Excel treats division results as general numbers. A percentage is simply a decimal expressed as a fraction of 100. To change 0.15 to 15%, you must apply the Percent Style formatting from the Home tab.

How do I find the percentage difference between two numbers?

Use the formula =(New-Old)/Old. For example, if a price rose from $10 to $12, the formula =(12-10)/10 equals 0.2, which is a 20% increase.

What happens if the part is larger than the total?

Excel will return a percentage greater than 100%. This is mathematically correct and often used to show that a goal was exceeded or that a value has grown beyond its original baseline.