+ Reply to Thread
Results 1 to 4 of 4

Highlight the cell based on selected value

  1. #1
    Forum Contributor
    Join Date
    02-03-2009
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    132

    Highlight the cell based on selected value

    In the attached sheet, i am trying to highlight the cells based on the resource

    for ex

    A2..An defines skills
    C1,D1,E1... are weeks
    C2 till G4 are all resources available for that week for that skill set. (these values can extend..)

    in A6 i have projects defined and resource assigned for that particular week.
    My question is that When i place my cursor on C6 i need to highlight values wherver That value exists under skills
    in this case Resource name is AP, so it should highlight C2,E4.

    How can i achieve this , or any other way , all i need is somekind of indication that to know wherever those resources are booked and available
    Thanks in advance
    Attached Files Attached Files

  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: Highlight the cell based on selected value

    You could put a worksheet event macro into the sheet module that keeps redefining a Name Range "Skill" as the text in the active cell.

    Please Login or Register  to view this content.
    Then use conditional formatting in the table C2:G4

    Condition1: Formula Is: =C2=Skill
    Format...pattern...yellow


    So, whenever the active cell has a value in it that matches values in the table, they will light up.
    Attached Files Attached Files
    _________________
    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 Contributor
    Join Date
    02-03-2009
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Highlight the cell based on selected value

    Dear Jb,
    Thanks a ton for your quick response, you made my day
    Well what i really liked was regardless of value existing in the whole workbook i can get the cells highlighted
    Thanks again
    Max
    Last edited by maximpinto; 07-01-2009 at 12:39 AM. Reason: Solved

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

    Re: Highlight the cell based on selected value

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

+ 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