+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting based on partial/specific text to Change formating

  1. #1
    Registered User
    Join Date
    12-30-2018
    Location
    South Africa
    MS-Off Ver
    2016
    Posts
    12

    Conditional Formatting based on partial/specific text to Change formating

    I currently use a basic conditional formatting rule to use different formatting, example.

    Rule: "Format only cells that contain"
    Cell Value: Equal To: ="T1"
    Rules applied to range: =$C$7:$J$29

    Any cell any text with "T1" text is highlighted in Yellow. Previously the text was always the same, either "T1" or "T2" in a separate cell which had it's own rule. However we now have cases where "T1" and "T2" are in the same cell, example "T1, T2", or "K3, P1" so my basic rules no longer work as the combinations can be anything. Previously the combinations were always the same (example: "K2, K3, K5").

    Is there a way to match the rule using Cell Value: "Contains" instead of "Equal to" so I can match based on the just one value and then apply formatting?

    2021-01-23_11-30-59.png

    EXCEL_2021-01-23_11-32-28.png

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Conditional Formatting based on partial/specific text to Change formating

    For Contains ( say "aaaaa")use this for cell K1

    =Isnumber(Search("aaaaa",K1))
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: Conditional Formatting based on partial/specific text to Change formating

    You can use a search
    See attached sheet - with RED for K2 and GREEN K6

    Two Rules in Conditional formatting
    One for RED
    =SEARCH("*K2*",$A1)
    ONE for Green
    =SEARCH("*K6*",$A1)

    And the Cell where you start you selection

    If you attach your spreadsheet as show in the YELLOW BANNER , that would help rather then a image
    Attached Files Attached Files
    Last edited by etaf; 01-23-2021 at 06:50 AM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    12-30-2018
    Location
    South Africa
    MS-Off Ver
    2016
    Posts
    12

    Re: Conditional Formatting based on partial/specific text to Change formating

    Quote Originally Posted by kvsrinivasamurthy View Post
    For Contains ( say "aaaaa")use this for cell K1

    =Isnumber(Search("aaaaa",K1))
    Thanks

    Quote Originally Posted by etaf View Post
    You can use a search
    See attached sheet - with RED for K2 and GREEN K6

    Two Rules in Conditional formatting
    One for RED
    =SEARCH("*K2*",$A1)
    ONE for Green
    =SEARCH("*K6*",$A1)

    And the Cell where you start you selection

    If you attach your spreadsheet as show in the YELLOW BANNER , that would help rather then a image
    Thank You! this one worked for me example=SEARCH("*K2*"|C7)

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Conditional Formatting based on partial/specific text to Change formating

    Ok. If problem solved pl mark the thread solved.

+ 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 HELP to identify specific text, change cell colour & remove date.
    By Redders21 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-25-2020, 12:15 PM
  2. [SOLVED] Conditional Formatting formula with several partial specific texts
    By ExcelDiot in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-10-2019, 02:10 PM
  3. [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
  4. Conditional formatting based on search of partial text column
    By SirBrock in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-12-2015, 09:49 AM
  5. [SOLVED] Conditional formating based on text in 2 columns (but only partial text!)
    By Icehockey44 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-19-2012, 06:26 AM
  6. Conditional formating based on specific text in string in another cell
    By mraheelgujjar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-12-2011, 01:09 PM
  7. Replies: 6
    Last Post: 05-17-2007, 07:08 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