+ Reply to Thread
Results 1 to 4 of 4

Generate new table from a current table in excel

  1. #1
    Registered User
    Join Date
    10-05-2016
    Location
    Toronto
    MS-Off Ver
    2016
    Posts
    2

    Post Generate new table from a current table in excel

    Hi, I have a sample table like this:

    ID 1 2 3
    1 0 1 0
    2 1 1 1

    Then I want to generate a new table from that table. It will take the second row (1) then compares with each column (1, 2, 3) then prints the value of the matrix ( 0 - 1 - 0 ). For example:

    Row_ID Column_ID Value
    1 1 0
    1 2 1
    1 3 0
    2 1 1
    2 2 1
    2 3 1


    I'm not sure how or where to start by using formula. Please help. Thanks,
    Last edited by dalenguyen; 10-05-2016 at 02:35 PM.

  2. #2
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Generate new table from a current table in excel

    Hi -

    I would use INDEX/MATCH for this. Assuming your data table is in cells L11:O13, Row_ID starts in cell M4, and Column_ID starts in N4, copy and paste this formula into O4 and copy down:

    =INDEX($L$11:$O$13,MATCH(M4,$L$11:$L$13,0),MATCH(N4,$L$11:$O$11,0))

    Hope this helps.
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  3. #3
    Registered User
    Join Date
    10-05-2016
    Location
    Toronto
    MS-Off Ver
    2016
    Posts
    2

    Re: Generate new table from a current table in excel

    Thank loginjmor. It does help!

  4. #4
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Generate new table from a current table in excel

    Great! Glad I could help!

+ 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: 10-01-2016, 11:55 PM
  2. Generate table based on table in another sheet
    By bakdus94 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-21-2016, 12:14 PM
  3. [SOLVED] How do I get an entry in one table to generate the rows in an additional table?
    By Gavalar in forum Word Formatting & General
    Replies: 4
    Last Post: 04-16-2014, 08:07 PM
  4. [SOLVED] Transfer current row of data (Table) to a new row in a second table on the same sheet
    By jrtraylor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2013, 11:12 PM
  5. Filtering a table based on current cell in another table
    By bobarnett in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-02-2013, 10:44 AM
  6. Using Macro to link sql table to generate Pivot Table
    By Benard in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2008, 06:02 AM
  7. VBA Code for a pivot table to open database and to reference table current page
    By Pete Straman Straman via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-21-2005, 12:06 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