+ Reply to Thread
Results 1 to 8 of 8

Create XY Table from another table

  1. #1
    Registered User
    Join Date
    08-06-2019
    Location
    Karlsruhe, Germany
    MS-Off Ver
    Office 365
    Posts
    24

    Create XY Table from another table

    Hello guys,
    this is my first thread on this site! 

    I am pretty new to MS Excel and currently having a problem with following issue:

    I have a table that looks the following way:
    picture_no1.JPG

    Everything in this table I can edit, Y and X are values between 1 and 5.
    From this table I want to produce a table that looks the following:
    picture_no2.JPG

    When I change something in the first table, I'd like it to automatically change the position in table 2 as well.
    Or in case I add a new person, I'd like that also to pop up in the second table as well.
    Can anybody help me please? I don't even have the slightest idea how to start

    Best regards!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Create XY Table from another table

    Willkommen!

    Will you please attach a small sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment (it hasn't worked for years, and despite our repeatedly asking the technical team who own the forum to fix it, they can't be bothered to do so), so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-06-2019
    Location
    Karlsruhe, Germany
    MS-Off Ver
    Office 365
    Posts
    24

    Re: Create XY Table from another table

    Hello Ali,
    thanks for the quick reply.
    I attached the excel file. The names and data inside are purely fictional and not sensitive.
    Attached Files Attached Files

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,737

    Re: Create XY Table from another table

    Hi,
    Welcome on forum.

    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    1
    Last First Job Y X
    Y/X
    1
    2
    3
    4
    5
    2
    Fisher Alex Doc
    1
    2
    5
    3
    Baker Dave Eng
    3
    3
    4
    Kim, Daniel(Dev)
    4
    Kim Daniel Dev
    4
    5
    3
    Baker, Dave(Eng)
    5
    2
    6
    1
    Fisher, Alex(Doc)


    H
    I
    1
    Y/X
    1
    2
    5
    =TEXTJOIN("",1,IF(($D$2:$D$15=$H2)*($E$2:$E$15=I$1),$A$2:$A$15&", "&$B$2:$B$15&"("&$C$2:$C$15&")",""))


    Formula have to be accept with Ctrl+Shift+Enter (not just enter, {} should appear st start and end), then drag it right/down as needed.
    Attached Files Attached Files
    Last edited by KOKOSEK; 08-06-2019 at 09:07 AM.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  5. #5
    Registered User
    Join Date
    08-06-2019
    Location
    Karlsruhe, Germany
    MS-Off Ver
    Office 365
    Posts
    24

    Re: Create XY Table from another table

    WOW! I am impressed, that was quick and it actually workd!
    Thank you so far.
    But I have two more questions:

    How can I make that work in the same excel file but on a different sheet?

    and

    In case several people have the same Y/X value, how can I make several names in one box be shown on top of each other? Right now it just adds the name together and it looks very confusing.

    Best regards!

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,737

    Re: Create XY Table from another table

    Q1: Inside formula instead of:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    what's refering to range in the same sheet (like Sheet1)
    put:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    what's refering to range on sheet Sheet2 (of course it's example, depends how you named your tabs)

    on your attachment like this:

    Please Login or Register  to view this content.
    It works with the same XY.


    A
    B
    C
    D
    E
    1
    Last Name First Name Job Y X
    2
    Fisher Alex Doctor
    1
    2
    3
    Baker Dave Engineer
    3
    3
    4
    Kim Daniel Developer
    4
    5
    5
    KOKOSEK Poland Contributor
    3
    3
    Sheet: Tabelle1

    additional comma added in formula.
    Excel 2016 (Windows) 32 bit
    D
    4
    =TEXTJOIN("",1,IF((Tabelle1!$D$2:$D$20=$A4)*(Tabelle1!$E$2:$E$20=D$1),Tabelle1!$A$2:$A$20&", "&Tabelle1!$B$2:$B$20&"("&Tabelle1!$C$2:$C$20&"), ",""))

    D
    4
    Baker, Dave(Engineer), KOKOSEK, Poland(Contributor),
    Sheet: Tabelle2
    Last edited by KOKOSEK; 08-06-2019 at 09:50 AM.

  7. #7
    Registered User
    Join Date
    08-06-2019
    Location
    Karlsruhe, Germany
    MS-Off Ver
    Office 365
    Posts
    24

    Re: Create XY Table from another table

    Thanks a lot!! I am working with it.
    Regarding Q2 I will figure out what I might be able to do.
    Thank you KOKOSEK!

  8. #8
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,737

    Re: Create XY Table from another table

    No problem, happy to 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. VBA to create dynamic table/pivot table to auto refresh charts on other sheets
    By jamesbutler2021 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2019, 09:27 AM
  2. Replies: 1
    Last Post: 11-12-2018, 02:46 PM
  3. Replies: 0
    Last Post: 04-06-2017, 02:56 AM
  4. Replies: 6
    Last Post: 01-24-2017, 06:56 PM
  5. Replies: 2
    Last Post: 04-16-2013, 06:17 AM
  6. Create a new table from the main table when user press Enter button
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2010, 05:08 AM
  7. Replies: 3
    Last Post: 04-15-2009, 11:50 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