+ Reply to Thread
Results 1 to 4 of 4

Filling in gaps in rows by deducing relationships across table

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

    Filling in gaps in rows by deducing relationships across table

    Hi,

    I have a Table 1 with three columns that is made up of rows containing data in one or more of the columns A, B, C. The data are fragments which may have a relationship to other fragments in the table. 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.

    I have created formulas in cells K14, K15 and K16 (Table 2) that deduces the relationship between the fragments and creates new connections where logically possible. I need help finding a better formula solution that isn't as memory intensive and I am looking for a single dynamic array formula in cell K14 which will spill the results across the three output columns K, L and M.

    The formulas I have found so far are these:

    K14:

    Please Login or Register  to view this content.
    K15:

    Please Login or Register  to view this content.
    K16:

    Please Login or Register  to view this content.
    Please see attached example workbook, if you'd have a look.

    Best regards,
    Marbleking
    Attached Files Attached Files

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

    Re: Filling in gaps in rows by deducing relationships across table

    Hi,

    This one worked to create a three column wide spilled array:

    Please Login or Register  to view this content.
    But I'm sure it is possible to come up with a more efficient dynamic array solution. I have updated the workbook with the new formula if someone would like to have a try.

    Best regards,
    Marbleking
    Attached Files Attached Files

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

    Re: Filling in gaps in rows by deducing relationships across table

    Please try

    =IFERROR(--TEXT(IF(E14:G47,E14:G47,IF(F14:H47=0,E14:G47,CHOOSE({1\2\3},INDEX(E14:E47,MATCH(F14:F47,F14:F47/(E14:E47<>0),)),INDEX(F14:F47,MATCH(G14:G47,G14:G47/(F14:F47<>0),)),G14:G47))),"0;;"),"")
    Attached Files Attached Files

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

    Re: Filling in gaps in rows by deducing relationships across table

    Thanks for the more trimmed solution, Bo_Ry! That worked better.

    Regards,
    Marbleking

+ 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. Filling daily data in gaps
    By Jules1995 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 05-10-2019, 08:32 PM
  2. Insert rows, filling in number gaps
    By mmillertech in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-14-2018, 01:31 PM
  3. [SOLVED] Need Code for Filling gaps in Cells
    By pvsvprasad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2016, 04:30 AM
  4. using text data from one table and filling in the gaps in another.
    By X-tremejoe in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-05-2012, 08:43 AM
  5. Excel Macro - Deducing Correct Rule based on multiple rows of data
    By unkle007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-04-2012, 07:05 AM
  6. Filling in data gaps
    By hoffey in forum Excel General
    Replies: 2
    Last Post: 02-24-2010, 08:07 PM
  7. Filling gaps in non adjacent column
    By Robert Jules in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-01-2005, 11:45 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