+ Reply to Thread
Results 1 to 5 of 5

From Matrix to Single List

  1. #1
    Registered User
    Join Date
    05-07-2011
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Office 365
    Posts
    27

    From Matrix to Single List

    Hi Guys,

    I would like to ask for pointers how to solve this. I have a table is as follows:

    SMALL MEDIUM LARGE x-large
    design a
    design b
    design c
    design d

    Firstly, I would like to convert the products offered from matrix to single list format, that is all the various combinations in one single list: such as this.

    design a - small
    design a - medium
    design a - large
    design a - x-large
    design b - small
    design b - medium
    and so on.

    Afterwards, I would like for the value at each intersection to be copied to the corresponding entry in the single column.


    How do I accomplish this?


    Thank you!
    Henry
    Attached Files Attached Files
    Last edited by gnulab; 12-01-2015 at 10:24 AM. Reason: add file sample

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,940

    Re: From Matrix to Single List

    Attach a sample excel file
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: From Matrix to Single List

    If this is a one off request then I think I'd take a pragmatic approach.
    First copy all the design names and repeatedly paste them to the next blank row in column A for as many times as there are sizes less 1. In this example 4 sizes so copy the names 3 times to A6, A10, A14

    Now copy each of the columns B2:B5, C2:C5, D2:D5..etc to B6, B10, B14

    Finally filter B for blanks and delete these rows.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: From Matrix to Single List

    ...or with 3 formulae:

    Design column:
    =OFFSET($A$2,INT((ROWS($1:1)-1)/4),,,)

    Size column:
    =OFFSET($B$1,,MOD((ROWS($1:1)-1),4),,)

    Values column:
    =OFFSET($B$2,INT((ROWS($1:1)-1)/4),MOD((ROWS($1:1)-1),4),,)

    in all cases, copy down. See attached Excel sheet...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

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

    Re: From Matrix to Single List

    Another way.

    In M6 and filled down until you get blanks ... @ row 929.

    =LOOKUP("zzzzzzzz",CHOOSE({1,2},"",INDEX($C$6:$C$137,CEILING(ROWS($1:1)/COUNTA($E$5:$K$5),1))&"-"&INDEX($E$5:$K$5,MOD(ROWS($1:1),-COUNTA($E$5:$K$5))+COUNTA($E$5:$K$5))))

    In N6 and copied down until you get blanks.

    =IF(ISERROR(INDEX($E$6:$K$137,CEILING(ROWS($1:1)/COUNTA($E$5:$K$5),1),MATCH(RIGHT(M6,3),$E$5:$K$5,0))),"",INDEX($E$6:$K$137,CEILING(ROWS($1:1)/COUNTA($E$5:$K$5),1),MATCH(RIGHT(M6,3),$E$5:$K$5,0)))

    Column Q is your original sample output.
    Attached Files Attached Files
    Dave

+ 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] reformatting matrix into a single column
    By fiddle in forum Excel General
    Replies: 6
    Last Post: 05-27-2014, 01:05 PM
  2. [SOLVED] How to covert lower triangle of a matrix to a single row?
    By mythili1807 in forum Excel General
    Replies: 5
    Last Post: 03-29-2013, 09:25 AM
  3. Matrix to single column
    By chris.veinot in forum Excel General
    Replies: 4
    Last Post: 07-16-2010, 09:10 AM
  4. Convert Matrix to Single Column [ROW by Row]
    By K1bb5 in forum Excel General
    Replies: 2
    Last Post: 07-09-2010, 08:55 AM
  5. Export matrix to single text
    By Kb24 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-05-2009, 01:27 PM
  6. Converting a matrix into a single column
    By dthan in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-21-2008, 05:56 PM
  7. [SOLVED] Matrix to single column
    By RD Wirr in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-04-2006, 05:10 PM

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