+ Reply to Thread
Results 1 to 5 of 5

Conditional formatting based on VLOOKUP & HLOOKUP or MATCH

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Australia
    MS-Off Ver
    365
    Posts
    6

    Conditional formatting based on VLOOKUP & HLOOKUP or MATCH

    Hi all,
    I work in a call center and I'm working on creating an Excel spreadsheet to collate stats.
    I've got the basics worked out and I'm adding in some conditional formatting but I've run into a problem.

    I have 2 sheets, one with stats where I want the colours to appear, and one with targets.
    The targets change based on the skill level of a particular agent and there are different targets for each stat.

    So, I need to have the stats in the table change depending on the skill level and type of stat from sheet 2.

    So far I've come up with these formulas, but neither seem to work.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Can anyone help?
    Stats.xlsxStats.xls

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional formatting based on VLOOKUP & HLOOKUP or MATCH

    the second should work but like this
    =VLOOKUP($B3, Target!$A$2:$J$6,MATCH(G$2, Target!$A$2:$J$2,0),FALSE)
    or
    =INDEX(Target!$A$2:$J$6,MATCH($B3,Target!$A$2:$A$6,0),MATCH($g$2,Target!$A$2:$J$2,0))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    09-27-2012
    Location
    Australia
    MS-Off Ver
    365
    Posts
    6

    Re: Conditional formatting based on VLOOKUP & HLOOKUP or MATCH

    Thanks for the response, neither of the formulas seem to work completely though.
    I keep getting random columns which are all one colour or some that miss colours all together.

    I also fixed what I thought to be a mistake in the second where the second MATCH $G$2 should be G$2 and it's still not working...
    Any other ideas?

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional formatting based on VLOOKUP & HLOOKUP or MATCH

    i havent got 2013 and so i cant ref other sheets without creating named ranges for cf ,but it will be a question of making absolute or relative references where needed
    but
    =$F3>=VLOOKUP($B3, Target!$A$2:$J$6,MATCH($G$2, Target!$A$2:$J$2,0),FALSE)
    Last edited by martindwilson; 09-27-2012 at 07:24 PM.

  5. #5
    Registered User
    Join Date
    09-27-2012
    Location
    Australia
    MS-Off Ver
    365
    Posts
    6

    Re: Conditional formatting based on VLOOKUP & HLOOKUP or MATCH

    I got it...there were a couple of $'s where they shouldn't have been:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Thanks for your help!

+ 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