Sub topic 13
AutoComplete and the fill handle
This chapter assumes you can select cells, type and commit entries with Enter, Tab and Esc, and know that Excel decides whether an entry is text, a number, a date or a formula. It covers two features that cut typing: AutoComplete, which suggests text as you type, and the fill handle, which copies or extends cell contents by dragging.
AutoComplete: suggestions while you type
AutoComplete watches what you type in a column. When the first letters match an earlier entry in the same column, Excel shows the rest of that entry as gray, highlighted text inside the cell. You can accept or ignore it.
- Press Enter or Tab to accept the suggestion. The cell receives the full suggested text.
- Keep typing to ignore it. The suggestion updates or disappears as your letters stop matching.
- Press Delete or Backspace to remove the suggested part and keep only what you typed.
Suppose column A already holds North, Northeast and South. You type No in the next cell. Excel has two matches, so it waits. When you type Nor, it still has two matches. It offers a completion only when the typed letters identify one entry, so you must type Northe before it offers Northeast. If you want North and press Enter after typing North, you get North, because the typed text matches an existing entry exactly.
Rules and limits
AutoComplete has several conditions that surprise people.
- It works only for text. Numbers, dates and formulas are not suggested.
- It looks only at the same column, and only at the contiguous block of entries around the cell. A blank cell breaks the block, so entries above a gap are not used.
- It is not case sensitive when matching, but it adjusts your capitalization to match the existing entry. If
Appleexists and you typeappleand accept the suggestion, you getApple. - It can cause unwanted completions. If you want
EasternbutEastern Europeexists, typingEasternand pressing Enter keepsEastern, since your text is already an exact match. The problem appears when you type a prefix that matches only one longer entry, for exampleEa, and press Enter by habit. You then getEastern Europe.
To turn it off, open File > Options > Advanced and clear Enable AutoComplete for cell values. Turn it off if you often enter short codes that are prefixes of longer ones.
Pick from a drop-down list
If you would rather choose than type, right-click the empty cell below a column of entries and choose Pick From Drop-down List. Alt+Down Arrow does the same. Excel lists the unique text entries from the column in alphabetical order. This is a quick way to avoid spelling variants, but it is not a restriction. You can still type something else. Chapter 16 covers data validation, which does restrict entries.
The fill handle
The fill handle is the small square at the bottom-right corner of the selected cell or range. When the pointer is over it, the pointer changes to a thin black cross. Dragging the handle fills the cells you pass over. What goes into those cells depends on what you selected.
| Selection | Drag result |
|---|---|
| One text cell, such as `Report` | Copies the text |
| One number, such as `5` | Copies the number |
| One date or a weekday name | Extends the series by one day each step |
| Text ending in a number, such as `Item 1` | Extends the number: `Item 2`, `Item 3` |
| Two numbers, such as `10` and `20` | Continues the step: `30`, `40` |
| A formula | Copies the formula and adjusts relative references |
A single number is copied, not counted. This is a common surprise. To count up from one number, hold Ctrl while dragging, which reverses the default for a single number. Alternatively, enter two cells with the step you want, select both, and drag.
Lists Excel knows
Excel has built-in custom lists: month names, abbreviated months, weekday names and abbreviated weekdays. Type Mon in one cell and drag, and you get Tue, Wed, Thu and so on, wrapping back to Mon after Sun. You can define your own list under File > Options > Advanced > General > Edit Custom Lists, for example Low, Medium, High.
Dragging in different directions
You can drag down, up, left or right. Dragging up or left runs the series backward when it is a series. Dragging back toward the starting cell, while still holding the mouse button, shrinks the filled area. If you drag back to inside the original selection, the cells you leave behind are cleared. Dragging with a single cell selected over cells that already contain data overwrites them without a prompt, but Undo restores them.
Double-click to fill down
Double-clicking the fill handle fills down as far as the data in the neighboring column goes. If column A has 200 filled rows and you enter a formula in B2, double-click the handle of B2 and Excel fills B3 to B201, matching the length of column A. Two edge cases matter:
- Excel decides the length from the adjacent column. If that column has a blank cell partway down, the fill stops at the gap.
- If there is no data directly to the left or right, double-clicking does nothing.
The Auto Fill Options button
After a fill, a small button appears at the bottom-right of the filled area. Click it to change what the fill did, without redoing it. The choices vary with the data.
- Copy Cells: repeat the original content with no series.
- Fill Series: extend a pattern.
- Fill Formatting Only: copy the look, not the contents.
- Fill Without Formatting: copy contents, but keep each target cell's existing format.
- Fill Days, Fill Weekdays, Fill Months, Fill Years: appear when the source is a date, so you can pick which part increases.
- Flash Fill: covered in the next chapter.
The button disappears as soon as you do something else, so decide right after the fill.
Right-drag for a menu
If you hold the right mouse button while dragging the handle, Excel shows a menu when you release. It offers the same options plus Series..., which opens a dialog for linear and growth series, with a step value and stop value.
Select A1 containing 1
Home > Fill > Series...
Series in: Columns
Type: Growth
Step value: 2
Stop value: 100
Result: 1, 2, 4, 8, 16, 32, 64The stop value of 100 means Excel stops before it passes 100, so the last value is 64.
Fill commands without the mouse
The mouse is not required. Select a range that includes the source cell, then use:
- Ctrl+D fills down from the top cell of the selection.
- Ctrl+R fills right from the leftmost cell of the selection.
These always copy. They do not extend series. If you select A1:A10 with a value in A1 only, Ctrl+D copies A1 into A2:A10.
The Home > Fill menu also has Up and Left, which copy from the bottom cell upward or from the rightmost cell leftward.
Fill and formulas
Filling a formula adjusts relative references. Say C2 contains this formula:
=A2*B2Dragging the handle down one row gives =A3*B3 in C3. The references moved by the same offset as the fill. An absolute reference, such as $B$1, does not move. Chapter on formulas covers these in depth, but the effect during fill is the main reason to learn the handle.
If the fill uses a date or a number inside a formula, only the references change. The constants stay the same.
Filling that changes formats
By default a fill copies the source format along with the content. If the source has a border or fill color, every filled cell receives it. When that is not what you want, use Fill Without Formatting from the Auto Fill Options button.
Settings and common problems
| Problem | Likely cause | Fix |
|---|---|---|
| No fill handle appears | The option is off | File > Options > Advanced > select **Enable fill handle and cell drag-and-drop** |
| A number copies instead of counting | A single number is selected | Hold Ctrl while dragging, or select two cells first |
| Dates copy instead of advancing | You used Ctrl while dragging | Release Ctrl, or choose Fill Days from the options button |
| A fill overwrote data silently | **Alert before overwriting cells** is off | Press Ctrl+Z, and turn the alert on in the same Advanced page |
| Double-click fills too few rows | Blank cell in the adjacent column | Fill the gap, or drag manually |
| Text in a code column changes | AutoComplete completed it | Press Delete after typing to remove the suggestion, or turn AutoComplete off |
Note that Ctrl behaves differently by source. For a date or a text-and-number series, holding Ctrl turns the series into a copy. For a single plain number, it turns a copy into a series.
A worked sequence
This sequence combines the pieces. You want a table of 12 monthly rows with a running total.
- Type
Janin A2 and drag the handle down 11 rows. A2:A13 now holdsJantoDec. - Type
100in B2 and150in B3. Select both and double-click the handle. Excel fills the column to match column A, continuing the step of 50. - In C2, type
=SUM(B$2:B2). Press Enter. - Select C2 and double-click its handle. The formula becomes
=SUM(B$2:B3)in C3, and so on. The$2keeps the start fixed while the end moves. - If you dislike the added borders from a copied source, open the Auto Fill Options button and choose Fill Without Formatting.
Exercise
Column A holds Red, Green, Red in A1:A3, and you type Gre in A4. What does Excel show, and what happens if you press Enter? What would change if A3 were empty and the entries were in A1:A2?
Show answer
Excel suggests Green, because Gre matches only one entry, and pressing Enter puts Green in A4. If A3 were empty, AutoComplete would still look at the contiguous block directly above A4 only if A4 touches it. With A3 empty, A4 is separated from A1:A2 by a gap, so Excel offers no suggestion and Enter stores Gre.
Exercise
You enter 5 in A1 and drag the fill handle down to A5. You wanted 5, 6, 7, 8, 9. Give two ways to get that result.
Show answer
Undo and drag again while holding Ctrl, or enter 5 in A1 and 6 in A2, select both, and drag the handle down to A9. You can also use the Auto Fill Options button after the first drag and choose Fill Series.
Exercise
B2 contains =A2*10. You select B2:B20 and press Ctrl+D. What does B5 contain, and does Ctrl+D extend a series?
Show answer
B5 contains =A5*10, because the relative reference moves with the row. Ctrl+D never extends a series. It copies the top cell down, adjusting relative references like any copy.