+ Reply to Thread
Results 1 to 8 of 8

Conditional format portion of text within a cell

  1. #1
    Registered User
    Join Date
    06-13-2011
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    24

    Conditional format portion of text within a cell

    Hello,

    I have a big worksheet with lots of text.

    I'm particularly interested in one keyword "cropspray" which appears in most cells. I want to identify whenever it occurs. However, because it is so frequent, I only want to identify the word itself, and not the whole cell.

    In the attached example I've colored it red manually. I'd like instead to run some code and highlight those words in yellow automatically.

    Grateful for any help.

    Thanks,

    HE
    Attached Files Attached Files
    Last edited by headexperiment; 10-23-2012 at 07:01 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Conditional format portion of text within a cell

    Try this ...
    Please Login or Register  to view this content.
    Call with this ...
    Please Login or Register  to view this content.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Conditional format portion of text within a cell

    Similliar but with Input box:

    Please Login or Register  to view this content.
    However, it works for single cell and still can't figure out why don't work for a range...
    Marcol, maybe you see it...
    Attached Files Attached Files
    Last edited by zbor; 10-23-2012 at 06:42 AM.
    Never use Merged Cells in Excel

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Conditional format portion of text within a cell

    Change this line
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    You'll also have to consider the text formatting i.e. "cropspray" and "Cropspray"

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Conditional format portion of text within a cell

    Thanks...

    Of course, upper/lower case can be applied if needed.
    I've edited my post.

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Conditional format portion of text within a cell

    @ zbor
    I might have missed what you are trying to do

    Try this line instead
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    06-13-2011
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Conditional format portion of text within a cell

    Great. Thanks. Went with this:

    Please Login or Register  to view this content.
    Works a treat (Once I'd figured I had to select the target area first).

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Conditional format portion of text within a cell

    You would need to adopt Lcase function in case you wand to highlight all cases (ab, Ab, aB, AB)...

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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