+ Reply to Thread
Results 1 to 3 of 3

vlookup help:When I drag the formula

  1. #1
    Registered User
    Join Date
    10-07-2008
    Location
    Grand Cayman
    Posts
    15

    vlookup help:When I drag the formula

    I have my lookup value in column A. The vlookup result in Column B.

    =VLOOKUP(A1,ALL!B2:Y10482,2,FALSE)

    I now want to drag this across to populate and return values up to column Y.

    When I drag the formula or copy it to Column C it does this:

    =VLOOKUP(B1,ALL!C2:Z10482,2,FALSE)

    The lookup value, table array, and column index number have now changed to column B, C:Z, and 2, when I need it to increment like this:

    =VLOOKUP(A1,ALL!B2:Y10482,3,FALSE)

    The only thing I want to change as I paste it into the adjacent field is the col_index_number.

    Is there a way to do this horizontally without manually changing the formula 26 times?
    Last edited by Stretch617; 10-21-2008 at 01:27 PM. Reason: Solution Found!

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284
    =VLOOKUP($A$1,ALL!$B$2:$Y$10482,Column(B2),FALSE)

  3. #3
    Registered User
    Join Date
    10-07-2008
    Location
    Grand Cayman
    Posts
    15

    Fantastic!

    Excellent, thank you. Do the $ signs make the the lookup array constant?

+ 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