+ Reply to Thread
Results 1 to 3 of 3

Edit Cell Colour if other cell displays specific text

Hybrid View

  1. #1
    Registered User
    Join Date
    12-04-2012
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    15

    Edit Cell Colour if other cell displays specific text

    Hi there.

    I have created a timetable at work. I want employees to be able to click on there name from a data validation list and there name on the timetable highlight green, so it is easy to identify what extra responsibilities they have at what time.

    My drop down box is in cell O32.

    In conditional formatting I am using the formula =ISNUMBER(SEARCH("helen",O32))=TRUE and changing the name in each box as appropriate.

    As the timetable changes week by week what I would like in an ideal world is to have a drop down box of 20 or so names and depending on which name I select the conditional formatting to search the document for that name and highlight the cell green.

    This way I don't have to manually change the formulas each week.

    So I select the name "Paul" from the list in cell O32 and it searches the sheet for "Paul" and highlights any cell with that text.

    Hope that makes sense.

    Neil.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Edit Cell Colour if other cell displays specific text

    I would think the CF formula would be something like this:

    1) If the range of cells with people's names were A1:M100, highlight those cells
    2) Apply this CF formula:

    =A1=$O$32


    If you can't adapt that to work in your actual workbook, attach it here.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Edit Cell Colour if other cell displays specific text

    Change your conditional formatting formula to:

    Formula: copy to clipboard
    =ISNUMBER(SEARCH($O$32,B2))=TRUE


    For example, the above formula works for cell B2 - leave this reference relative, and copy the conditional formatting to the full range where you need it.

    Edit: see attachment for an example.
    Attached Files Attached Files
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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] When one cell equals value of another cell, then third cell displays text of fourth cell?
    By spookymyo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2021, 02:12 PM
  2. Macro to edit variable text in a specific cell
    By westic in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-01-2013, 10:19 AM
  3. [SOLVED] Creating a colour code that displays in a specific % cell based upon figures entered
    By 'MMSA_MAX in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-01-2012, 08:10 AM
  4. [SOLVED] Macro to change text colour of adjacent cell to the same text colour as target cell
    By kayoke in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-28-2012, 04:18 AM
  5. Edit bar displays data different from table cell
    By Scott B in forum Excel General
    Replies: 5
    Last Post: 06-17-2006, 08:10 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