+ Reply to Thread
Results 1 to 6 of 6

Conditional format then clear all cells that are un-formatted?

  1. #1
    Registered User
    Join Date
    12-18-2017
    Location
    London
    MS-Off Ver
    2007
    Posts
    26

    Conditional format then clear all cells that are un-formatted?

    Hi there,

    I know how to format cells based on specific text with the conditional formatting tool. What I now want to do is to clear the text from any cells that have not been highlighted using the tool.

    I've tried to find and replace using the format of a cell but it doesn't recognize a fill when you do it via conditional formatting. Any ideas please?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,810

    Re: Conditional format then clear all cells that are un-formatted?

    Do you need to HIDE or DELETE the contents? If the former, you can probably do it with another CF rule. If the latter you will need VBA.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-18-2017
    Location
    London
    MS-Off Ver
    2007
    Posts
    26

    Re: Conditional format then clear all cells that are un-formatted?

    I need to delete the contents please.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,810

    Re: Conditional format then clear all cells that are un-formatted?

    What are the contents? It might be doable with Find & Replace. Can you share some examples?

  5. #5
    Registered User
    Join Date
    12-18-2017
    Location
    London
    MS-Off Ver
    2007
    Posts
    26

    Re: Conditional format then clear all cells that are un-formatted?

    The contents are just words. Example below, I have conditionally formatted every cell that contains the word "and"......now I want to delete the contents of every cell that is not highlighted.

    example01.JPG

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,760

    Re: Conditional format then clear all cells that are un-formatted?

    While this will not delete the cells that do not contain the word 'and', it should produce a range of cells that only contains the word 'and'.
    1) Paste the following formula into cell B29: =IF(ISNUMBER(SEARCH("and",B23)),B23,"")
    2) Drag the fill handle down to cell B33,
    3) While cells B29:B33 are still selected drag the fill handle of cell B33 over to cell G33.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Sum cells formatted by conditional formatting
    By hugowhere in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-14-2016, 11:25 AM
  2. Replies: 1
    Last Post: 01-20-2016, 08:56 AM
  3. Conditional Format a range of cells if active cell is not in the range to be formatted.
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-07-2013, 05:49 AM
  4. [SOLVED] Can't Clear Cell Contents After Conditional Format
    By Speedy1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2012, 07:46 AM
  5. Excel 2007 : counting conditional formatted cells
    By jrafols in forum Excel General
    Replies: 11
    Last Post: 07-02-2012, 10:12 AM
  6. Count Conditional Formatted Cells
    By ClikClak in forum Excel General
    Replies: 10
    Last Post: 03-25-2011, 07:40 AM
  7. Counting conditional formatted cells
    By knapper78 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2009, 08:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1