+ Reply to Thread
Results 1 to 4 of 4

How to substract values in one column from another in every possible combination?

  1. #1
    Registered User
    Join Date
    12-03-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    2

    Red face How to substract values in one column from another in every possible combination?

    Hi everyone!

    I'm pretty new here and I have a problem that I need to solve... I'm not really good with Excel (2007), which means that the first time I have read the word 'macro' was 2 day ago when I began searcing for a solution for my problem.

    So, basically I need a macro that can substract every value in a column from every value in another column in all possible combinations. For example:

    A column

    1
    2
    3

    B column

    4
    5
    6

    C column

    (A-B in every combination)

    1-4 = -3
    1-5 = -4
    1-6 = -5
    2-4 = -2
    2-5 = -3
    2-6 = -4
    3-4 = -1
    3-5 = -2
    3-6 = -3

    Of course C column is only showing -3, -4, -1, etc... And I have more values than three in each column (from 6-30).

    I would really appreciate your help. And please explain things to me very simply, I'm not really good with computers.

    Alice

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: How to substract values in one column from another in every possible combination?

    How about:

    Please Login or Register  to view this content.
    Gary's Student

  3. #3
    Registered User
    Join Date
    12-03-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: How to substract values in one column from another in every possible combination?

    Thank YOU very much!!! I think it works!!!

  4. #4
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: How to substract values in one column from another in every possible combination?

    If you have doubts, try it on some simple sample tables

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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