+ Reply to Thread
Results 1 to 12 of 12

Using a Vlookup function without having to transpose my data

  1. #1
    Registered User
    Join Date
    06-27-2013
    Location
    Nederland
    MS-Off Ver
    Excel 2010
    Posts
    8

    Using a Vlookup function without having to transpose my data

    Sample.xlsx

    Hi everybody,

    I ran into the following problem. The table with all my raw data is vertical (It's a survey, so this has to stay vertical), the Vlookup table is vertical (I could make this horizontal if it would help), but I want the results to come out horizontal so I can use it for the pivot table.

    Now I have to transpose my raw data to a horizontal table before I can use it, because when I drag the formula horizontally, it does not go down vertically in the raw data sheet.

    Is there any way to solve this? It is quite a bore to transpore my raw data sheets. I tried using Hlookup, but my raw data has to stay vertical, so it didn't help

    Thanks,
    Raoel
    Last edited by Raoel05; 06-27-2013 at 09:44 AM.

  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: Using a Vlookup function without having to transpose my data

    Hi,

    I'm afraid that's all very confusing without seeing a sample spreadsheet. Could you possibly attach one illustrating your problem?

    Regards
    Click * below if this answer helped

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

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using a Vlookup function without having to transpose my data

    Quote Originally Posted by XOR LX View Post
    Could you possibly attach one illustrating your problem?
    AND your desired results..

  4. #4
    Registered User
    Join Date
    06-27-2013
    Location
    Nederland
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Using a Vlookup function without having to transpose my data

    Yeah, I made an attachment.

    I want the values of the VLookup translation to go into the yellow boxes

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using a Vlookup function without having to transpose my data

    Try

    =VLOOKUP(INDEX($B:$B,(COLUMNS($A1:A1)-1)+3),$D$3:$E$7,2,)

    Do Not Change the $A1:A1 referece, it's not related to your data.

  6. #6
    Registered User
    Join Date
    06-27-2013
    Location
    Nederland
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Using a Vlookup function without having to transpose my data

    Thanks, Jonmo1

    Could you show it in an attachment? I cant get it running in mine

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using a Vlookup function without having to transpose my data

    You already have the attachment.

    With the file you posted, put the formual I posted in H3 and fill right.

  8. #8
    Registered User
    Join Date
    06-27-2013
    Location
    Nederland
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Using a Vlookup function without having to transpose my data

    Thanks, that did it!

    Great that you guys were patient with, i'm kind of a beginner.

  9. #9
    Registered User
    Join Date
    06-27-2013
    Location
    Nederland
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Using a Vlookup function without having to transpose my data

    But what do the -1 and +3 do? I can't figure out their role

  10. #10
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using a Vlookup function without having to transpose my data

    This COLUMNS($A1:A1) returns the # of columns in the reference (1)
    It will incriment as dragged right, it changes to
    COLUMNS($A1:B1) = 2
    COLUMNS($A1:C1) = 3
    etc.

    The -1 turns COLUMNS($A1:A1)-1 into 0
    The +3 makes it begin in Row#3

    Yes, this would work as well
    COLUMNS($A1:A1)+2

    But I like to turn it back to 0 and add the beginning row #. Seems to make it easier to manage.

  11. #11
    Registered User
    Join Date
    06-28-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Using a Vlookup function without having to transpose my data

    Excel Transposition and Sum via Formulas.xlsxThis seems to be very similar to what I am trying to do, except that I need to match against 2 criteria. i.e. Dates are displayed in 1 column, Departments are displayed in 1 row multiple columns and sometimes duplicated, and values are in each row below the Department row. I want to transpose the data so I have 1 column for the Dates, 1 column for the Departments, and a 3rd column to sum the values. I attached an example of what I'm trying to accomplish. Any ideas for what formula to use to sum the values that match the 2 criteria for Date and Department?

  12. #12
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Using a Vlookup function without having to transpose my data

    Hello and welcome to the forum,

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    New threads not only open you up to all possible participants again, they typically get faster response, too.

    Thanks.

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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