+ Reply to Thread
Results 1 to 5 of 5

Getting all the combinations of 2 items from 1 list and adding them together

  1. #1
    Registered User
    Join Date
    08-14-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Getting all the combinations of 2 items from 1 list and adding them together

    If I have a list of data in a single column, e.g. A1, A2, A3,....An etc how can I get, and then add up all the possible combinations of those cells with 2 elements. E.g. I want to do A1 + A2, A1 + A3, ... A1+An, A2 + A3, A2 + A4, ... A2 + An, ........................... An-1 + An

    At the moment I have a list of 45 items I'd like to do this for and I know there are 990 combinations so it's not something I want to do manually. Also I'd like to be able to extend the method to more than just combinations of 2 later on

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Getting all the combinations of 2 items from 1 list and adding them together

    Can you post a sample workbook?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Getting all the combinations of 2 items from 1 list and adding them together

    whoops, incorrect.

    Sample data set would be ideal.

  4. #4
    Registered User
    Join Date
    08-14-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Getting all the combinations of 2 items from 1 list and adding them together

    Quote Originally Posted by mikeTRON View Post
    Can you post a sample workbook?

    If you look at sheet 1 in the attached file I have begun the process in column i, working on the entries in column c...
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: Getting all the combinations of 2 items from 1 list and adding them together

    Hi,

    Please see attached - is this what you are after ?

    Regards

    peterrc
    Attached Files Attached Files

+ 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. list of items- that requires adding to a colomn on a worksheet but with spaces
    By Tradesman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-19-2012, 01:09 PM
  2. Replies: 1
    Last Post: 07-11-2012, 01:17 PM
  3. Adding Items To A List Box
    By LoveCandle in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-03-2009, 04:27 AM
  4. Adding items to Dynamic list to Combobox
    By excelkeechak in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2009, 10:20 PM
  5. Macro for adding new items to list
    By SanctifiedRock in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-16-2006, 02:02 PM

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