+ Reply to Thread
Results 1 to 7 of 7

Find combo of numbers for a specific value

  1. #1
    Registered User
    Join Date
    07-27-2010
    Location
    Lake Charles, Louisiana
    MS-Off Ver
    Excel 2003
    Posts
    7

    Find combo of numbers for a specific value

    I am trying to figure out how to calculate a "Charge" for a lumber mill. The mill cuts 2x4, 2x6, 2x8, 2x10, and 2x12's lumber in lengths of 8-10-12-14-16-18-20-22-24 feet. A "Charge" must be 96' in length and contain only one width of lumber such as 2x6's, etc...One day they will dry 2x6's and the next day they may dry 2x12's just depending on how many "stacks" of lumber is in the yard inventory.

    This link, http://http://www.excelforum.com/exc...fic-value.html has a formula very close to what I am looking for. Thank You very much for any help.

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

    Re: Find combo of numbers for a specific value

    I don't see how your question relates to the other thread -- actualy, I don't understand your question at all. Could you explain further?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-27-2010
    Location
    Lake Charles, Louisiana
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Find combo of numbers for a specific value

    Sorry I didn't explain it very well. The attached formula is close to what I'm looking for but instead of 5 numbers I have 9:

    8-10-12-14-16-18-20-22-24

    My sum to find (specific value) is 96. Hope this explains it better. Thank You.
    Attached Files Attached Files

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

    Re: Find combo of numbers for a specific value

    If you're comfortable using an add-in, try this.

    1. Unzip and save the attachment someplace where you can find it.

    2. Do Tools > Add-Ins, browse to the folder, and select the file, i.e., CombinationSums.xla

    3. Do Alt+F8 to bring up the macro dialog, paste ShowCSForm in the Macro name box, click Options, and assign the shortcut Ctrl+Shift+S (you only need to do this once).

    4. Do Ctrl+Shift+S and follow instructions when the form pops up.
    Attached Files Attached Files
    Last edited by shg; 07-28-2010 at 12:03 PM.

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Find combo of numbers for a specific value

    Try this appended workbook.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-27-2010
    Location
    Lake Charles, Louisiana
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Find combo of numbers for a specific value

    Thanks to both of you. I will try them both. Off to work for a couple of days now. Thank You again.

  7. #7
    Registered User
    Join Date
    07-27-2010
    Location
    Lake Charles, Louisiana
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Find combo of numbers for a specific value

    The add-in works beautifully. Thank You very much for that. I have attached an example inventory sheet from the Sawmill. Any additional help in automating the process will be appreciated.
    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)

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