To divide in Excel and get a percentage, divide one number by the other with a forward slash (for example =A2/B2) and then format the result as a percentage. Select the cell, open the Home tab, and click the % button in the Number group, or press Ctrl+Shift+% on Windows (Cmd+Shift+% on Mac). The result is the fraction expressed as a percent, such as 0.25 becoming 25%.
What You'll Need
- A spreadsheet app: Excel for Microsoft 365, Excel 2021/2019, Excel for Mac, or Excel for the web. The steps below work in all of them; labels can differ slightly by version, device and region.
- Two numbers to compare: the part (the amount you are measuring) and the whole (the total it belongs to).
- Basic familiarity with typing a formula that starts with
=.
Step-by-Step
- Enter your data in two adjacent columns. For example, put the part in column A and the whole in column B, with labels in row 1 and numbers starting in row 2.
- Click the cell where you want the percentage to appear, such as C2.
- Type an equals sign, then click the part cell, type a forward slash
/, and click the whole cell. The formula should look like=A2/B2. Press Enter. - Select the result cell (or drag to select the whole column of results).
- On the Home tab, in the Number group, click the % button. The value now displays as a percentage, for example 0.25 becomes 25%.
- To control decimal places, use the Increase Decimal and Decrease Decimal buttons next to the % button. Two decimal places is a common choice.
- To fill the formula down, click the small square at the bottom-right corner of the result cell and drag down, or double-click it to fill to the end of the adjacent data.
- If you want a percentage of a total, use an absolute reference for the whole:
=A2/$B$2. The dollar signs lock the denominator so it does not shift when you copy the formula. - To show the percent sign as part of a text string instead of a number, use a formula like
=TEXT(A2/B2,"0.0%"). This is display only and cannot be used in further calculations.
Common Mistakes
- Dividing the wrong way round. The part goes on top and the whole on the bottom. Reversing them gives a result above 100%, which is usually a sign of a swap.
- Forgetting to format as a percentage. The division is correct, but Excel shows 0.25 instead of 25%. Click the % button to fix the display.
- Typing the percent sign into the formula. Writing
=A2/B2%divides by a hundredth and gives a wildly wrong answer. Keep the % out of the formula and apply it as formatting. - Relative references shifting. When you copy a formula that should always divide by the same total, the denominator moves unless you lock it with
$. - Dividing by zero or by a blank cell. Excel returns
#DIV/0!. Check that the whole column contains numbers and no empty cells. - Numbers stored as text. A number aligned to the left of the cell is often text. Division then fails or returns an error. Convert it with Data > Text to Columns or by retyping it.
Tips
- Use Ctrl+Shift+% (Windows) or Cmd+Shift+% (Mac) as a quick way to apply percentage formatting.
- For a percentage change between two values, use
=(New-Old)/Oldand format the result as a percentage. - Keep a small helper column for the raw decimal if you need to calculate with it, and a separate formatted column for display.
- Name your columns clearly, such as Part and Whole, so the formula is easy to read and audit later.
- Use F4 while editing a formula to cycle a reference between relative and absolute.
Troubleshooting
- Result shows 0.25, not 25%. The cell is formatted as General or Number. Select it and click the % button on the Home tab.
- You see
#DIV/0!. The denominator is zero or blank. Fill in the whole value, or wrap the formula in=IFERROR(A2/B2,"")to show a blank instead of an error. - You see
#VALUE!. One of the cells contains text rather than a number. Check for stray spaces, apostrophes or imported text and convert it to a number. - The percentage looks wrong after copying. The reference shifted. Lock the denominator with
$and copy again. - The % button is greyed out. The selected cells may be locked or the sheet protected. Unprotect the sheet from the Review tab if you have permission.
- Formulas show as text. The cell is formatted as Text. Change the format to General, then re-enter the formula.
Frequently Asked Questions
What is the formula for a percentage in Excel?
Divide the part by the whole, for example =A2/B2, then format the result as a percentage. The division gives the decimal and the formatting turns it into a percent.
How do I get a percentage of a total?
Use =A2/$B$2, where B2 holds the total. The dollar signs keep the total fixed when you copy the formula down.
Why does Excel show 0.5 instead of 50%?
The cell is formatted as a number, not a percentage. Select it and click the % button on the Home tab, or use the keyboard shortcut.
How do I calculate percentage change?
Subtract the old value from the new value, divide by the old value, and format as a percentage: =(New-Old)/Old.
Can I divide a column by the same number?
Yes. Put the number in one cell, lock it with dollar signs, and divide each row by that cell. For example, =A2/$B$1.
Why do I get #DIV/0!?
The denominator is zero or empty. Fill in the value or use IFERROR to handle it gracefully.