+ Reply to Thread
Results 1 to 7 of 7

How fill vlookup formula

  1. #1
    Registered User
    Join Date
    10-01-2015
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    2

    How fill vlookup formula

    I've set up a spreadsheet with the data on one sheet, and on another sheet the VLOOKUP formula.
    This is the formula =IF(ISBLANK(A70),"",VLOOKUP(A70,'2015Quotes'!A2:J1000,2,FALSE))
    When I try to fill it across 8 cells, all I want to change is the last number, ie 2 then 3 then 4 etc. But it changes A70 to B70 to C70 and so on. It also changes A2:J1000 to B2:K1000 etc.
    How do I make change the last number only when I drag it across?

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: How fill vlookup formula

    Hi,

    Welcome to the forum.

    Try the following:

    =IF(ISBLANK($A70),"",VLOOKUP($A70,'2015Quotes'!$A$2:$J$1000,COLUMN(B$1),FALSE))

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: How fill vlookup formula

    =IF(ISBLANK($A70),"",VLOOKUP($A70,'2015Quotes'!$A$2:$J$1000,COLUMN(B1),FALSE))
    Please Login or Register  to view this content.
    Try this and copy
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  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: How fill vlookup formula

    Try this...

    =IF($A70="","",VLOOKUP($A70,'2015Quotes'!$A$2:$J$1000,COLUMNS($A1:A1)+1,0))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    10-01-2015
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    2

    Re: How fill vlookup formula

    Brilliant, worked perfectly. You saved me a lot of heartache. Much appreciated.

  6. #6
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: How fill vlookup formula

    You are welcome

    If that takes care of your question, please mark this thread as Solved by selecting Thread Tools --> Mark thread as solved.

    Also, you can directly thank those who have helped you by clicking on the small * (star) icon located in the lower left corner of a post that you have found to be helpful.

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

    Re: How fill vlookup formula

    Using COLUMN(B1) leaves the formula vulnerable to new column insertions.

    Insert a new column A then COLUMN(B1) becomes COLUMN(C1) and the formula no longer returns the data from column 2 of the lookup table.

    Using the COLUMNS( ) function can account for this.

+ 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. Help with Vlookup formula or Other similar to fill data automaticly
    By fleyd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2015, 11:09 AM
  2. vlookup - col_index_num "auto fill" when drag filling formula?
    By nynetguy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2013, 10:24 AM
  3. How do I fill in an entire table with a vlookup type formula?
    By PTS_1234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-25-2013, 07:11 PM
  4. Formula to Automatically Fill Blank With Next fill cell's data?
    By VMoney in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-22-2013, 05:11 PM
  5. [SOLVED] fill column with vlookup formula to other workbook that depends on cell value
    By knick12 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-23-2012, 03:11 AM
  6. Replies: 1
    Last Post: 09-07-2011, 05:57 PM
  7. Auto fill down of vlookup formula
    By mikear82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-08-2009, 11:11 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