Delete all non-formatted cells - Excel

Anonymous
2018-07-11T13:26:52+00:00

I want to delete all cells which ARE NOTred in Excel.

I have used conditional formatting to highlight all email addresses in a spreadsheet, I know I can sort each column on cell colour, but this spreadsheet has 41 rows, and I will be building hundreds over the coming months.

Basically only want to keep red cells.

Thanks

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Anonymous
    2018-07-11T14:06:23+00:00

    Hello Chris@_216. I would go to the Data Tab > Turn of Filtering > Use the drop down for the column that has Conditional Formatting applied, and select that color. One screenshot attached.

    0 comments No comments
  2. Anonymous
    2018-07-11T15:42:24+00:00

    How about filter to select all cells which do not contain email addresses then delete the visible rows only?

    Filter on "does not contain" @

    Gord

    0 comments No comments
  3. Anonymous
    2018-07-12T11:11:26+00:00

    The issue is that each column has a different number of email addresses in (all email addresses are red).

    I can sort each column individually as below, but it takes a lot of time. If I filter Column A, it loses email addresses from the rest of the columns.

    If not, can I copy and past search results, I would search for cells containing "@" then copy and paste them.

    Thank you

    0 comments No comments
  4. Anonymous
    2018-07-12T11:28:34+00:00

    You can keep the conditional formatting turned on if you want, but now the issue is the emails go across instead of down. I would add a helper column in Excel. In my example in the screenshot, it is column F. The formula to find email addresses in a row is =COUNTIF(B2:C2,"*"&"@"&"*") I'm looking for the @ symbol in that formula.

    So now you would filter and look for >=1

    1 person found this answer helpful.
    0 comments No comments