+ Reply to Thread
Results 1 to 9 of 9

convert table into three columns

  1. #1
    Registered User
    Join Date
    01-30-2009
    Location
    seattle, wa
    MS-Off Ver
    Excel 2003
    Posts
    8

    convert table into three columns

    I am trying to convert a table into three columns so that I can use the data in a vlookup. Any suggestions would be appreciated.
    Attached Files Attached Files
    Last edited by panamajack; 08-27-2009 at 06:52 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: convert table into two columns

    you can use the table as-is if you wish:
    Please Login or Register  to view this content.
    The formula in C14 is =INDEX($A$2:$M$11, MATCH(A14, $A$2:$A$11, 0), MATCH(B14, $A$2:$M$2, 0) )
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    01-30-2009
    Location
    seattle, wa
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: convert table into two columns

    shg,

    Thanks for replying so quickly, I appreciate it.

    Using the solution you propose, how do I get the data into the cells from A14 and B14? Will I have to populate it manually?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: convert table into two columns

    My point was, unless there is some second purpose to make a linear list, you can use a 2D lookup directly from the existing table.

  5. #5
    Registered User
    Join Date
    01-30-2009
    Location
    seattle, wa
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: convert table into two columns

    I need to use the data in the table to verify that a second list of data is complete, so I think I do need to put the data in the table into a linear list.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: convert table into two columns

    A14: =INDEX($A$3:$A$11, INT( (ROWS(A$14:A14) - 1) / COLUMNS($B$2:$M$2) ) + 1)

    b14: =index($b$2:$m$2, mod(rows(b$14:b14) - 1, columns($b$2:$m$2) ) + 1)

    c14: =index($a$2:$m$11, match(a14, $a$2:$a$11, 0), match(b14, $a$2:$m$2, 0) )
    Last edited by shg; 08-27-2009 at 06:35 PM.

  7. #7
    Registered User
    Join Date
    01-30-2009
    Location
    seattle, wa
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: convert table into two columns

    It looks like you are getting close, but the formula for A14 only results in 9 of each SKU, when there should be 12 since there are 12 potential sizes for each SKU. I have never used arrays before so I don't understand how they work.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: convert table into two columns

    Formula for B14 corrected in prior post.

  9. #9
    Registered User
    Join Date
    01-30-2009
    Location
    seattle, wa
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: convert table into two columns

    Now you've got it! Thanks so much for your help! Looks like I need to read up on arrays, so I can understand how these formulas work!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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