+ Reply to Thread
Results 1 to 5 of 5

Numeric Values from one sheet to Highlight cells on another

  1. #1
    Forum Contributor
    Join Date
    07-11-2009
    Location
    NYC,USA
    MS-Off Ver
    Excel 2007
    Posts
    135

    Numeric Values from one sheet to Highlight cells on another

    Hi All,

    I’m trying to assign building and office keys to various personnel, by appointing different classification levels to each set of keys given out. Very similar in the way an administrator would assign permission levels to individuals.

    Question:
    • Is there a way to pick up an array of non-sequential numbers from one sheet (values 1 -36)
    • Find those values which are assigned to columns laid out as a table,
    • Then highlight those found values

    I’ve attached a dummy sheet to illustrate my question.

    I have not attempted coding this because I wouldn’t know where to start.
    Theoretically is this even possible?

    Thanks

    Mark
    Attached Files Attached Files
    Last edited by max57; 02-10-2010 at 05:32 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Numeric Values from one sheet to Highlight cells on another

    Try this. Note typos in worksheets names which I've amended. Also, don't think your example is quite right according to first sheet.
    Please Login or Register  to view this content.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Numeric Values from one sheet to Highlight cells on another

    I think VBA is the way to go but I was just looking at this ... to limit the complexity of the conditional formats you'd have to setup you could use an adjacent matrix, eg:

    Please Login or Register  to view this content.

    You can then setup your 6 formats for 1-6 based on the values of these cells, eg with G4:AP38 highlighted:

    Rule1:
    =AT4=1
    set format for permission 1

    Rule2
    =AT4=2
    set format for permission 2

    Rule3
    =AT4=3
    set format for permission 3

    Rule 4
    =AT4=4
    set format for permission 4

    Rule5
    =AT4=5
    set format for permission 5

    Rule6
    =AT4=6
    set format for permission 6

    Note: this is only possible with formula given use of XL2007 - earlier versions are limited to 3 conditional formats (plus standard) so in this instance would be a necessity.
    Last edited by DonkeyOte; 02-10-2010 at 04:15 PM.

  4. #4
    Forum Contributor
    Join Date
    07-11-2009
    Location
    NYC,USA
    MS-Off Ver
    Excel 2007
    Posts
    135

    Re: Numeric Values from one sheet to Highlight cells on another

    StephenR , DonkeyOte,

    Thanks for the suggestions.
    Looks pretty interesting.
    I'll give it a try and get back to you a little later.

    Much appreciated.

    Mark
    Last edited by max57; 02-10-2010 at 05:34 PM.

  5. #5
    Forum Contributor
    Join Date
    07-11-2009
    Location
    NYC,USA
    MS-Off Ver
    Excel 2007
    Posts
    135

    Thumbs up Re: Numeric Values from one sheet to Highlight cells on another

    StephenR,

    Brilliant!
    I used the VBA code and it works great.
    Donkey Ote, I'll try your suggestion later when I get home.

    Thanks again folks.

    Mark
    Last edited by max57; 02-10-2010 at 05:40 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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