+ Reply to Thread
Results 1 to 6 of 6

Dragging a vlook up across a workbook

  1. #1
    Registered User
    Join Date
    05-28-2010
    Location
    London
    MS-Off Ver
    MS365 (PC) Version 2301
    Posts
    87

    Dragging a vlook up across a workbook

    Is it possible to drag a vlookup from left to right across a workbook so that the formula retains the Lookup_value and table_array but
    allows the Col_index_number to increase

    I seem to be able to copy it but not increase the col index no!

    Thanks in advance for any help

    Paul

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Dragging a vlook up across a workbook

    You can use function Column() as a number of column
    Attached Files Attached Files
    Last edited by tom1977; 12-13-2011 at 09:46 AM.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Dragging a vlook up across a workbook

    You can replace the column index by a formula containing the column() function.

    Say you formula is in col B and you want values from the second column, use COLUMN().
    When dragging across this value will increase

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Dragging a vlook up across a workbook

    More efficient would be to use a MATCH formula in one column to do the lookup once, then refer to that value in several INDEX formulas, which can then easily be filled across.
    Remember what the dormouse said
    Feed your head

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Dragging a vlook up across a workbook

    Hi Paul,

    It depends on the data arrangement as which option is best suited for you.
    To retain the lookup value and table array, you need to put $ sign before and after these references as this will freeze these two things and column index value will be moved as you move.
    You can use Match with Vlookup if you need to assign column index basis on some headers which are arranged differently on source and target data
    You can use count or column indicator with vlookup if you have common heading arrangement.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  6. #6
    Registered User
    Join Date
    05-28-2010
    Location
    London
    MS-Off Ver
    MS365 (PC) Version 2301
    Posts
    87

    Re: Dragging a vlook up across a workbook

    Legends - everyone of you! Thanks as usual

    Paul

+ 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