+ Reply to Thread
Results 1 to 5 of 5

Conditional formatting by matching text from a list

  1. #1
    Registered User
    Join Date
    07-09-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Conditional formatting by matching text from a list

    Hi all - another new one from me.

    I have a spreadsheet used for resourcing people on projects. It is currently set up with very basic conditional formatting to colour in a cell when I type in a person's initals - eg. typing 'JG' will turn the cell green.

    I currently have a separate conditional formatting rule for each individual (there are a lot). This makes the spreadsheet a little cumbersome, especially when the rules decide to reset themselves from covering entire columns as was the intention, to duplicating themselves to odd specific ranges (pesky colleagues copying and pasting) and losing my nice 'E:E' ones. This also means the rules need updating every time there is a personnel change.

    The neat solution I would like to implement is to simply have a list of the personnel initals on another tab of the worksheet, and use a formula in the conditional formatting to identify that the initials I have typed into the cell come from the specified range and thus the cell should be green.

    So if the list in column A of this second tab is:
    JG
    KH
    LI

    I would like to be able to type any of these sets of initials into my cell on the first tab and any one of them would turn the cell green.

    Can anyone help with this formula?

    I would also have other ranges that would turn the cells other colours if the relevant text is typed in, so the formula would need to allow for that.

    Cheers,
    James

  2. #2
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: Conditional formatting by matching text from a list

    it may help if you upload an example file

  3. #3
    Registered User
    Join Date
    07-09-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Conditional formatting by matching text from a list

    Example spreadsheet attached!
    J
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Conditional formatting by matching text from a list

    Hello James
    Take a look at the attached reply (CF Example) tab. I've created 6 named ranges (colours) and used the Match function for those which have an exact match and the Countif function with a Wildcard (*) for the cells with variable initials before the dash (/R/D). These functions are all placed within the Conditionl Formatting for the range F8:O24. There are now 6 conditons applied to the range.

    Hope this is what you're looking for.
    DBY
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-09-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Conditional formatting by matching text from a list

    So simple - named ranges! Learn something new every day...

    Thanks very much - worked like a charm!

    Cheers,
    James

+ 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. Conditional formatting list of cells of text
    By skinnyboy77 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2012, 11:31 AM
  2. advanced conditional formatting based on text value list
    By pretzelz in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-11-2011, 02:06 PM
  3. Creating a List from Matching a Conditional List?
    By bizboost in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-27-2010, 11:10 AM
  4. Excel 2007 : matching cells with conditional formatting
    By strokedmaro in forum Excel General
    Replies: 2
    Last Post: 06-20-2010, 06:03 PM
  5. Conditional formatting - multi-item text list
    By String in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-05-2006, 09:10 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