Sub topic 12
Selecting special cells with Go To Special
This chapter assumes you can select ranges with the mouse and keyboard, enter formulas, and copy and paste. You should also know what relative and absolute references are. Go To Special lets you select cells by what they contain or how they behave, instead of by where they sit. You will use it to find blanks, formulas, constants, errors, and visible cells, and then act on all of them at once.
What Go To Special does
Normal selection works by address: you drag across B2:D10 or type the address in the Name Box. Go To Special works by property. You tell Excel "select every cell that holds a formula" or "select every blank cell," and it builds a multi-area selection for you.
Open it in either of these ways:
- Press F5 (or Ctrl+G), then click Special....
- On the Home tab, choose Find & Select, then Go To Special....
The search scope depends on what is selected when you open the dialog:
- If only one cell is selected, Excel searches the whole worksheet.
- If you select a range first, Excel searches only inside that range.
Restricting the scope first is the habit that prevents most surprises. Select the data block, then open Go To Special.
The options you will use most
The dialog lists many options. These are the ones that matter in daily work.
| Option | Selects | Typical use |
|---|---|---|
| Constants | Cells holding typed values, not formulas | Clear inputs but keep formulas |
| Formulas | Cells holding formulas | Lock or format calculated cells |
| Blanks | Empty cells | Fill gaps in a column |
| Visible cells only | Cells not hidden or filtered out | Copy a filtered list |
| Row differences | Cells that differ from the active cell in each row | Spot inconsistent entries |
| Column differences | Cells that differ from the active cell in each column | Same check, by column |
| Current region | The block of data around the active cell | Select a whole table quickly |
| Data validation | Cells with validation rules | Audit input rules |
| Conditional formats | Cells with conditional formatting | Audit formatting rules |
Constants and Formulas each have four sub-checkboxes: Numbers, Text, Logicals, and Errors. By default all four are ticked. Untick the ones you do not want. For example, choose Formulas and leave only Errors ticked to select every formula that currently returns an error such as #DIV/0! or #N/A.
Worked example: clear inputs, keep formulas
Suppose a quote sheet has quantities typed in column B, prices typed in column C, and a total formula in column D. You want to reuse the sheet for a new customer. Deleting the whole block would destroy the formulas. Go To Special solves this.
- Select the data range, for example B2:D20.
- Press F5, then Special....
- Choose Constants and click OK.
- Press Delete.
Only the typed quantities and prices are cleared. The formulas in column D remain and now show zero until you enter new data.
Be aware that Constants also selects text such as labels inside the range. If your range includes headers you want to keep, start the selection below them. You can also untick Text in the dialog so only Numbers are selected.
Worked example: fill blanks from the cell above
A common problem is a report where a category name appears once and the cells below it are empty:
A2: North
A3: (blank)
A4: (blank)
A5: South
A6: (blank)To fill each blank with the value above it:
- Select the column range A2:A6.
- Open Go To Special, choose Blanks, and click OK. The blank cells are selected, and the active cell is the first blank, A3.
- Type
=A2(a reference to the cell above the active cell) and press Ctrl+Enter. Ctrl+Enter enters the same formula in every selected cell, and each reference adjusts relative to its own cell.
Every blank now holds a formula pointing to the cell above it. Because the formulas depend on the cells above, convert them to fixed values so they survive sorting:
- Select A2:A6 again.
- Copy it with Ctrl+C.
- Use Paste Special, then Values, to replace the formulas with their results.
This is a direct use of relative references from the earlier chapters: the same typed formula produces a different reference in each cell, because each one is relative to its own position.
Copying visible cells only
Hidden rows and filtered rows cause a frequent error. When you select a range that contains hidden rows and copy it, Excel can include the hidden data in the paste.
Filtered data is usually handled correctly: with an active AutoFilter, a plain copy of the visible rows pastes only the visible rows. Rows you hid manually, and rows hidden by grouping, are a different case. Those can be copied along with the visible ones, depending on how they were hidden.
The safe approach is to select visible cells explicitly:
- Select the range.
- Open Go To Special and choose Visible cells only, or press Alt+;.
- Copy with Ctrl+C. The marching border now surrounds only the visible segments.
- Click the destination and paste.
You can confirm the selection worked by looking at the row headers. Selected visible cells appear with a white gap where the hidden rows are.
Auditing with differences and precedents
Two options help you check consistency rather than edit.
Row differences compares each cell in the selected range against the active cell in the same row. Suppose you have a row of monthly formulas that should all follow one pattern. Select the range with the first cell active, open Go To Special, and choose Row differences. Cells whose formula pattern differs from the comparison cell are selected, which points you to a hard-coded number or an altered formula.
Column differences works the same way, comparing each cell with the active cell in its column.
The dialog also offers Precedents and Dependents. Precedents selects the cells that the active formula uses. Dependents selects the cells that use the active cell. Each has two modes:
- Direct only selects one level.
- All levels follows the chain all the way through.
Use these before moving or deleting a cell, to see what else would break.
Edge cases and gotchas
- No cells found. If nothing matches, Excel shows the message "No cells were found." The selection stays as it was. This is not an error. It tells you the range has no blanks, no errors, and so on.
- Blanks and empty-looking cells. The Blanks option selects only truly empty cells. A cell that holds a formula returning
"", or one with a single space, is not blank. It will not be selected, and it may appear in the Formulas or Constants selection instead. - Blanks beyond the data. If you select an entire column and choose Blanks, Excel limits the search to the used range. The selection can still be very large, so select only the block you need.
- Numbers stored as text. A number with a leading apostrophe or text format counts as Text under Constants, not Numbers.
- The active cell matters. After Go To Special, only one cell in the selection is the active cell, and typing goes there. Ctrl+Enter writes to all selected cells. A plain Enter writes only to the active cell.
- Undo. Ctrl+Z undoes a Ctrl+Enter fill in one step, which makes it safe to experiment.
Recovering from mistakes
If you deleted the wrong constants, press Ctrl+Z immediately. Undo works on the whole operation. If you have already saved and closed, check the file's version history or an earlier copy. Before running a large Go To Special delete on an important sheet, save a copy first. The cost is a few seconds.
Exercise
A sheet has a column of department names where each name appears once and the cells below it are empty. List the steps and the key combination to fill every blank with the name above it, and say what you should do afterward.
Show answer
Select the column range containing the data. Press F5, choose Special, select Blanks, and click OK. With the first blank active, type = followed by the address of the cell above it (for example =A2 when the first blank is A3) and press Ctrl+Enter so the formula goes into every selected blank. Afterward, copy the range and use Paste Special, Values, to replace the formulas with fixed values so they do not break when the data is sorted.
Exercise
You select B2:D20 and use Go To Special with Constants, then press Delete. Which cells are cleared, and what option would you untick to keep text labels in that range?
Show answer
Every cell in B2:D20 that holds a typed value (numbers, text, logicals, and errors) is cleared, and formula cells are left alone. Untick Text under Constants so text labels are not selected and therefore are not deleted.