Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Select All Highlighted Cells: 3 Easy Methods

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To select all highlighted cells in Excel, the fastest method is using the Find and Replace tool to search for a specific format. By searching for the fill color rather than text, Excel can identify every cell with that highlight and select them all simultaneously. This allows you to delete, move, or change the formatting of all colored cells at once without clicking them individually.

What You'll Need

  • A Microsoft Excel workbook containing cells with fill colors (highlights).
  • A desktop version of Excel (Windows or macOS), as the web version has limited formatting search capabilities.

Step-by-Step

Depending on your goal, there are three primary ways to achieve this. Note that menu labels may differ slightly depending on your version of Excel or region.

Method 1: Using Find and Replace (Best for Quick Selection)

  1. Open your Excel sheet and press Ctrl + F (Windows) or Command + F (Mac) to open the Find and Replace dialog box.
  2. Click the Options >> button to expand the search settings.
  3. Click the Format... button located to the right of the "Find what" field. (If you see a dropdown arrow next to Format, select "Choose Format From Cell" and then click a cell that has the highlight color you want to select).
  4. If you chose the standard Format button, go to the Fill tab, select the exact color used in your highlights, and click OK.
  5. Leave the "Find what" text box completely empty.
  6. Click Find All. This will generate a list of every cell that matches that color at the bottom of the window.
  7. Press Ctrl + A (Windows) or Command + A (Mac) while the list of results is active. This will highlight every matching cell in the actual spreadsheet.
  8. Click Close. All highlighted cells remain selected, and you can now apply changes to them.

Method 2: Using Filter by Color (Best for Rows)

  1. Select the header row of your data range.
  2. Go to the Data tab on the Ribbon and click the Filter button.
  3. Click the filter dropdown arrow in the column containing the highlighted cells.
  4. Hover over Filter by Color and select the specific highlight color from the list.
  5. Excel will now hide all rows that do not contain that color. Select the visible cells by clicking and dragging your mouse over them.
  6. To select only the visible cells (and avoid selecting hidden rows), press Alt + ; (semicolon) on Windows.

Method 3: Using VBA (Best for Large Datasets)

  1. Press Alt + F11 to open the Visual Basic for Applications (VBA) editor.
  2. Go to Insert > Module to create a new module.
  3. Copy and paste a script designed to loop through cells and check the Interior.Color property.
  4. Run the macro by pressing F5. This will programmatically select all cells matching a specific color code.

Common Mistakes

  • Searching for Text: Users often type a word into the "Find what" box while also searching for a format. This tells Excel to find cells that have both that text and that color. Leave the text box empty to find all cells of that color regardless of content.
  • Conditional Formatting: The "Find and Replace" method only works for cells where the color was applied manually. If the cells are highlighted via Conditional Formatting rules, the Format search will not find them.
  • Selecting Hidden Cells: When using the Filter method, simply dragging your mouse selects the hidden rows between the visible ones. Always use the "Go To Special" or Alt + ; shortcut to ensure only visible cells are selected.

Tips

  • Choose Format From Cell: Instead of guessing which shade of yellow or blue you used in the Fill tab, use the "Choose Format From Cell" option. This uses a dropper tool to pick the exact color code from your sheet.
  • Naming Ranges: Once you have selected all highlighted cells, you can give them a "Named Range" in the top-left Name Box. This allows you to jump back to those specific cells instantly without repeating the search process.
  • Quick Clear: If your goal is to remove the highlights, once they are selected via Method 1, simply go to the Home tab and select No Fill from the fill color bucket.

Troubleshooting

If the steps above do not work as expected, try these solutions in order:

  • Check for Conditional Formatting: If "Find All" returns no results but you clearly see colors, the colors are likely generated by a rule. Go to Home > Conditional Formatting > Manage Rules to see if rules are active. To select these, you must filter by the logic of the rule (e.g., "cells greater than 100") rather than the color itself.
  • Verify Color Match: Excel treats slightly different shades as different colors. If you have multiple shades of green, the Find tool will only select the one you specifically chose. Use "Choose Format From Cell" to be precise.
  • Restart Excel: If the "Find All" list is not responding or the selection isn't appearing on the sheet, save your work and restart the application to clear the cache.

Frequently Asked Questions

Can I select all highlighted cells regardless of the color?

No, the built-in Find and Replace tool only allows you to search for one specific format at a time. To select all colored cells regardless of hue, you would need to use a VBA macro or a custom User Defined Function (UDF).

Does this work in Excel for the Web?

The "Find by Format" feature is currently not available in the web-based version of Excel. You will need to open the file in the Excel Desktop App to use these specific steps.

How do I select only the cells that are NOT highlighted?

The easiest way is to select the entire sheet (Ctrl + A), then use the Find and Replace method to select all highlighted cells. While they are selected, press Ctrl + I (if available) or use a macro to invert the selection. Alternatively, filter by "No Fill" if using the Filter by Color menu.

Why is the "Format" button greyed out?

This usually happens if you are currently editing a cell (the cursor is blinking inside a cell). Press Enter or Esc to stop editing the cell, and the Format button should become active.

Can I use this to sum only the highlighted cells?

Selecting them is the first step, but Excel does not have a native SUMCOLOR function. After selecting them using the methods above, you can look at the Status Bar at the bottom right of the window to see the "Sum" of the current selection.