+ Reply to Thread
Results 1 to 5 of 5

vLookUp and Transpose between different sheets/files based on two values from two columns

  1. #1
    Registered User
    Join Date
    04-13-2020
    Location
    Texas, United States
    MS-Off Ver
    Office 10
    Posts
    5

    vLookUp and Transpose between different sheets/files based on two values from two columns

    Hey everyone,

    I've been having difficulty figuring this out; hoping someone can help.

    Values in column A will be unique in new sheet but Column B can have multiple values for the unique value in A.

    Matching Column A and B, then looking up the data in Column C to transpose in another file/sheet.


    I have the data in this format in one file/sheet.

    Column A Column B Column C
    1 A AN01
    1 A AN02
    1 A AN03
    1 B AN04
    1 B AN05
    1 B AN06
    2 C AN01
    2 C AN02
    2 C AN03
    2 C AN04
    2 C AN05
    2 C AN06
    3 D AN01
    3 D AN02
    3 D AN03
    3 E AN04
    3 E AN05
    3 E AN06

    I want to do a vlookup from another file or sheet and transpose like this


    Column A Column B Column C Column D Column E Column F Column G Column H
    1 A AN01 AN02 AN03
    1 B AN04 AN05 AN06
    2 C AN01 AN02 AN03 AN04 AN05 AN06
    3 D AN01 AN02 AN03
    3 E AN04 AN05 AN06


    Thanks
    Khan
    Last edited by naumanxkhan; 04-13-2020 at 06:24 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 365
    Posts
    19,901

    Re: vLookUp and Transpose between different sheets/files based on two values from two colu

    Using Power Query here is the solution and the Mcode. File attached for your review.

    v E F G H I J K L
    1
    2 Column1 Column2.1 0 1 2 3 4 5
    3 1 A AN01 AN02 AN03
    4 1 B AN04 AN05 AN06
    5 2 C AN01 AN02 AN03 AN04 AN05 AN06
    6 3 D AN01 AN02 AN03
    7 3 E AN04 AN05 AN06
    8

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-13-2020
    Location
    Texas, United States
    MS-Off Ver
    Office 10
    Posts
    5

    Re: vLookUp and Transpose between different sheets/files based on two values from two colu

    That's awesome!

    What if I wanted the results to show on a different sheet?

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 365
    Posts
    19,901

    Re: vLookUp and Transpose between different sheets/files based on two values from two colu

    Simple. When you click on Load and Close you can select where you want the results to go.

  5. #5
    Registered User
    Join Date
    04-13-2020
    Location
    Texas, United States
    MS-Off Ver
    Office 10
    Posts
    5

    Re: vLookUp and Transpose between different sheets/files based on two values from two colu

    Thanks again

+ 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. Transpose web data from horizontal (rows) to vertical (columns) for html files
    By Dahlia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2018, 11:02 AM
  2. Transpose column to rows based on values in two other columns
    By jacobburdis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-11-2017, 01:48 PM
  3. Transpose Columns into Rows based on Unique Identifier for n columns
    By bhavt010785 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-01-2017, 11:55 AM
  4. Replies: 8
    Last Post: 02-03-2015, 03:42 PM
  5. [SOLVED] Transpose tagged files to row-column based documents
    By boomcie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2014, 09:28 AM
  6. Replies: 0
    Last Post: 11-27-2012, 01:43 PM
  7. Vlookup based on values from two columns
    By lamp123 in forum Excel General
    Replies: 4
    Last Post: 06-04-2012, 01:41 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