+ Reply to Thread
Results 1 to 6 of 6

Vlookup column change. columns to rows

  1. #1
    Registered User
    Join Date
    03-31-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    17

    Vlookup column change. columns to rows

    Hi,

    I am looking for a way to move the vlookup along column at a time when i drag the formulae down (not across).
    So basically i have got a table of data and have transposed the headings.
    I want to do a vlookup for the items running down the rows to the table with those headings making up different columns.

    After looking up that row item now in a verticle column, i'd like to find the highest number from that item.

    For the vlookup i used =VLOOKUP($AL$3&$AM$3,$A:$AD,5,0) then i had to change the 5 to a 6, then 7, then 8 and so on manually for each row.
    My formulae to find the highest number for this vlookup item is =large(E:E,1) but i want to find the highest number for each item, so will need to manually change each row formulae to F:F, G:G, H:H. - There must be a way to make the columns change as the formulae is dragged down each row

    Any help is apreciated

    TIA

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

    Re: Vlookup column change. columns to rows

    Try it like this...

    =VLOOKUP($AL$3&$AM$3,$A:$AD,ROWS(A$1:A5),0)

    ROWS(A$1:A5) evaluates to 5

    As you drag copy the formula that will increment like this:

    ROWS(A$1:A5) = 5
    ROWS(A$1:A6) = 6
    ROWS(A$1:A7) = 7
    ROWS(A$1:A8) = 8
    ROWS(A$1:A9) = 9
    etc
    etc
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    03-31-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    17

    Re: Vlookup column change. columns to rows

    Thanks for your reply. Maybe my explanation was bad.

    I would like to show the largest number in AP6 from column E,
    AP7 to show the largest number in column F,
    AP8 to show the largest number in column G...
    But this goes on finding the largest in each column until column AB (which would be in AP29)

    How can i write a formulae in AP6 that does this when i drag it down to AP29

    Many thanks.

  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: Vlookup column change. columns to rows

    Try this...

    Entered in AP6 and copied down as needed:

    =MAX(INDEX(E:AB,0,ROWS(AP$6:AP6)))

  5. #5
    Registered User
    Join Date
    03-31-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    17

    Re: Vlookup column change. columns to rows

    Works a charm.

    Thanks!

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

    Re: Vlookup column change. columns to rows

    You're welcome. Thanks for the feedback!

+ 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. Replies: 3
    Last Post: 07-01-2015, 09:53 PM
  2. Vlookup but change column index number as you drag to next column
    By yankeekid86 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-29-2013, 09:46 AM
  3. [SOLVED] VLOOKUP formula that will relatively adjust rows by a block of 8 rows with absolute column
    By DPKologie in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 09-02-2012, 04:00 AM
  4. Macro for Vlookup copy from one column to next one and change column reference
    By RajivShrivastav in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2010, 06:39 PM
  5. Replies: 0
    Last Post: 07-31-2006, 12:13 PM
  6. Change a Column list into multiple rows & columns
    By angelface in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-27-2006, 09:30 PM
  7. How do change rows to colums AND columns to rows
    By Colleen A in forum Excel General
    Replies: 7
    Last Post: 12-29-2005, 08:45 PM

Tags for this Thread

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