KutoolsforOffice — One Suite. Five Tools. Get More Done.

How to Find and Select All Cells with the Same Color in Excel?

AuthorXiaoyangLast modified

When working with large Excel worksheets, cell colors are often used to highlight key data such as overdue tasks, duplicate values, manually marked records, or category-based information. But once the worksheet becomes crowded, finding or selecting all cells with the same fill color manually can be slow and frustrating.

In this guide, you will learn several effective ways to select cells with a specific color in Excel. We will cover Excel’s built-in Find and Replace feature, a VBA method for automation, and a quicker solution using Kutools for Excel to select cells by color, bold formatting, or other cell formats.

select cells with the same fill color

Why Select Cells by Color in Excel?

Find and Select Cells with a Specific Color in Excel

Frequently Asked Questions (FAQs)

Conclusion


Why Select Cells by Color in Excel?

Selecting cells by color can be useful in many real-world situations. For example, you may need to:

  • find all highlighted cells in a worksheet;
  • review exception data marked with a warning color;
  • copy, delete, or format cells that were manually color-coded;
  • identify all bold or specially formatted cells in a report;
  • manage worksheets where color is used as a visual category marker.

Instead of searching cell by cell, using the right method can help you locate all matching cells much faster.


Method 1: Find and Select Cells with a Specific Color by Find and Replace feature

Excel’s Find and Replace feature can search not only for text and numbers, but also for formatting, including cell fill color. This is one of the easiest built-in methods to select cells with a specific color.

  1. Select the range where you want to search, if you want to search the entire worksheet, you can leave all cells unselected.
  2. Press Ctrl + F to open the Find and Replace dialog box. Then, click Options to expand the advanced search settings.
    open the Find and Replace dialog box
  3. Next to the Format button, click the drop-down arrow. Click Choose Format From Cell option, your mouse pointer will turn into a picker. Click the cell that contains the color you want to search for.
    Click the cell that contains the color you want to search for
  4. Click Find All. Excel will display all matching cells in the result list at the bottom of the dialog box. Click any result, then press Ctrl + A to select all found cells at once.
    press Ctrl + A to select all found cells
Result:
All cells with the matching fill color in the selected range or worksheet will be selected at once, allowing you to quickly copy, paste, format, or further process them as needed.
All cells with the matching fill color are selected
Tip:
The Find and Replace feature allows you to find and select not only cells with a specific fill color, but also cells formatted with bold, italic, and other formatting styles.

Advantages

  • No code required
  • Easy for one-time tasks
  • Works well for manually filled colors

Limitations

  • Not ideal for repeated use
  • Less convenient in very large workbooks
  • May not work reliably with conditional formatting colors

Method 2: Find and Select Cells with a Specific Color by VBA code

If you need to select colored cells regularly, using VBA can save time. With a simple macro, Excel can compare the color of cells in a selected range and automatically select all cells that match a sample cell.

  1. Select the range where you want Excel to look for matching cells.
  2. Press Alt + F11 to open the Microsoft Visual Basic for Applications window.
  3. Click Insert > Module. Copy and paste the above code into the module window.
    Sub SelectCellsWithSameColor()
        Dim sampleCell As Range
        Dim cell As Range
        Dim targetRange As Range
        On Error Resume Next
        Set sampleCell = Application.InputBox("Select a sample cell with the target color:", Type:=8)
        On Error GoTo 0
        If sampleCell Is Nothing Then Exit Sub
        For Each cell In Selection
            If cell.Interior.Color = sampleCell.Interior.Color Then
                If targetRange Is Nothing Then
                    Set targetRange = cell
                Else
                    Set targetRange = Union(targetRange, cell)
                End If
            End If
        Next cell
        If Not targetRange Is Nothing Then
            targetRange.Select
        Else
            MsgBox "No matching cells were found in the selected range."
        End If
    End Sub
  4. Press F5 to run the code. When the prompt box appears, click a sample cell with the target fill color.
    click a sample cell with the target fill color
  5. Click OK button,Excel will automatically select all cells in the chosen range that match the fill color of the sample cell.

Advantages

  • Great for repeated tasks
  • Efficient for large ranges
  • More flexible than manual searching

Limitations

  • Requires macros to be enabled
  • Some users may prefer not to use VBA
  • Not always suitable in restricted work environments

Method 3: Use Kutools for Excel to Select Same Color, Bold, or Other Formatted Cells

If you want a faster and more user-friendly solution, Kutools for Excel provides a practical feature that lets you quickly select cells based on formatting. Instead of manually setting search rules or using VBA, you can select cells with the same fill color, bold formatting, font color, and more in just a few clicks.

This method is especially useful if you often work with formatted worksheets and need a quick way to identify matching cells.

  1. Click Kutools > Find > Super Find, see screenshot:
    click Super Find
  2. In the Super Find pane, please set the options as below:
    1. Click format button button to activate this Cell Format option.
    2. From the Within drop-down list, choose the scope where you want to search. Here, select Active sheet.
    3. Then, from the Type drop-down list, choose the format type you want to find. In this example, select Background color.
      set some options
    4. Click the select button button next to the Value box, and then click a cell that contains the specific background color you want to search for.
    5. Click the Find button to list all cells with that background color.
    6. All matching cells will be displayed in the results list. Then, choose a selection type from the Select by drop-down list, and click Select to select all matched cells at once.
      set some options
Result:
All cells with the same color, bold style, or selected formatting as the sample cell will be selected immediately.

Advantages

  • Much faster for repeated format-based selection.
  • Can compare a wide range of formatting attributes, not just fill color, such as bold, italic, font color, and other cell formats.
  • Easy to use for both beginners and advanced users.
Kutools for Excel

Make Cell Searching Faster with Super Find

Need to find cells by background color, font color, bold, italic, comments, or formulas? Super Find in Kutools for Excel helps you locate and select them in seconds—without complicated steps or VBA.

✅ Find cells by color or format
✅ View results in a clear list
✅ Select matched cells instantly
✅ Works great for large worksheets

Frequently Asked Questions (FAQs)

Q1: Can I select cells with the same font color or bold formatting?

Yes. In addition to fill color, you can also identify cells by other formatting such as font color, bold text, and more. This is especially easy with tools like Kutools for Excel, which support selecting cells based on multiple format types.

Q2: Will these methods work with conditional formatting colors?

Not always. Cells colored by Conditional Formatting may not behave the same way as manually formatted cells. In many cases, it is better to select the cells based on the underlying rule or value instead of the displayed color alone.

Q3: Can I copy or delete the selected colored cells afterward?

Yes. Once the matching cells are selected, you can copy, delete, format, or move them just like any other selected cells in Excel.

Q4: Does selecting cells by color work across multiple sheets?

Yes. Both the Find and Replace feature and Kutools allow you to set the search scope to Workbook, so you can find and select cells with a specific color across the entire workbook.

Q5: Can I use a formula to sum or count cells based on color?

Excel does not have native formulas (like =SUMIF(color)) to calculate based on fill color. Please view this article: Count/sum cells by color (background, font, conditional formatting)


Conclusion

Selecting cells with a specific color in Excel can be very useful when working with highlighted, categorized, or reviewed data. For occasional use, the Find and Replace feature offers a simple built-in solution. If you want more automation, VBA can help you select matching cells quickly in a chosen range. And if you need an easier and more flexible format-based selection tool, Kutools for Excel provides a much faster way to select cells with the same color, bold formatting, or other cell formats.

If your worksheet uses conditional formatting, remember that it is usually better to work with the rule behind the color rather than the displayed color itself. With the right method, you can manage color-coded data more efficiently and avoid wasting time on manual searching.