+ Reply to Thread
Results 1 to 7 of 7

auto increment of column index in vlookup

Hybrid View

  1. #1
    Registered User
    Join Date
    03-16-2014
    Location
    gurgaon
    MS-Off Ver
    Excel 2010
    Posts
    4

    auto increment of column index in vlookup

    In the formula,
    =VLOOKUP($A7,References!$A1:$B15,2,FALSE),
    I drag it to the adjacent cell (right ward) and wish to change it to
    =VLOOKUP($A7,References!$A1:$B15,3,FALSE),

    i.e. the column index should increment.
    How can i achieve this?

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: auto increment of column index in vlookup

    Hi and welcome to the forum!

    For a start, I think you need to re-check what you posted, since there are only two columns in A1:B15 so referencing a third would simply result in error!

    Can you clarify?

    Regards
    Click * below if this answer helped

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

  3. #3
    Registered User
    Join Date
    03-16-2014
    Location
    gurgaon
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: auto increment of column index in vlookup

    ya right... let there be 10 columns.. and i wish to increment the column index from 2 to 3....

    i.e.,

    =VLOOKUP($A7,References!$A1:$J15,2,FALSE)

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: auto increment of column index in vlookup

    Ok, so your first formula should be:

    =VLOOKUP($A7,References!$A1:$J15,COLUMNS($A:B),FALSE)

    Regards

  5. #5
    Registered User
    Join Date
    03-16-2014
    Location
    gurgaon
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: auto increment of column index in vlookup

    thanks...i shall try now and get back to u...

  6. #6
    Registered User
    Join Date
    03-16-2014
    Location
    gurgaon
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: auto increment of column index in vlookup

    It worked...and what i have learnt is the usage of =columns() command...

    Thanks..

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: auto increment of column index in vlookup

    You're welcome. Glad to have helped.

    Regards

+ 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. Auto increment column A
    By nikko50 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2014, 12:19 PM
  2. auto increment merged column by 1
    By matrix_xrs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-05-2013, 10:34 AM
  3. Auto increment Rows Number in a column using VB
    By chancw in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-04-2012, 01:28 PM
  4. Automatically increment column number in vlookup.
    By macke in forum Excel General
    Replies: 7
    Last Post: 10-29-2009, 08:38 AM
  5. vlook up increment column number with auto fill
    By martindwilson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2007, 12:37 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