+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting - highlight a cell containing a specific character within text

  1. #1
    Registered User
    Join Date
    07-25-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    Conditional Formatting - highlight a cell containing a specific character within text

    Hi All

    I have an excel spread sheet & I wish to highlight any cell that contains any of the following characters with in a string of text.
    / \ : * " < > ? |

    Eg. a cell in the spread sheet containing the text "Is this a Question?" would be highlighted.

    I have tried to use - 'Format only cells that contain' > Specific Text > Containing > for each of the characters and this does not work.
    When I do this any cell containing any text is highlighted.

    Any ideas where I am going wrong?

    In addition there is formatting on any cell > 60 characters which turns the cell red and this works fine.
    What would happen if (when I get the problem above resolved), a cell is > than 60 characters & contains a character listed above?
    Does 1 formatting take precedent over another?
    (Not critical to know the answer to the additional question, just curious - as long as it is highlighted one colour or another then no problem.)

    Any suggestions gratefully accepted.

    Paul
    Last edited by PaulKMc; 07-26-2013 at 09:57 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,718

    Re: Conditional Formatting - highlight a cell containing a specific character within text

    You should use a formula to determine the condition, rather than "Containing". Post an example file so we can see how your data is arranged.

    Pete

  3. #3
    Registered User
    Join Date
    07-25-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Conditional Formatting - highlight a cell containing a specific character within text

    Thanks Pete - please find the attachment.
    It is spreadsheet that builds a folder structure from Excel.
    Top level folder column A, sub folder B etc.

    Folders cannot be created if the name contains the characters listed above.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Conditional Formatting - highlight a cell containing a specific character within text

    If column A contains the text, fill column B with =ISNUMBER((FIND("/";A1))
    The result is TRUE of FALSE, which you can use for conditional formatting
    When I say semicolon, u say comma!

+ 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] Conditional Formatting based on partial/specific text to highlight entire row
    By bizdevdfw in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-18-2016, 04:32 PM
  2. Replies: 5
    Last Post: 03-03-2015, 03:20 PM
  3. Conditional Formatting for another cell containing specific text
    By dropanddrive03 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-27-2013, 03:01 AM
  4. Replies: 1
    Last Post: 03-12-2012, 10:33 AM
  5. Conditional Formatting - Highlight Rows if a cell contains text
    By crepe in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 11-13-2007, 08:25 PM

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