+ Reply to Thread
Results 1 to 3 of 3

Backwards goal seek.

  1. #1
    Registered User
    Join Date
    07-07-2006
    Posts
    28

    Backwards goal seek.

    Is there any way to have excel look at a list of numbers and return possible combination of cells that would equal a specific value? For instance:

    List Sum 60
    45 Possibles A2+A3, A4+A5+A6
    45
    30
    30
    10

    Where List and Sum are givens and Possibles would give various options for arriving at the sum.

    If this is not possible, is there a way to do this when there is only one possible formula?

  2. #2
    Registered User
    Join Date
    07-07-2006
    Posts
    28
    I gather this is not possible

    Oh well, worth a shot.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,403
    It's possible. I couldn't quite grasp your sample numbers, but here's a simple example.

    Column 1: list the digits from 1 to 9. Basically we will be asking, "what combination(s) of these digits sum up to a number (say 25).
    Column 2: a series of 1's and 0's
    Column 3: =A1*A2
    At the bottom of column 3: =sum(C1:C9)

    I don't think goal seek has enough flexibility for this operation, but, using Solver:
    Set target cell:=C11
    To value of 25
    By changing B1:B9
    Subject to constraint B1:B9=binary

    This will find a combination that adds up to 25. Where there are multiple possibilities, you have to change the starting 1's and 0's in column 2 and adding othere constraints to the solver model.

    Knowing when you've found all possible combinations will be quite tricky, because there may be cases where there are a lot of possible combinations. On the other hand, when Solver comes back with, "couldn't find a solution" is it because there really is no solution to be found or because of bad initial conditions.

    I must admit, that I don't do this kind of thing with my spreadsheets, so that's about as much as I know. Hope it helps.

+ 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