+ Reply to Thread
Results 1 to 4 of 4

Intersection (set theory)

  1. #1
    Registered User
    Join Date
    06-28-2010
    Location
    Posen, Poland
    MS-Off Ver
    Excel 2000
    Posts
    46

    Intersection (set theory)

    Hi,

    Input I have for example 3 sets of data: A:B, C:D, E:F

    --A-B-C-D-E-F
    1-4-5-4-5-4-8
    2-7-9-1-7-3-6
    3-2-4-2-4-2-4
    and so on...

    output I need the intersection of above 3 sets horizontally

    --A-B
    1-4
    2-2-4

    --edit--

    I have a bit of code, something like:
    Please Login or Register  to view this content.
    but, that's not exactly what I need

    I hope someone can help.

    Regards
    Mark
    Last edited by markos97; 09-04-2012 at 11:55 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,618

    Re: Intersection (set theory)

    --------------------
    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'.
    To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.


    On this page, below the message box, you will find a button labelled 'Manage Attachments'.
    Clicking this button will open a new window for uploading attachments.


    You can upload an attachment either from your computer or from another URL by using the appropriate box on this page.
    Alternatively you can click the Attachment Icon to open this page.


    To upload a file from your computer, click the 'Browse' button and locate the file.


    To upload a file from another URL, enter the full URL for the file in the second box on this page.
    Once you have completed one of the boxes, click 'Upload'.


    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Last edited by Cutter; 09-05-2012 at 03:35 PM. Reason: Removed request to change title
    Ben Van Johnson

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Intersection (set theory)

    In fairness to the OP, Ben, I think the title is crystal clear.

    But I would appreciate if he'd explain the two example results.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    06-28-2010
    Location
    Posen, Poland
    MS-Off Ver
    Excel 2000
    Posts
    46

    Re: Intersection (set theory)

    , ok, - I mean, generate intersection data of all horizontal sets,

    the intersection of my following sets:

    --A-B-C-D-E-F
    1-4-5-4-5-4-8
    2-7-9-1-7-3-6
    3-2-4-2-4-2-4

    {4,5} {4,5} {4,8} is {4}
    {7,9} {1,7} {3,6} not have an intersection of all sets - the same number 7 only in two sets
    {2,4} {2,4} {2,4} is {2,4}

    or something like:

    --A-B-C-D-E-F-G-H-I
    1-4-5-6-1-2-3-4-5-6
    2-3-6-9-3-7-9-3-5-9
    3-2-4-5-2-4-5-2-4-5

    {4,5,6} {1,2,3} {4,5,6} not have an intersection of all 3 sets - the same numbers 4,5,6 only in two sets
    {3,6,9} {3,7,9} {3,5,9} is {3,9}
    {2,4,5} {2,4,5} {2,4,5} is {2,4,5}

    and maybe the last example:

    --A-B-C-D-E-F-G-H
    1-4-7-4-7-4-7-4-7
    2-1-2-4-7-5-6-8-9
    3-5-6-5-9-5-8-5-4

    {4,7} {4,7} {4,7} {4,7} is {4,7}
    {1,2} {4,7} {5,6} {8,9} not have an intersection of all 4 sets
    {5,6} {5,9} {5,8} {5,4} is {5}

    hope so understand

    Mark
    Last edited by markos97; 09-05-2012 at 06:54 AM.

+ 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