+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP: Help Converting Column to Row

  1. #1
    Registered User
    Join Date
    06-12-2019
    Location
    Perth, Australia
    MS-Off Ver
    365
    Posts
    7

    Question VLOOKUP: Help Converting Column to Row

    I'm trying to write function using VLOOKUP which takes the entries in a column of one sheet, and transfers them into the first row of the next sheet. The problem I'm having is when I try drag the function across the row, it matches with the next entry in the row of the first sheet, and if I drag down it recognizes the entry I want, but I need the heading across the row not down the column. Is there a way to do this without remaking my second sheet so that the table is vertical instead of horizontal?

    Sorry if this is hard to understand, I'm pretty new to excel altogether.

    Attached is an example of a table, what I'm trying to get after the VLOOKUP, and what I'm getting currently.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: VLOOKUP: Help Converting Column to Row

    In Sheet3!B1, enter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy across.

    Is that what you wanted?
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: VLOOKUP: Help Converting Column to Row

    Based on your sheet you can use the column() and row() functions to transpose the table to find ID 1 to 5 and the data columns as rows

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    whether you need to use -1 or +1 or other values depends on the starting column of the new table on sheet3. This table starts in B1 so B is column 2 and you and ID1 so need to do -1 to get ID 1.
    for the 2ndd column of the sheet1 you need +1 because row of B1 = 1 and XXX is in the second column on sheet1

    see attachment for result
    Attached Files Attached Files

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: VLOOKUP: Help Converting Column to Row

    If you're trying to transpose the entire table, then Power Query is a good bet. Format your data in Sheet1 as a table, then:

    Please Login or Register  to view this content.

+ 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. Converting Vlookup into index/match
    By Bandito1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-25-2018, 12:51 PM
  2. Converting to numbers in Vlookup formula
    By ttops78 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-10-2016, 06:48 PM
  3. Converting from VLOOKUP to INDEX/MATCH
    By jshaw82 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-29-2014, 03:52 AM
  4. [SOLVED] Converting to SAS EM transactional format (vlookup?)
    By DIDArings in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2014, 01:53 PM
  5. Converting a (single column) range into the column number
    By NukedWhale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2010, 01:29 AM
  6. Converting VLOOKUP formula into VB
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-27-2009, 09:10 PM
  7. Converting Stack Column, to Stacked Column with Line
    By cmcconnehey in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-18-2008, 03:02 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