+ Reply to Thread
Results 1 to 3 of 3

function which will sum up specified number of random cells from group of cells

  1. #1
    Registered User
    Join Date
    12-07-2010
    Location
    bratislava, slovakia
    MS-Off Ver
    Excel 2003
    Posts
    1

    function which will sum up specified number of random cells from group of cells

    Hi, is there an function which will sum up specified number of random cells from group of cells in order to match specific number?

    For example: group of numbers in 5 cells - 1 2 3 4 5 Combine (sum) any TWO to GET value of 5!
    Last edited by tomo; 12-07-2010 at 02:41 PM.

  2. #2
    Registered User
    Join Date
    12-07-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Vlookup function

    This code does the trick;



    Please Login or Register  to view this content.
    Simply put the list of numbers in a column with the amount of combination's you want at the top (0 for all) then the target number below that followed by all of the numbers underneath, then highlight the cells and run the code.
    Last edited by Aliw267; 12-07-2010 at 04:53 PM.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup function

    Aliw267,

    Please note:

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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