To divide in Excel, start a formula with an equals sign and type the number or cell reference you want to divide, followed by a forward slash (/), then the divisor: =A1/B1 or =100/4. The slash key sits on the main keyboard and on the numeric keypad. Press Enter, and the result appears in the cell. If you divide by a cell that is empty or contains zero, you get the #DIV/0! error; if you divide by a column that contains zeros, use the IFERROR or IF function to return a clean blank or message.
What You'll Need
- Microsoft Excel, or another spreadsheet app that accepts Excel formulas (Excel for desktop, Excel for the web, Excel on iPad or iPhone, Android, or Excel Mobile). Labels and menus vary slightly by version, device and region.
- A worksheet with your numbers entered. You can type numbers directly into the formula, but cell references are what make a division formula reusable.
- Basic keyboard knowledge: the forward slash key. On a standard full keyboard it is on the bottom row; on the numeric keypad it is the top key. The backslash (\\) does not perform division.
Step-by-Step
- Set up your data in clear columns. Put the values you want to divide in one column and the values you want to divide by in the next column. For example, type your totals in A2:A10 and your counts in B2:B10. Add header labels in row 1 so you can see what each column means later.
- Click the cell where you want the answer. This is usually the first empty cell beside the data, such as C2. Clicking selects the cell and lets you start typing there.
- Type an equals sign. Every Excel formula starts with =. If you forget it, Excel treats your entry as text.
- Click or type the numerator. Click cell A2 or type
A2. This is the number being divided. You can instead type a fixed number such as=50. - Type the forward slash. Press the / key. This is Excel's division operator. Do not use a colon, semicolon, backslash or the letter x.
- Click or type the denominator. Type
B2or click that cell. The formula bar should now read=A2/B2. - Press Enter. Excel calculates the result and moves the selection down one cell. The answer appears in C2, and the full formula remains visible in the formula bar when you click that cell again.
- Copy the formula down the column. Click C2, then drag the small square in its bottom-right corner (the fill handle) down to the last row of your data. Excel adjusts the references row by row, so C3 becomes
=A3/B3, C4 becomes=A4/B4, and so on. Alternatively, copy C2, select the range below it, and paste. - Get a whole-number result if you need one. Division normally returns decimals. To round the answer, wrap the formula:
=ROUND(A2/B2,2)gives two decimal places. Use=ROUND(A2/B2,0)for a whole number. To show only the integer part and drop the remainder, use=QUOTIENT(A2,B2). To show the remainder itself, use=MOD(A2,B2). - Format the result. Select the answer cells, right-click (or use the Home tab's number area), and choose a number, currency or percentage format. Division results show two decimal places by default in many number formats, but currency symbols or percentage signs are applied manually.
- Check your answers. Multiply the result by the denominator; it should equal the numerator. Spot-check two or three rows manually, especially if the formula was copied from another workbook or sheet.
A worked example
Suppose column A holds total hours worked per employee and column B holds the number of shifts. To find average hours per shift, use =A2/B2. If A2 is 38 and B2 is 5, the answer is 7.6. If you want the answer in whole hours, use =ROUND(A2/B2,0), which gives 8. To express each person's share as a percentage of a department total in A11, divide the individual value by $A$11 and apply percentage formatting.
Dividing a whole range by one number
If you need every cell in a range divided by the same number, put the divisor in a single cell, such as D1. Then in the first output cell type =A2/$D$1 and copy it down. The dollar signs make that reference absolute, so every copied formula keeps pointing at D1. Without them, the reference shifts as you copy and the results break. This is the standard way to normalise figures or convert a currency by dividing by an exchange rate.
Dividing by a percentage
To divide a number by a percentage stored in a cell formatted as a percentage, use the same formula, for example =A2/B2 where B2 shows 25%. Excel treats 25% as 0.25, so dividing 100 by it returns 400, which is correct: a quarter of 400 is 100. If you get an unexpected answer, select the cell and look at the formula bar to confirm it holds a real number rather than text with a percent sign typed after it.
Common Mistakes
- Using the wrong slash. A backslash, colon or dot produces a #NAME? error or no result at all. Division always uses the forward slash.
- Forgetting the equals sign. Without it, the entry stays as text and no calculation happens.
- Dividing by zero or by a blank cell. Both produce #DIV/0!. A cell that looks empty but contains a space also causes this, so clear it properly.
- Leaving out the absolute reference. When you copy a formula with an unanchored divisor, the divisor walks down with the copies. Use $D$1 style references for fixed values.
- Assuming the divisibility checks out. If one cell in a copied column holds text, the formula returns #VALUE! for that row only. Scan for red error triangles.
- Rounding before evaluating. If you round a numerator before dividing, the answer can be slightly off. Round the final result instead, using ROUND around the whole division.
- Manual subtraction of text. Numbers imported as text from another system cannot be divided until converted. Use Data > Text to Columns, or multiply by 1 via Paste Special Multiply, to turn them into real numbers.
- Missing operator precedence. Excel divides and multiplies before it adds and subtracts, so
=1+3/2is 2.5, not 2. Use brackets if the meaning is unclear.
Tips
- Press F4 after typing a cell reference to toggle between relative and absolute references ($A$1, A$1, $A1, A1).
- Press Ctrl + ` (the accent key below Esc on many layouts) to show formulas on every cell at once; this is the fastest way to audit a division sheet.
- Use
=IFERROR(A2/B2,"")to replace the error with a blank, or=IFERROR(A2/B2,"n/a")for a readable label. This keeps reports tidy when some rows have no data yet. - Put all divisors in one clearly labelled block instead of scattering numbers inside formulas, so a future change is a single edit.
- Name important divisor cells (Formulas > Define Name) so formulas read like
=A2/Raterather than a raw reference. - Use the status bar at the bottom of the window: select a range of results and Excel shows sum, average and count without extra formulas.
- Keep numbers in numeric columns and units in headers, not in the cells. Text like "5 hrs" cannot be divided.
Troubleshooting
#DIV/0! appears. The denominator is zero or blank. Select the denominator cell and confirm it holds a number. If zeros are legitimate, wrap the formula in IFERROR or use =IF(B2=0,"",A2/B2). If the whole column is blank because it is waiting on data, that is expected and safe to leave.
The answer looks wrong but no error shows. Click the result cell and read the formula bar. Common causes are a divisor pointing one row off, an accidental absolute reference locking the wrong row, or text stored as numbers. Press Ctrl + ` to view all formulas across the sheet before changing anything.
#VALUE! appears. One operand is text. Check for leading apostrophes or trailing spaces. If the numbers were pasted from another source, use Data > Text to Columns to convert them.
The copied formula gives the same answer in every row. The divisor was locked with dollar signs. Remove them if you want it to shift, or keep them deliberately and accept identical divisors.
Results show as a fraction or date. The result cell has inherited an odd number format. Apply the General or Number format to reset it.
If that did not work: recalculate with F9, confirm editing is enabled rather than the sheet being protected, and reopen a copy of the workbook to rule out a corrupted file. As a last resort, retype the formula in a fresh cell rather than diagnosing odd characters.
Frequently Asked Questions
How do I divide two columns in Excel?
Enter =A2/B2 in the first result cell, press Enter, then drag the fill handle down. Excel adjusts the row numbers for each copy.
Why does Excel show #DIV/0! and how do I hide it?
It means the divisor is zero, blank or resolves to zero. Use =IFERROR(A2/B2,"") to show an empty cell instead of the error.
Can I divide an entire range by the same number without a formula per cell?
Yes. Put the number in a cell, copy it, select the range, then use Paste Special Multiply on a helper approach, or simply use absolute references such as =A2/$D$1 and copy down.
How do I get a whole number result from a division?
Use =QUOTIENT(A2,B2) for the integer part, =MOD(A2,B2) for the remainder, or =ROUND(A2/B2,0) for a rounded answer.
Does the slash work on a phone or tablet keyboard?
Yes. The slash is on the number and symbol keyboard. Tap to bring up symbols if it is not on the main layout, and confirm the formula bar shows the slash before pressing the checkmark to enter.
What is the difference between SUBTRACT and division in a formula?
You do not need the SUBTRACT function. Division uses the / operator and subtraction uses -, for example =A2/B2 and =A2-B2. Excel has no DIVIDE function, just the operator.