+ Reply to Thread
Results 1 to 6 of 6

Consolidation of tables

  1. #1
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Consolidation of tables

    Hi,

    I have three tables (1, 2, 3), each with three columns (A, B, C), and need to consolidate those into one table 4 with three columns.

    Table 1
    A: Data
    B: Blank
    C: Blank

    Table 2
    A: Sometimes data, if data in B
    B: Data
    C: Blank


    Table 3
    A: Blank
    B: Sometimes data, if data in C
    C: Data


    Table 4
    A: Data from A in Table 1 and Table 2, sorted in ascending order
    B: Data from B in Table 2 and Table 3, sorted in ascending order
    C: Data from C in Table 3, sorted in ascending order


    Table 1 is really just one column of data (A), but I have added two dummy columns to show how the data fit in with the other tables.
    Table 2 is actually two columns of data (A and mainly B), but I have added dummy column C for clarity.
    Table 3 is actually two columns of data (B and mainly C), but I have added dummy column A for clarity.


    I need a dynamic array formula which can produce the results seen in table 4 of the attached workbook.

    If it is possible to have one formula for each of the columns A, B and C of table 4, that would be great. Otherwise, one formula for all three columns is also fine.

    It would also be good if the data from table 1, 2 and 3 were brought into the formula as individual columns, since the columns A, B and C in these tables won't necessarily be side by side in real use, and also the dummy columns will not be present.

    A key feature of the data is that a single A can point to many Bs which again can point to many Cs (a single C can point to only one B which again can point to only one A).

    Regards,
    Marbleking
    Attached Files Attached Files
    Last edited by Marbleking; 04-14-2021 at 02:57 PM.

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

    Re: Consolidation of tables

    This is really really tough question.

    Please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: Consolidation of tables

    Thank you, Bo_Ry! I can see that the question must have been tough, because the solution is mind-boggling!

    The LET function has yet to arrive in the version of O365 I am using, but it's probably just around the corner. Until then, I'll try to unpack the formula in order to test it more thoroughly. I started doing it, but it quickly mushroomed into a very bulky formula. I'll post back later. Thanks again!

    Best regards,
    Marbleking

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

    Re: Consolidation of tables

    This is the madness formula without LET. 2543 characters in length.


    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Better use Power Query

    Please Login or Register  to view this content.
    Attached Files Attached Files

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

    Re: Consolidation of tables

    New one, Shorter with better logic

    with Let

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    without Let

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: Consolidation of tables

    This is super cool, Bo_Ry!

    I hope your solution will be appreciated by many in addition to myself. Thanks a million!

    Regards,
    Øystein

+ 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. Consolidation of input files/tables (need formula)
    By JPRICH16 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-02-2020, 12:44 PM
  2. Replies: 4
    Last Post: 07-25-2017, 03:49 PM
  3. Consolidation and pivot tables
    By olga6542 in forum Excel General
    Replies: 1
    Last Post: 09-25-2012, 11:55 PM
  4. Replies: 0
    Last Post: 10-27-2010, 12:13 PM
  5. consolidation of tables in excel with text and figures
    By samenvoegen van sheets in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-02-2006, 11:30 AM
  6. [SOLVED] consolidation of tables in excel with text and figures
    By samenvoegen van sheets in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2006, 10:20 AM
  7. consolidation of tables in excel with text and figures
    By samenvoegen van sheets in forum Excel General
    Replies: 0
    Last Post: 02-28-2006, 10:15 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