+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Conditional formatting for greater than Vlookup result?

  1. #1
    Forum Contributor
    Join Date
    08-04-2010
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    110

    Conditional formatting for greater than Vlookup result?

    Is it possible to use a greater than vlookup formula in conditional formatting?
    I have a set of values in column C in sheet 1, that I want conditionally formatted to show whether the figures are higher or lower than their counterparted figures in column C in sheet 2.

    For instance, if client H8765 Has 74,326 on sheet 2, but 75,895 on sheet 1, I want the field on sheet 1 to be coloured green.
    The problem is that the data wont necessarily be on the same row on sheet 2.

    Is there a way to combine the greater than conditional formatting with a Vlookup?
    Last edited by Nikeyg; 03-20-2012 at 09:41 AM.

  2. #2
    Forum Contributor
    Join Date
    05-14-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    187

    Re: Conditional formatting for greater than Vlookup result?

    Hi Nike,

    Please post a sample sheet, It would be quicker that way

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional formatting for greater than Vlookup result?

    Hi

    Let's say, that your Names are in both Sheets, in Column A and your Values in Column C.

    In Sheet 2 , give Names(Insert>Name>Define). Names for A:A and Values for C:C

    Then, in Sheet1, Highlight your range and in Conditional Formatting rules, put this formula.

    =$C1>(INDEX(Values;MATCH($A1;Names)))

    Choose green color and press OK.

    Is it OK, for you?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Contributor
    Join Date
    08-04-2010
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    110

    Re: Conditional formatting for greater than Vlookup result?

    Thanks guys.
    I think I've worked it out:
    I'm using the below code in my Conditional formatting, and it seems to be working ok
    Please Login or Register  to view this content.
    I'll admit though, I'm not the best at conditional formatting. So there may be something I'm missing that may not work. Any suggestions will eb gratefully received.

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional formatting for greater than Vlookup result?

    Is the sample, helps you?
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    08-04-2010
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    110

    Re: Conditional formatting for greater than Vlookup result?

    Thanks Fotis.
    Kudos added.

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional formatting for greater than Vlookup result?

    You are welcome.!

    ...Kudos added.
    What you mean by this??

+ 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