Percent of Function Excel: How to Calculate It
In this article
To get a percent of a total in Excel, divide one number by the other and format the result as a percentage: type =part/total (for example =45/180), then click the % button on the Home tab. That single formula is the whole idea. Everything else is about which two cells you point at, and how you stop Excel from doing something surprising with the formatting. If you want the percent a value represents of a fixed total, lock the total cell with dollar signs so the reference does not slide when you copy the formula down.
What You'll Need
- Excel on Windows, Mac, or Excel for the web. Google Sheets and LibreOffice Calc accept the same formulas, so the steps transfer.
- Two numbers: the part and the whole. The part goes on top of the division, the whole on the bottom.
- A column of values if you want to fill the formula down rather than type it once.
- Nothing else. No add-ins, no special functions. Percentages in Excel are just decimals wearing a percentage number format.
Step-by-Step
- Lay out the data so the numbers are in their own cells. For example, put the total in A2 (180) and the part in B2 (45). Keeping raw numbers in cells instead of inside the formula means you can change a value later without rewriting anything. Menu and button labels vary slightly between Excel versions and platforms, but the formulas are identical everywhere.
- Click an empty cell where the result should appear, say C2, and type an equals sign to start a formula.
- Enter the division. Type
=B2/A2and press Enter. Excel returns 0.25. That is the correct answer already, just displayed as a decimal. - Format the cell as a percentage. Select C2 and click the % button in the Number group of the Home tab, or press Ctrl+Shift+% (Windows) or Ctrl+Shift+% on Mac. The cell now shows 25%.
- Copy the formula down the column. Drag the small square at the bottom-right corner of the cell (the fill handle) down as far as your data goes, or double-click the fill handle to auto-fill to the end of the adjacent column. Each row recalculates with its own numbers.
- Lock the total if it is a single fixed number. If the total sits in one cell, such as A2, and you want every row compared against it, change the formula to
=B2/$A$2before filling down. The dollar signs make it an absolute reference: A2 stays A2 while B2 becomes B3, B4, and so on. Without them you get a #DIV/0! error partway down, because the formula ends up dividing by empty cells. - Increase or decrease decimals if the numbers look crowded. Use the Increase Decimal and Decrease Decimal buttons next to the % button. Two decimals is a good default for reports; whole numbers are easier for quick reading.
- Check the answer against your own arithmetic once. 45 out of 180 is 45 รท 180 = 0.25 = 25%. If Excel shows 2500% instead, the cell is formatted as a percentage but you divided by 100 somewhere, or the number is formatted as a percentage and then multiplied again.
Common Mistakes
Dividing the wrong way round. The part must be the numerator. =A2/B2 instead of =B2/A2 gives 400% when you expected 25%. A result above 100% is usually a sign the numbers are reversed, though it can also be legitimate when the part genuinely exceeds the whole.
Forgetting absolute references. This is the single most common cause of a column of percentages going wrong halfway down. If only the first row is right and the rest show errors or zeros, the formula was copied without locking the total cell.
Formatting instead of dividing. Clicking % on a cell containing 25 shows 2500%, because 25 means twenty-five whole units. The percentage format multiplies the underlying value by 100 for display. Either enter the decimal (0.25) and format it, or enter the formula and let Excel do the division.
Typing percentages into formulas. Writing =B2/100% works, because 100% equals 1, but it confuses anyone reading the sheet later. Divide by the cell reference instead.
Dividing by zero or by a blank. Empty cells count as zero and produce #DIV/0!. Wrap the formula in IFERROR, as =IFERROR(B2/A2,""), to leave a clean blank instead of an error when a row has no total yet.
Text that looks like numbers. If a value is left-aligned by default and the formula returns an error, it is probably stored as text, often after pasting from another system. Select the column, look for the warning marker, and use the convert-to-number option, or multiply the column by 1 in a helper column.
Tips
For a percentage change between two values rather than a share of a total, the formula is =(new-old)/old. If sales go from 200 to 250, =(250-200)/200 gives 0.25, or a 25% increase. The order matters: old goes in the denominator.
To show a part of a total where the total is the sum of the column rather than a single cell, use =B2/SUM($B$2:$B$20). The absolute range keeps the sum fixed while the numerator moves, and the percentages will add up to 100%.
Use conditional formatting to flag results. A rule that colours cells above 100% or below a target makes outliers visible without reading every number.
Name the total cell. Select A2, type a name such as Total in the Name Box, and then write =B2/Total. The formula reads almost like plain English and survives moving the cell.
Keep the raw decimals in a hidden helper column if you plan to chart the data. Excel plots the underlying decimal, not the displayed percentage, so a chart built on percentages formats oddly unless you keep the units consistent.
Troubleshooting
The cell shows a date instead of a percentage. Excel has interpreted your entry as a date. Undo, then enter the formula again after setting the cell format to Percentage first.
All results are exactly 100%. The formula is almost certainly dividing a cell by itself, which happens when both references were made absolute by mistake. Check that the numerator has no dollar signs.
Results look right but the total is off by a rounding amount. This is display rounding, not a calculation error. The stored value keeps full precision; only what you see is rounded. Add decimals if the difference matters.
The fill handle copies the same value everywhere. Calculation may be set to Manual. Look under the Formulas tab for Calculation Options and set it to Automatic, or press F9 to recalculate.
Nothing works after pasting from a website. Pasted cells often carry hidden spaces or text formatting. Use Paste Special and choose Values, then re-enter the formula.
If the problem persists, save a copy, clear the formatting on the affected range (Home tab, the eraser icon, Clear Formats), and rebuild one formula from scratch in a fresh cell. A single working formula can then be copied down again.
Frequently Asked Questions
What is the basic formula for a percentage in Excel?
Part divided by total: =part/total. Format the result cell as a percentage. There is no dedicated PERCENT function in Excel; the division and the format do the job.
Why does my percentage show as a huge number like 2500%?
The cell holds 25 rather than 0.25. Either divide the value by 100 or enter the formula instead of a pre-multiplied number. The percentage format multiplies by 100 for display.
How do I calculate what percentage one number is of another?
Put the smaller or partial number first: =B2/A2 where B2 is the part and A2 is the whole. A result over 100% means the part is larger than the whole, which is sometimes correct and sometimes a sign of reversed references.
How do I stop the total cell from changing when I copy the formula down?
Use absolute references with dollar signs, as in =B2/$A$2. Press F4 while editing the reference to add the dollar signs automatically on Windows; on Mac, use Cmd+T or type them manually.
How do I calculate percentage change in Excel?
Subtract the old value from the new, then divide by the old: =(new-old)/old. Format as a percentage. A negative result means a decrease.
Can I show a percentage without the % sign?
Yes. Multiply by 100 in the formula, as in =B2/A2*100, and leave the cell in General format. The number then reads 25 rather than 25%, which is useful for labels but less clear in a shared sheet.