+ Reply to Thread
Results 1 to 8 of 8

Sum of combinations

  1. #1
    Registered User
    Join Date
    05-21-2014
    Posts
    32

    Sum of combinations

    Hi,

    Please have a look at the attached file. I need the following tasks to be done.
    1. I need an inputbox to ask 'How many combinations' (I would enter '3')
    2. Need an inputbox to get inputs (I may Enter A, C, D)
    3. I need combination and its sum. Please see the attached file.

    Third point is definitely hard for me to done, so I am requesting forum experts to help me on this.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Sum of combinations

    Try this code:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-21-2014
    Posts
    32

    Re: Sum of combinations

    Hi Abdul,
    Thanks.
    It works great however it has few issues
    1. I ran it for the combination A,B and C. Macro places those combinations sum values in the corresponding rows however it also places value zero for the letters not included in the combination. Please see the row 5 in the attached file.
    2. It places sum values even one column has combination letter (A,B,C) and another column has non combination letter (D,E). Please see the row 10 in the attached file.
    Other than everything seems to be fine.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Sum of combinations

    Try Now:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-21-2014
    Posts
    32

    Re: Sum of combinations

    Thanks Abdul.
    First issue is gone but second one still remains. Please see the attached. I ran it for the combination 'C' and 'D'.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Sum of combinations

    change this code

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    05-21-2014
    Posts
    32

    Re: Sum of combinations

    This is what I want. It works great.
    Thanks Abdul

  8. #8
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Sum of combinations

    I'm glad that I was able to help you. Thanks for the rep .

+ 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. [SOLVED] All combinations
    By tsakta13ole in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-30-2016, 02:28 PM
  2. Combinations
    By Prit50 in forum Excel General
    Replies: 5
    Last Post: 12-05-2015, 10:23 AM
  3. How many combinations??
    By itshere in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-24-2015, 12:23 AM
  4. Possible Combinations
    By XGA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2014, 06:41 PM
  5. Finding possible combinations & listing the wanted combinations
    By Zoke in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 07-16-2012, 03:41 PM
  6. getting combinations
    By vecky in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-31-2005, 08:40 PM
  7. Combinations
    By osprey in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM

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