+ Reply to Thread
Results 1 to 5 of 5

Generate relationships from list

  1. #1
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Generate relationships from list

    Hi,

    This is a bit complicated to me, and I don't know if this is a standard problem in mathematics or other discipline that has a ready-made solution so I thought I would get some advise before embarking on a coding mission that may or may not work.

    The data looks like this:

    Column A
    Group
    A, B
    B, C
    C, D
    A, C
    B, D
    A, D

    In column B, I would like to know the relationship between the individual letters. For example:

    Column A....... Column B
    Group............Relationship
    A, B................1st level
    B, C................1st level
    C, D................1st level
    A, C................2nd level
    B, D................2nd level
    A, D................3rd level

    Graphically it would look something like this:

    Relationships.jpg

    Any thoughts, ideas or suggestions are welcomed.

    Thanks.

    abousetta
    Attached Images Attached Images
    Last edited by abousetta; 03-03-2013 at 11:35 AM. Reason: added another figure
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Generate relationships from list

    With an helptable and VLookup.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Generate relationships from list

    ...and maybe so
    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,589

    Re: Generate relationships from list

    Do you mean like this?
    Please Login or Register  to view this content.
    Or, if you already have data in colA then, with double entry proof.
    Please Login or Register  to view this content.
    Last edited by jindon; 03-03-2013 at 08:33 AM. Reason: fixed typo

  5. #5
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Generate relationships from list

    Thanks everyone. You have helped better understand my problem.

    I changed the layout to be more horizontal and using slightly modified data and model, I was able to adjust the coding that you generously provided.

    The model looks like this:
    Relationships (2).jpg

    The code looks like this:

    Please Login or Register  to view this content.
    and the final filled table looks like this:

    Please Login or Register  to view this content.
    Last edited by abousetta; 03-03-2013 at 12:03 PM. Reason: corrected code

+ 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