+ Reply to Thread
Results 1 to 6 of 6

vlookup in conditional formatting to to highlight percentage Ranges

  1. #1
    Registered User
    Join Date
    07-23-2013
    Location
    Busan,South Korea
    MS-Off Ver
    Excel 2010
    Posts
    3

    vlookup in conditional formatting to to highlight percentage Ranges

    I am trying to use vlookup to conditional formate a cell based on the vlookup returned percentage value range of a another cell.
    I have the formula=AND(>25%,<=50%),vlookup(a1,g4:g500,2,False) and am getting no results. I have tried variations but none have been successful so far. Any advice?

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: vlookup in conditional formatting to to highlight percentage Ranges

    vlookup(a1,g4:g500,2,False)
    The table_array in the VLOOKUP only has 1 column in it yet you're using 2 as the col_index_num. You either have to use 1 as the col_index_num or expand the table_array to include more columns.

    Based on your formula here's what I think you're trying to do:

    =AND(VLOOKUP>25%,VLOOKUP<=50%)

    Is that close?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    07-23-2013
    Location
    Busan,South Korea
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: vlookup in conditional formatting to to highlight percentage Ranges

    Sorry, I miss typed on the Table_array it should have been ag4:i500.
    I am trying to use vlookup to conditional formate a cell based on the vlookup returned percentage value range of a another cell.
    I have the formula=AND(>25%,<=50%),vlookup(a1,g4:I500,2,False) and am getting no results. I have tried variations but none have been successful so far. Any advice?

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: vlookup in conditional formatting to to highlight percentage Ranges

    Is this what you're trying to do:

    =AND(VLOOKUP(A1,G4:H500,2,0)>25%,VLOOKUP(A1,G4:H500,2,0)<=50%)

  5. #5
    Registered User
    Join Date
    07-23-2013
    Location
    Busan,South Korea
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: vlookup in conditional formatting to to highlight percentage Ranges

    Yes ,that works thanks for the help!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: vlookup in conditional formatting to to highlight percentage Ranges

    You're welcome. Thanks for the feedback!

+ 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. Conditional Formatting Using Ranges - trying to highlight entire row
    By cwise in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2013, 12:09 PM
  2. Conditional formatting percentage
    By philip32686 in forum Excel General
    Replies: 5
    Last Post: 09-19-2011, 09:22 PM
  3. Replies: 2
    Last Post: 08-16-2009, 06:16 PM
  4. Conditional Format:Entry looks to mult. ranges to highlight many cells
    By Mishka1 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-30-2007, 07:24 AM
  5. Conditional Formatting to HIghlight named ranges - error
    By Malte Nuhn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-13-2005, 05:05 AM

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