+ Reply to Thread
Results 1 to 2 of 2

Highlight cells based on text contained in another Sheet

  1. #1
    Registered User
    Join Date
    03-10-2016
    Location
    Cyprus
    MS-Off Ver
    2016
    Posts
    1

    Highlight cells based on text contained in another Sheet

    Hi,

    I have a list of URLS, like www.google.com/test/ in column A , in sheet 2 , column B I have a list of domains, like google.com , yahoo.com. I am trying to highlight cells in column A if any of the text / domains in column B is contained in A.

    I have tried conditional formatting but cannot get it to work.

    Any help ?

    Thanks

    Scott

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Highlight cells based on text contained in another Sheet

    Try this...

    Sheet1:

    A2 = www.google.com/test/
    A3 = www.yahoo.com/test/
    A4 = www.excelforum.com/test/

    Sheet2:

    B2 = yahoo.com
    B3 = google.com

    On Sheet1...

    Select the range A2:A4
    Conditional Formatting
    Use the "Use a formula..." option

    Formula: =LOOKUP(1E100,SEARCH(Sheet2!B$2:B$3,A2))

    Choose the desired format
    OK out
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Replies: 6
    Last Post: 12-28-2021, 12:04 PM
  2. Highlight cells in the first column of each sheet based on a list
    By rafuk73 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-19-2015, 02:54 PM
  3. highlight cells on sheet 1 if the text is also on sheet 2
    By happydaize in forum Excel General
    Replies: 8
    Last Post: 02-18-2014, 10:11 AM
  4. highlight cells in sheet 1 based on cells existing in sheet 2
    By free2rhyme2k in forum Excel General
    Replies: 1
    Last Post: 07-11-2013, 10:08 AM
  5. [SOLVED] Return specific text if a different text is contained anywhere in a range of cells
    By ciayers in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2013, 05:54 PM
  6. [SOLVED] Can not figure out how to color cells based on the text contained in the cell
    By Kjorg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-07-2012, 07:00 PM
  7. Replies: 3
    Last Post: 08-28-2009, 11:16 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