+ Reply to Thread
Results 1 to 7 of 7

Index Match To Return Transposed Array Values

Hybrid View

  1. #1
    Registered User
    Join Date
    03-28-2010
    Location
    New York
    MS-Off Ver
    Office 365
    Posts
    57

    Index Match To Return Transposed Array Values

    Hi Guys,

    Hope all well. Bit of a tricky one today - I have 13 columns (A:M) where A corresponds to a unique ID and Columns B:M correspond to monthly values. ExcelForum 1.PNG

    I'm trying to create a formula that will go through each value in Column A and publish them in a column "O" and then next to them publish in order all of the values in Columns B:M. So essentially, the first value in column A will appear in 12 different rows and next to it the values in columns B:M. Then the formula will jump to the second value in column A, pull all the associated values in Columns B:M and then continue looping through this process.
    ExcelForum 2.PNG

    I know its some combination of index, match with a small but its been a while and I've forgotten how to do this. I have attached an excel which should clarify any questions.

    Thanks SO MUCH!

    Larry

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,744

    Re: Index Match To Return Transposed Array Values

    If you are running Excel 2010 or later this is a simple exercise using Power Query. Highlight column A. Select on the Transform Tab of Power Query the Unpivot Icon and Unpivot other columns. Close and Load.

    If you are running a later version of Excel, please update your profile as it indicates you are using 2007.
    Last edited by alansidman; 05-17-2021 at 10:07 AM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    03-28-2010
    Location
    New York
    MS-Off Ver
    Office 365
    Posts
    57

    Re: Index Match To Return Transposed Array Values

    Thanks Alan. I unfortunately need to do this with formulas.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,879

    Re: Index Match To Return Transposed Array Values

    in O2

    =INDEX($A$2:$A$5,INT((ROWS($1:1)-1)/12)+1)

    in P2

    =INDEX($B$2:$M$5,MATCH($S2,$A$2:$A$5),MOD(ROWS($1:1)-1,12)+1)

  5. #5
    Registered User
    Join Date
    03-28-2010
    Location
    New York
    MS-Off Ver
    Office 365
    Posts
    57

    Re: Index Match To Return Transposed Array Values

    This is perfect! Thank you John!

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,879

    Re: Index Match To Return Transposed Array Values

    You're welcome.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  7. #7
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Index Match To Return Transposed Array Values

    Please try dynamic array

    =CHOOSE({1,2},INDEX(A2:A5,SEQUENCE(COUNTA(B2:M5&1),,,1/COLUMNS(B2:M5))),FILTERXML("<x><m>"&TEXTJOIN("</m><m>",0,B2:M5)&"</m></x>","//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] Index match array return all matching values
    By Lameimpala in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-02-2019, 12:44 PM
  2. [SOLVED] If range contains one of the values in the array, return the index of the array
    By LawCarrot in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-01-2018, 04:12 AM
  3. Replies: 2
    Last Post: 03-15-2017, 08:22 AM
  4. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  5. Index and Match with Transposed Data Sources
    By HangMan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-18-2015, 01:23 PM
  6. [SOLVED] Index/Match to Return 1D array to be used in a sumproduct
    By david0985 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-17-2014, 04:41 PM
  7. Use Index/Match Function to Return Values from an Array
    By 00pumpkin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2013, 02:22 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