Go To Special in Excel: Select Blanks, Errors and Formulas in Seconds

 

Go To Special in Excel: Select Blanks, Errors and Formulas in Seconds

Go To Special lets you select every cell of a certain type in one go, such as all the blank cells, all the cells showing errors, or all the cells containing formulas. To open it, press Ctrl+G, click the Special button, pick the type of cell you want, and click OK. Excel selects every matching cell in your range at once, and you can then fill, format, copy or delete them together.

A colleague once sent me a customer export with a blank row between every single record. About nine hundred rows, so roughly four hundred and fifty blanks. I scrolled down and deleted them one at a time, right-clicking each blank row and choosing Delete. It took me the better part of half an hour, and when I finished I found I'd missed a few and had to hunt for them. I found out about Go To Special not long after, and the same job now takes about ten seconds. I try not to think about the half hour.

How do I open Go To Special?

There are two ways.

  1. Go to Home > Find & Select > Go To Special, or
  2. Press Ctrl+G (or F5) to open the Go To box, then click Special

On Windows, you can also press Alt+S while the Go To box is open to jump straight to the Special dialog. The shortcuts on a Mac differ, so check Excel's Edit menu if you're using one.

Selecting a range first limits Go To Special to that range. If you only click a single cell, it works across the whole sheet's used area.



What can Go To Special actually select?

The dialog has a long list, but a handful do most of the work.

OptionWhat it selectsTypical use
BlanksEvery empty cell in the rangeFill gaps, delete empty rows
FormulasCells containing formulas (with sub-options for numbers, text, errors)Find errors, protect formulas
ConstantsCells containing typed-in values, not formulasSpot hardcoded numbers
Visible cells onlyOnly the cells not hidden by a filter or hidden rowsCopy filtered data cleanly
Row differencesCells that differ from the first cell in each rowQuickly compare two columns
Data validationCells that have a validation ruleFind cells with dropdowns
Conditional formatsCells with conditional formattingAudit formatting rules

How do I select and fill blank cells?

This one is a lifesaver on exports where a value only appears once per group, leaving blanks underneath, for example a region name that only shows on the first row of each region.

  1. Select the column (or range) that has the blanks
  2. Press Ctrl+G > Special > Blanks > OK
  3. Excel selects every blank cell. Don't click anywhere, or you'll lose the selection
  4. Type = and then press the Up arrow key, which points the formula at the cell above
  5. Hold Ctrl and press Enter

Every selected blank now fills with the value from the cell above it. At this point they're formulas, so copy the whole column and use Paste Special > Values to turn them into plain values. If you've read my post on  "cleaning messy data" , that's the same Paste Special step used for TRIM, and it's worth doing here too so the data doesn't depend on formulas.



How do I delete blank rows safely?

This is the job that cost me half an hour. The quick method is below, followed by the catch.

  1. Select the column that should never be empty, such as Client ID
  2. Press Ctrl+G > Special > Blanks > OK
  3. On the Home tab, choose Delete > Delete Sheet Rows

Excel deletes every row that has a blank in the selected column. The catch is that it deletes the whole row, even if other columns on that row contain data. That's why I select only the single column that tells me a row is genuinely empty, rather than the whole table. If you select the whole table, any row with a single blank cell anywhere gets removed, including rows with real data in other columns.

Two habits that save trouble: save a copy of the file before you start, and glance through the result afterwards to check the row count looks right.

How do I find every error in a sheet?

  1. Press Ctrl+G > Special
  2. Choose Formulas
  3. Untick everything except Errors
  4. Click OK

Excel selects every cell currently showing an error such as #N/A or #REF!. You can then colour them, or step through them with Tab and Enter. If you've read my post on "IFERROR and IFNA", this is a good way to find errors that something like IFERROR may have been hiding, as well as those still visible.

How do I copy only the visible cells after filtering?

When you filter a list and copy it, Excel normally copies only what's visible. But with hidden rows or grouped columns, hidden cells can sneak in. To be sure:

  1. Select the range
  2. Press Ctrl+G > Special > Visible cells only > OK, or use the shortcut Alt+; (semicolon) on Windows
  3. Copy and paste as normal

Only the cells you can actually see are copied, which is exactly what you want when pasting a filtered result into another sheet or an email.

How do I find hardcoded numbers hiding in my formulas?

Select the range, then use Go To Special > Constants and tick just Numbers. This selects every cell where someone typed a number rather than using a formula. In a column that should be all formulas, any selected cell is a number that was typed over a formula, which is a classic source of quiet errors in a model. For a quick check on a report I've inherited, it's one of the first things I do.

For related tips on getting around a sheet quickly, my post on "keyboard shortcuts" covers navigation and selection shortcuts that pair well with Go To Special.

FAQ

Why does Go To Special say "No cells were found"? Because nothing in the selected range matches your choice. For example, choosing Blanks on a range that has no empty cells returns that message. Check that your selection is right and that cells that look blank don't contain a space, which counts as content, not blank.

Do cells with a space count as blank? No. A cell containing just a space looks empty but isn't blank, so Go To Special > Blanks skips it. Clean the data with TRIM first, or use Find and Replace to remove stray spaces.

Can I undo a Go To Special action? The selection itself isn't an action, but anything you then do to the selected cells, like deleting rows or filling values, can be undone with Ctrl+Z straight afterwards.

What's the difference between Go To Special and Find & Replace? Find & Replace searches for specific text or values. Go To Special selects cells by their type, such as blank, formula or error, regardless of what they contain.

Does Go To Special work on a filtered list? Yes, but check what actually gets selected before you delete or fill anything, since results on a filtered list can be surprising. Choosing Visible cells only first, or clearing the filter, takes the guesswork out. If you want to find which cells have dropdowns set up, my post on "Data Validation and dropdown lists" covers building them, and Go To Special > Data validation finds them.

Comments

Popular posts from this blog

How to Record a Macro in Excel (No Coding Needed)

Excel Charts: How to Choose the Right Chart Type

Flash Fill in Excel: How Ctrl+E Splits and Combines Text Automatically