+ Reply to Thread
Results 1 to 6 of 6

hi, I need to turn a matrix (?) into three columns, example attached

  1. #1
    Registered User
    Join Date
    07-01-2019
    Location
    ButterVille
    MS-Off Ver
    microsoft office 365 ProPlus
    Posts
    13

    Question hi, I need to turn a matrix (?) into three columns, example attached

    hi, I need to turn a matrix(?) into three columns, i know it might seem basic stuff, but i can't get my head around it.
    basically a 3x3 should become 9 lines of details.
    i need a formula that can do that
    example attached -first tab the matrix, then the wished result in tab no 2
    thank you so much,
    Butterlord
    aka
    Pietro
    Attached Files Attached Files
    Last edited by ButterLord; 09-29-2020 at 10:36 AM.

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: hi, I need to turn a matrix (?) into three columns, example attached

    If origin!B3:F7 were named Matrix, then in the results worksheet,

    B2: =INDEX(origin!$B$1:$Z$1,ROUNDUP(ROWS(B$2:B2)/COLUMNS(Matrix),0))
    D2: =INDEX(origin!$A$3:$A$27,1+MOD(ROWS(D$2:D2)-1,ROWS(Matrix)))
    F2: =INDEX(Matrix,1+MOD(ROWS(F$2:F2)-1,COLUMNS(Matrix)),ROUNDUP(ROWS(F$2:F2)/COLUMNS(Matrix),0))

    Select B2:F2 and fill down into B3:F26.

  3. #3
    Registered User
    Join Date
    07-01-2019
    Location
    ButterVille
    MS-Off Ver
    microsoft office 365 ProPlus
    Posts
    13

    Re: hi, I need to turn a matrix (?) into three columns, example attached

    hi hrlngrv, i am doing it wrong, could you please add the excel solution so i can understand it better? thx

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

    Re: hi, I need to turn a matrix (?) into three columns, example attached

    Please try at
    B2
    =INDEX(origin!B1:F1,SEQUENCE(ROWS(origin!B3:F7)*COLUMNS(origin!B3:F7),,,1/ROWS(origin!B3:F7)))

    D2
    =INDEX(origin!A3:A7,MOD(SEQUENCE(ROWS(origin!B3:F7)*COLUMNS(origin!B3:F7))-1,ROWS(origin!B3:F7))+1)

    F2
    =INDEX(origin!B3:F7,MATCH(D2#,origin!A3:A7,),MATCH(B2#,origin!B1:F1,))

    If you subscribe of MS insider, There is new Let Function

    =LET(d,origin!B3:F7,r,ROWS(d),s,SEQUENCE(r*COLUMNS(d))-1,
    CHOOSE({1,2,3,4,5},INDEX(origin!B1:F1,s/r+1),"",INDEX(origin!A3:A7,MOD(s,r)+1),"",INDEX(d,MOD(s,r)+1,s/r+1)))
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor Hydraulics's Avatar
    Join Date
    07-15-2018
    Location
    Udine - Italy
    MS-Off Ver
    Office 365
    Posts
    372

    Re: hi, I need to turn a matrix (?) into three columns, example attached

    Crossposting (italian forum)
    Aim high or don't even try.
    ---------------------------------
    If your question has been answered, don't forget to mark the thread as SOLVED.
    If you find an answer helpful, click on the star icon at the bottom of the post.

  6. #6
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: hi, I need to turn a matrix (?) into three columns, example attached


+ 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. Replies: 5
    Last Post: 03-13-2019, 08:04 PM
  2. Converting 1 set of columns to 2 sets or more: Example Attached
    By corpfinanalyst in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 05-07-2013, 03:50 AM
  3. [SOLVED] Advanced columns to rows with example attached
    By nandaopira in forum Excel - New Users/Basics
    Replies: 12
    Last Post: 03-07-2013, 09:41 AM
  4. Formula to align two columns with nearly similar text and attached numeric columns
    By Benefits Recon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2012, 12:03 AM
  5. Want to add additional columns to attached macro
    By 007juk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-27-2007, 07:46 PM
  6. Want to add additional columns to attached macro please
    By 007juk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2007, 08:08 AM
  7. [SOLVED] How to cenvert columns to lines: See attached !!!
    By mobimus in forum Excel General
    Replies: 0
    Last Post: 12-26-2005, 06:10 AM

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