How to Divide in Excel: Formulas, Columns and #DIV/0!
By ExcelReady TeamUpdated 6 min read
The short answer
To divide in Excel, use the forward slash (/) in a formula, for example =B2/C2 or =100/4. Excel has no DIVIDE function. To divide a whole column by one cell, lock that cell with dollar signs, like =B2/$F$1, and fill down. Wrap the formula in IFERROR to show a blank or 0 instead of #DIV/0! when the divisor is zero.
Key takeaways
- The division operator is the forward slash: =B2/C2. There is no DIVIDE function.
- Lock a fixed divisor with dollar signs, =B2/$F$1, before you fill the formula down.
- Excel divides before it adds, so put brackets round any total you want to divide: =(B2+C2)/2.
- Dividing by zero or an empty cell gives #DIV/0!. Catch it with IF or IFERROR.
- Use ROUND to control decimals in the result, not just the number format.
On this page+
- How to divide two numbers or cells
- How to divide a column of numbers
- How to divide by a fixed number in another cell
- Why brackets matter when you divide
- How to round the result of a division
- How to stop the #DIV/0! error
- How to get the whole number and the remainder
- Common mistakes when dividing in Excel
- Practise it
To divide in Excel, you write a formula with the forward slash: =B2/C2 divides the value in B2 by the value in C2. There is no DIVIDE function, so the slash is all you need. This guide is for beginners and job seekers, and it covers dividing cells, dividing a whole column by one number, rounding the answer and stopping the #DIV/0! error.
How to divide two numbers or cells#
Type an equals sign, the number you want to divide, a forward slash and the number you divide by. Then press Enter.
| Formula | What it does | Result |
|---|---|---|
=100/4 | Divides two typed numbers | 25 |
=B2/C2 | Divides the value in B2 by the value in C2 | Depends on the cells |
=B2/4 | Divides a cell by a typed number | Depends on B2 |
The number before the slash is the dividend (the amount being split). The number after it is the divisor (what you split by). Order matters: =12/4 is 3, but =4/12 is about 0.33.
Using cell references is better than typing numbers. When the data changes, the result updates by itself. If formulas are new to you, start with how to write your first Excel formula.
How to divide a column of numbers#
Write the formula once in the first row, then fill it down so every row divides its own cells. Here is a small purchase list:
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Total cost | Units | Cost per unit |
| 2 | Paper | 48 | 12 | 4 |
| 3 | Toner | 255 | 3 | 85 |
| 4 | Folders | 31 | 4 | 7.75 |
| 5 | Pens | 25 | 3 | 8.333333 |
- Click D2 and type
=B2/C2. - Press Enter. The result is 4.
- Click D2 again and fill down to D5. Drag the small square at the bottom-right corner of the cell, or select D2:D5 and press Ctrl+D (Mac: ⌘D).
Excel changes the references as it fills: D3 becomes =B3/C3, D4 becomes =B4/C4, and so on. These are called relative references.
How to divide by a fixed number in another cell#
To divide every row by the same cell, lock that cell with dollar signs so it doesn't move when you fill down. Say the costs are shared between team members, and F1 holds the team size, 4:
=B2/$F$1In row 2 this returns 12 (48 / 4). Fill it down and row 3 returns 63.75 (255 / 4). Without the dollar signs, the formula in row 3 would point at F2, which is empty, and you'd get #DIV/0!.
To add the dollar signs quickly, click on F1 in the formula bar and press F4 (Mac: ⌘T). The absolute references lesson lets you practise this until it's automatic.
Divide a range in place with Paste Special#
If you want to change the numbers themselves, not add a new column, use Paste Special. For example, to show amounts in thousands:
- Type 1000 in an empty cell and copy it (Ctrl+C; Mac: ⌘C).
- Select the numbers you want to change.
- Open Paste Special (Ctrl+Alt+V; Mac: ⌘+Control+V).
- Choose Divide and click OK.
This overwrites the original values, so keep a copy if you might need them.
Why brackets matter when you divide#
Excel follows the normal order of operations: it divides and multiplies before it adds and subtracts. So these two formulas give different answers:
| Formula | How Excel reads it | Result |
|---|---|---|
=100+50/2 | 100 + (50 / 2) | 125 |
=(100+50)/2 | (100 + 50) / 2 | 75 |
If you want to divide a total, put the total in brackets first. This is a common mistake when people average two numbers by hand. Division works with the other operators in the same way, so see also how to multiply in Excel and how to subtract in Excel.
How to round the result of a division#
Use the ROUND function when you need a result with a fixed number of decimals. Pens cost 25 for 3, which is 8.333333…:
=ROUND(B5/C5,2)This returns 8.33. ROUND changes the actual value. Formatting the cell to show 2 decimals only changes what you see, and Excel still uses 8.333333 in later sums. Use ROUNDUP or ROUNDDOWN if you must always round one way, such as when you need whole boxes.
When you divide one value by a total to get a share, format the result as a percentage. For example, =45/60 returns 0.75, which shows as 75%. The guide to percentage formulas in Excel covers shares, percent change and more.
How to stop the #DIV/0! error#
Excel shows #DIV/0! when the divisor is zero or empty. If row 6 had Labels with a cost of 20 and 0 units, =B6/C6 would return #DIV/0!. You have two common fixes.
Check the divisor first with IF:
=IF(C6=0,"",B6/C6)Or catch any error with the IFERROR function:
=IFERROR(B6/C6,0)The IF version returns an empty-looking cell only when the divisor is 0 or blank. The IFERROR version returns 0 for any error, including a typo, so use it with care. The IFERROR lesson lets you practise it, and the full guide to fixing the #DIV/0! error explains when to show 0, a blank or a label.
How to get the whole number and the remainder#
Sometimes you need "how many full groups, and how many left over". Excel has two functions for this:
=QUOTIENT(50,12)returns 4, the whole-number part of 50 / 12.=MOD(50,12)returns 2, the remainder.
So 50 items fill 4 boxes of 12, with 2 items left. =INT(50/12) also returns 4 for positive numbers.
Common mistakes when dividing in Excel#
These slips cause most wrong answers:
- Using a backslash.
=B2\C2is not a formula. Use the forward slash/. - Forgetting the equals sign. Without
=, Excel storesB2/C2as text, or turns1/2into a date. - Numbers stored as text. A value like "48" imported as text can cause #VALUE! or wrong results. Convert it with VALUE.
- A moving divisor. If every row should divide by F1, write
$F$1. - Rounding with formatting only. The cell shows 8.33, but the value is still 8.333333.
Practise it#
You learn division fastest by typing it. Practise your first Excel formulas in a live spreadsheet: you write =B2/C2-style formulas and the sheet checks them instantly. Then lock a divisor in the absolute references lesson and handle zeros in the IFERROR lesson.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Find the cost of one pen. Click D2, divide the total cost in B2 by the units in C2, and round the result to 2 decimal places.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Cost per unit | ||||
| 2 | |||||
| 3 | |||||
| 4 | |||||
| 5 | |||||
| 6 | |||||
| 7 |
Tip: Put the division inside ROUND: =ROUND(cell/cell, number of decimals).
Practise this in a lesson
Frequently asked questions
What is the formula to divide in Excel?
Type an equals sign, the first number or cell, a forward slash and the second number or cell, for example =B2/C2. Press Enter and Excel shows the result.
Is there a DIVIDE function in Excel?
No. Excel uses the / operator for division. The QUOTIENT function exists, but it returns only the whole-number part of a division and drops the remainder.
How do I divide a whole column by one number?
Put the number in a cell, such as F1, then write =B2/$F$1 next to the first value and fill it down. The dollar signs keep every row pointing at F1.
Why does Excel show #DIV/0!?
The divisor is zero, empty or a formula that returns zero. Fix the data or wrap the formula: =IFERROR(B2/C2,0) or =IF(C2=0,"",B2/C2).
How do I divide and get the remainder in Excel?
Use MOD for the remainder and QUOTIENT or INT for the whole part. For 50 items in boxes of 12, =QUOTIENT(50,12) returns 4 and =MOD(50,12) returns 2.