Excel and Google Sheets how-to
Fill handle not working? Copy a formula down fast
You wrote one formula and need it in every row. Here are the quick ways to copy it down, and what to check when the fill handle will not show up or the copies come out wrong.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Item | Qty | Price | Total | With tax | Tax |
| 2 | Pens | 4 | 1.25 | 5.00 | 5.50 | 10% |
| 3 | Paper | 2 | 6.00 | 12.00 | 13.20 | |
| 4 | Tape | 3 | 2.50 | 7.50 | 8.25 | |
| 5 | Folders | 5 | 0.80 | 4.00 | 4.40 | |
| 6 | Labels | 1 | 9.00 | 9.00 | 9.90 |
Sample data. D2 holds =B2*C2 and E2 holds =D2*(1+$F$2), both filled down to row 6. The tax rate sits in F2.
Three ways to copy a formula down
Type the formula once in the first row. D2 here holds:
=B2*C2D2 shows 5 (4 pens at 1.25). Now get it into the rows below:
- Drag the fill handle. Click D2. The small square at the bottom right corner of the cell is the fill handle (in Google Sheets it is a small blue box). Drag it down to the last row.
- Double-click the fill handle (Excel). Excel fills the formula down to the last row of the data beside it, so a list of 5,000 rows fills in one double-click. Microsoft uses this move on its own running balance page.
- Ctrl+D. Select D2 and the empty cells under it, then press Ctrl+D (Fill down). It works in Excel and in Google Sheets, where a Mac uses Command+D.
Each row gets its own version: D3 becomes =B3*C3, D4 becomes =B4*C4, and so on. D3 shows 12 and D4 shows 7.5.
Thousands of rows, no dragging
- Click the Name Box, the small box at the left end of the formula bar that shows which cell you are on.
- Type the range, for example D2:D5000, and press Enter. All 4,999 cells are selected, starting with your formula in D2.
- Press Ctrl+D.
The formula now runs all the way to row 5000. This works in Excel and in Google Sheets, which has its own Name Box to the left of the formula bar.
Google Sheets stops at the last row of the sheet. A new sheet has 1,000 rows, so typing D2:D5000 there gives "Invalid range". Scroll to the bottom, type 4000 in the box beside Add (it reads "more rows at the bottom") and click Add, then the range works. We tried this in Sheets with D2:D5000: row 5000 ended up with =B5000*C5000.
No fill handle at all (Excel)
It can be switched off. In Excel for Windows go to File > Options > Advanced and, under Editing options, tick Enable fill handle and cell drag-and-drop (Microsoft's fill handle page). On a Mac it is Excel > Preferences > Edit, then Allow fill handle and cell dragging and dropping (Microsoft's Mac page). Ctrl+D works either way, so you can carry on without it.
Dragging only highlights the cells (Google Sheets)
If you drag and the cells just turn blue with nothing filled in, the drag made your selection bigger instead of filling it. Skip the handle: with the formula cell and the empty cells under it still selected, press Ctrl+D. The shortcut is on Google's list of Sheets shortcuts as Fill down.
Every row shows the same answer (Excel)
You fill the formula down and every row shows 5, the answer from row 2. Click D3: if the formula bar reads =B3*C3, the formula copied fine and Excel has not recalculated. Microsoft's fill down page says formulas will not recalculate when you fill cells if automatic calculation is off.
Turn it back on from the Formulas tab: Calculation Options > Automatic. On a Mac: Excel > Preferences > Calculation, then Automatic. The setting covers every workbook you have open, not just this one.
Copied down, but the answers are wrong
E2 adds the 10% tax from F2:
=D2*(1+F2)E2 shows 5.5, which is right. Copy it down and E3 shows 12, no tax at all. The copy in E3 reads =D3*(1+F3), and F3 is empty. The tax rate has to stay put while the row moves, so lock it with dollar signs:
=D2*(1+$F$2)Fill that down and E3 shows 13.2, E4 shows 8.25. In Excel, click on F2 inside the formula and press F4 to add the dollar signs for you.
It counts 1, 2, 3 instead of copying
Drag a number or a date and Excel may count up instead of copying it. Click the Auto Fill Options button that appears at the corner of the filled cells and choose Copy Cells, which copies the cell "without repeating the series" in Microsoft's words. Choose Fill Series to go back to counting.
Templates with the math already done
Rather skip the formulas? These templates come with every formula built and checked, plus a filled-in sample.
- Invoice Template and TrackerInvoices with a payment tracker for paid and overdue.
- Inventory SpreadsheetStock tracker with a reorder list and a stock in and out log.
- Income and Expense TrackerProfit and loss with a sales tax log.
Teaching this to a class or team?
More how-tos
- Find a price by its code with XLOOKUPType a product code, get its price back from your price list. One formula, no helper columns.
- Total each category with SUMIFSAdd up all the Fuel, all the Office, all the Meals: one formula per category, and more rules when you need them.
- Check two conditions at once with IF and ANDFree shipping only when the order is 50 or more and ships in Canada: one IF, one AND, done.
- Add leading zeros to numbersType 00021 and Excel or Google Sheets shows 21, because to them it is just the number 21. Here is how to get the zeros back, and keep them.
- Fix #DIV/0! in an averageAn average of nothing is a division by zero, so AVERAGE shows #DIV/0! until the first number arrives. One IF fixes it.
- Count rows that meet two conditions with COUNTIFSHow many of Ana's deals were 500 or more? COUNTIFS answers it in one cell, and takes as many rules as you need.
- Calculate percentage changeSales went from 400 to 500. That is a 25% increase, and one short formula works it out for every row.
- Calculate years of service from a start dateAna started on 15 March 2019. How many full years has she worked? DATEDIF counts them, and the same formula works out an age from a date of birth.
- Combine first and last name into one cellFirst names in one column, last names in the next, and you need "Ana Lopez" in one cell. The & sign joins them.
- Find duplicates in a list with COUNTIFA mailing list where some people signed up twice. One formula shows how many times each email appears, so the repeats stand out.
- Split a full name into first and last nameYour list has "Ana Lopez" in one cell and you need Ana and Lopez in two. Two short formulas find the space and split there.
- Total amounts by month with SUMIFSA list of dated expenses and you want one total per month. SUMIFS adds every amount between the first and the last day of the month.
- Count working days between two datesAna is off from 1 Oct to 14 Oct. How many working days is that? NETWORKDAYS counts Monday to Friday and leaves out the weekends.
- Hide #N/A in VLOOKUP with IFERRORYour order list has a code that is not in the price list, and VLOOKUP shows #N/A. IFERROR puts your own words there instead.
- Count cells that contain textA stock list where some items have a note and most do not. One COUNTIF with an asterisk counts the notes and skips the empty cells.
- Make a running total (cumulative sum)Monthly sales in one column, the total so far in the next. One formula, filled down.
- Round to 2 decimal places, up or downA 15% discount turns 12.99 into 11.0415. ROUND makes it 11.04 and keeps your totals right to the cent. ROUNDUP and ROUNDDOWN handle the times when nearest is the wrong answer.
- How long to $1,000,000? FV and NPERPut $500 a month away at an example 7% a year. FV says what it grows to, NPER says when it passes $1,000,000. Two formulas, no calculator site.
- Why your formula gives the wrong number: the order of operationsA2 holds 10 and A3 holds 4. What does =A2-A3*2 give? It is 2, not 12. The same rule explains most formulas that look right and give the wrong number.
- Why your SUM says 0, and how to fix itThe amounts are right there in the column, and the total says 0. They look like numbers, but the sheet has them stored as text, and SUM skips text.
- Calculate hours worked from start and end timesA shift from 9:00 to 17:30 is 8.5 hours, but subtract the times and the cell shows 8:30. One small change turns it into a number you can add up and multiply by a pay rate.
- IF a cell is blank, or not blankYou want a formula to do one thing when a cell is empty and something else when it is filled. Two double quotes do the job, and they also catch the blanks ISBLANK misses.
- Formulas not updating? Recalculate and refreshYou change a number and the total does not move. It is nearly always one of a handful of things, and each one takes seconds to fix once you know which.
- Standard deviation in Excel and Google SheetsTwo shops both average 40 orders a day. One sells 38 to 42 every day; the other swings from 25 to 55. The average cannot tell them apart. The standard deviation can.
- Stack several columns into one column with TOCOLNames in three columns, one for each day, and you need them in one list. One formula does it, and the list keeps up when the columns change.
- Long numbers turn into E+ or end in 0 in ExcelYou type a 12 digit order number and Excel shows 5.93774E+11. You type a 16 digit account number and the last digit turns into 0. The first one is only how the cell looks. The second is a real loss, and it has to be stopped before you type.
- Count how many times each value appears in a columnA staff list with a department on every row, and you need to know how many people are in each department. Two short formulas build the count table, and it keeps up when the list changes.
- Free pricing calculatorsPrice a job from your real costs and margin. No sign up.
- Free downloadsPractice sheets and printable pages, no email and no sign up.







