+ Reply to Thread
Results 1 to 7 of 7

A formula that combines a lookup/match with transpose

  1. #1
    Registered User
    Join Date
    02-18-2015
    Location
    Nevada, USA
    MS-Off Ver
    2010
    Posts
    28

    A formula that combines a lookup/match with transpose

    I have a sheet that 8 columns and I need five of them to be transposed in a certain order.

    I could not upload a pic for some reason so here goes

    A B C D E F G H
    1 2 3 4 5 6 7 8

    Is there a way to have it look for columns A, C, D, H, and G in that order and transpose them to look like below

    A 1
    C 3
    D 4
    H 8
    G 7
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: A formula that combines a lookup/match with transpose

    Your current workbook shows (I'm assuming) your desired result of the data. What does your data look like beforehand?
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Registered User
    Join Date
    02-18-2015
    Location
    Nevada, USA
    MS-Off Ver
    2010
    Posts
    28

    Re: A formula that combines a lookup/match with transpose

    I can't get the site to take down the wrong file and add the new one. The example in the first post is as close to it as I can get. The top is what is there now and the bottom is what it needs to look like.

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

    Re: A formula that combines a lookup/match with transpose

    Nevermind, misread post.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: A formula that combines a lookup/match with transpose

    I don't know if you are committed to using LOOKUP / MATCH / TRANSPOSE, but this gets the job done. Reworked workbook is attached. I used the data supplied in your initial post to make the transpositions clearer to see.

    This formula is an array-entered formula that must be committed to the whole pre-selected range at once ..... committed
    by pressing and holding Ctrl + Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    BTW: You can replace the hard coded {1;3;4;8;7} in that formula with a row-wise column of cells containing those designated column numbers. It makes the formula more flexible. For example:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    1
    A B C D E F G H In A5:B12={=IF(ISERROR(INDEX($A$1:$H$2,{1,2},{1;3;4;8;7})),"",INDEX($A$1:$H$2,{1,2},{1;3;4;8;7}))}
    2
    1
    2
    3
    4
    5
    6
    7
    8
    3
    4
    5
    A
    1
    6
    C
    3
    7
    D
    4
    8
    H
    8
    9
    G
    7
    10
    11
    12
    Attached Files Attached Files
    Last edited by FlameRetired; 03-13-2015 at 06:29 PM.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: A formula that combines a lookup/match with transpose

    Here's another. With LOOKUP list in M1:M5.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This is not an array formula.

    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    1
    A B C D E F G H A
    2
    1
    2
    3
    4
    5
    6
    7
    8
    C
    3
    D
    4
    A
    1
    H
    5
    C
    3
    G
    6
    D
    4
    7
    H
    8
    8
    G
    7

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: A formula that combines a lookup/match with transpose

    And here's another non-array formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    with lookup table still in column M.

+ 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. [SOLVED] A formula that combines the following functions: VLOOKUP, IF, AND
    By C_P in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-11-2014, 05:38 AM
  2. [SOLVED] dynamic index match formula to transpose values across rows and then down columns
    By Bananas212 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-30-2014, 03:07 PM
  3. [SOLVED] Looking for a formula that combines two vlookups
    By ensmith in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-24-2013, 12:45 PM
  4. Need a macro that combines LOOKUP and CONCATENATE to describe a calculation
    By ianpwilliams in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-19-2013, 06:11 AM
  5. Replies: 5
    Last Post: 02-24-2011, 11:26 AM

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