+ Reply to Thread
Results 1 to 3 of 3

VLOOKUP With static Table_Array

  1. #1
    Registered User
    Join Date
    08-21-2008
    Location
    Victoville, Ca
    Posts
    1

    VLOOKUP With static Table_Array

    I was wondering if any one knew how to make the Table_array section of a vlookup function static. For example my curect formula looks like this:
    =VLOOKUP(A1,S1:T1000,2)
    Usage - =VLOOKUP(Lookup_value,Table_Array,Col_index_num)

    So, when I use the cell fill feature it is sequencing the numbers for the Lookup_value but also the Table_Array. Is there any way for this table array to stay static?
    Thanks

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    clong, welcome to the forum!

    To change a cell reference from relative to static, add $'s in the cell address, e.g.

    =VLOOKUP(A1,$S$1:$T$1000,2)

    A $ in front of the column letter will freeze the column, while a $ in front of the row number will freeze the row. (In front of both freezes both, making it completely static.)

    Hope that helps!

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    You can use $ signs to "fix" references, e.g.

    =VLOOKUP(A1,$S$1:$T$1000,2)

    or use Insert > Name > define to assign the range S1:T1000 a name, say table, then change formula to

    =VLOOKUP(A1,table,2)

    Note: If you don't use a 4th argument then lookup range [S1:S1000] needs to be sorted ascending and you may get a "closest match". If you only want exact matches then you should use a 4th argument of zero or FALSE, i.e.

    =VLOOKUP(A1,table,2,FALSE)

    Using this version you don't need the lookup range to be sorted

+ 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. vlookup in multiple worksheets
    By gto65l in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2011, 01:04 PM
  2. Vlookup using two columns-needs to match the first two column
    By pduubb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-01-2008, 01:21 PM
  3. presenting array lists returned by VLOOKUP in one cell
    By twelsh37 in forum Excel General
    Replies: 2
    Last Post: 12-05-2007, 01:45 PM
  4. Vlookup with two criteria and if met do a second vlookup
    By markmac234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-24-2007, 06:35 PM
  5. vlookup in second column if first result no good
    By markmac234 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-23-2007, 05:07 PM

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