+ Reply to Thread
Results 1 to 10 of 10

Conditional formatting in a text string

  1. #1
    Registered User
    Join Date
    07-30-2015
    Location
    de
    MS-Off Ver
    2007
    Posts
    6

    Conditional formatting in a text string

    Hi all,

    I have a question and i appreciate your time.

    In excel want to use a formula to find a text string duplicate in another cell and have that cell's background change to a different color. Simple so far the second cell with have the item i am looking for plus additional text. I will give an example.

    A1 - a12345 ||B1 - A12345
    A2 - a12345 my name is john ||B2 - a112233
    A3 - A12343 my name is smith ||B3 - a111111
    A4 - A12344 ||B4 - b333344

    So in this example I want to be able to have A1,A2, And B1 change to a blue background

    thank you for your time i am still new at excel.
    Last edited by radagar; 07-30-2015 at 09:21 PM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Conditional formatting in a text string

    • Select A1:B4
    • Home.Conditional_Formatting...New Rule...Use a formula to determine which cells to format
    Formula: =SEARCH("a12345",A1)
    ...Click: Format
    ...Set the fill color
    ...Click: OK...Click: OK

    Note: Do not use dollar signs in the cell reference


    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    07-30-2015
    Location
    de
    MS-Off Ver
    2007
    Posts
    6

    Re: Conditional formatting in a text string

    you sir are a gentleman and a scholar.

    Not only were you quick and very through you solved my issue in one simple answer.

    thank you you are the best!
    Last edited by radagar; 07-30-2015 at 09:51 PM.

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Conditional formatting in a text string

    Glad you got something you can use! and thanks for the kind words

    If that resolves your issue, please take a moment to mark this thread as SOLVED (from the Thread Tools menu)

  5. #5
    Registered User
    Join Date
    07-30-2015
    Location
    de
    MS-Off Ver
    2007
    Posts
    6

    Re: Conditional formatting in a text string

    I should have clerified i need to find a item i copy and paste from a list in column B with a list i coppy and paste in column a and have them turn a diffrent color. This works very well for exact text data but how do i just serch for the value of the cell it see if it matches the value of a list of cells.

    i want to find B1 and i want to look for a match in A1 to A2000 (and the a column will have the item im looking for and text) so B1 to B2000 will be the unknown values i want to find and if found make the cell brown.

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Conditional formatting in a text string

    The formula would be:
    Please Login or Register  to view this content.
    The way conditional formulas work is...
    Zero = FALSE
    All other numeric values = TRUE

    So, you'd select B1:B2000 (with B1 as the active cell
    and set the conditional format formula (above).

    Does that help?

  7. #7
    Registered User
    Join Date
    07-30-2015
    Location
    de
    MS-Off Ver
    2007
    Posts
    6

    Re: Conditional formatting in a text string

    The help is appreciated. I need it to find a alpha numeric string that's random in cell b1 to b2000 and see if it is a duplicate of cell A1 to A2000 that will have the same random alpha numeric string with random text in the same cell. So b1 may be a12345 and A1 may need to be "a12345 this is extra text" or it may be anywhere on column A I need to find the duplicate matchs

  8. #8
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Conditional formatting in a text string

    Try this:
    Please Login or Register  to view this content.
    The asterisks are wildcards, indicating 0 or more characters

  9. #9
    Registered User
    Join Date
    07-30-2015
    Location
    de
    MS-Off Ver
    2007
    Posts
    6

    Re: Conditional formatting in a text string

    I think this may do the trick ty

  10. #10
    Registered User
    Join Date
    07-30-2015
    Location
    de
    MS-Off Ver
    2007
    Posts
    6

    Re: Conditional formatting in a text string

    That did it thank you again!

+ 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. Replace text string in a cell and retain rich text formatting (Excel 2013)
    By CharlieBear in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-15-2015, 04:39 PM
  2. [SOLVED] Conditional formatting to mark cells with on text strnig but lacking another text string
    By KArnoldColumbia in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-14-2013, 04:15 PM
  3. Replies: 1
    Last Post: 08-28-2013, 09:07 AM
  4. [SOLVED] Conditional Formatting for if cell does not contain string.
    By shauncat in forum Excel General
    Replies: 3
    Last Post: 08-20-2012, 02:10 AM
  5. Replies: 3
    Last Post: 11-01-2011, 05:03 PM
  6. [SOLVED] String Comparison & Conditional Formatting
    By Blobbies in forum Excel General
    Replies: 3
    Last Post: 04-18-2006, 02:45 AM
  7. Conditional formatting for lowest number in a string
    By Phil Lewis in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-23-2006, 05:45 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