+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting for multiple words

  1. #1
    Registered User
    Join Date
    01-02-2012
    Location
    Dorset, England
    MS-Off Ver
    Excel 2007
    Posts
    24

    Conditional Formatting for multiple words

    Hi There!

    Just a quick one! Any help greatly appreciated. I have a list of place names in a column, several hundred of them, and I want to highlight specific place names a specific colour.

    So the list looks like this:

    Ancona
    Barcelona
    Bari
    Belfast
    Bilbao
    Bremerhaven
    Brest
    Brindisi
    Cadiz
    Cagliari
    Cannes
    Cartagena
    Catania
    Cefalonia
    Civitavecchia
    Cobh
    Constantza
    Copenhagen
    Corfu
    Dublin
    Elsinore
    Flamm
    Gibraltar
    Goteborg
    Gran Canaria
    Greenock
    Hamburg

    And say I wanted to shade the cells containing the names shown below in red:

    Copenhagen
    Corfu
    Dublin
    Elsinore
    Flamm
    Gibraltar
    Goteborg
    Gran Canaria


    Is there a way to tell excel to find any cell that matches any cell in that range and shade it red?

    Many thanks,

    Adam

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Conditional Formatting for multiple words

    Hi

    Try this:

    SEARCH.xlsm

    Regards..
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Conditional Formatting for multiple words

    Hi,

    in the example I'm using conditional format in A1:A27

    This is the formula to activate the red background

    =SUM(COUNTIF(A1,$C$1:$C$8))


    Hope it helps
    Attached Files Attached Files
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional Formatting for multiple words

    ..Or using MATCH function in CF rules

    =match($a1;$c$1:$c$8)
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    01-02-2012
    Location
    Dorset, England
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Conditional Formatting for multiple words

    Thank you all for your rapid responses!

    They all work, I think i'll use conditional formatting as opposed to VBA though, but now I know how to do it in VBA aswell so I thank you none the less!

    You're all so helpful!

    Adam

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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