+ Reply to Thread
Results 1 to 3 of 3

Keeping same table range in auto-populating VLOOKUPs

  1. #1
    Registered User
    Join Date
    04-06-2010
    Location
    Alexandria, VA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Keeping same table range in auto-populating VLOOKUPs

    I'm trying to populate an entire column of a large spreadsheet with a VLOOKUP function that looks similar to this:

    =IF(C5="", "", VLOOKUP(C5,A1:B225,2,FALSE))

    However, when I try to auto-populate the entire column it adds 1 to each value of the table range. So instead of the next row reading as:

    =IF(C6="", "", VLOOKUP(C6,A1:B225,2,FALSE))

    it instead populates as:

    =IF(C6="", "", VLOOKUP(C6,A2:B226,2,FALSE))

    How can I make it retain the same table range and add only 1 to the first row value in the function (C6, C7, C8, etc.)?

    Thanks!
    Last edited by NBVC; 04-06-2010 at 01:02 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Keeping same table range in auto-populating VLOOKUPs

    Try

    =IF(C5="", "", VLOOKUP(C5,A$1:B$225,2,FALSE))

    The $ makes the reference absolute (i.e. it "freezes" the row numbers)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-06-2010
    Location
    Alexandria, VA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Keeping same table range in auto-populating VLOOKUPs

    That did it! I haven't used absolutes in excel in so long that I forgot about the $ symbol.
    Thanks!

+ 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