+ Reply to Thread
Results 1 to 6 of 6

Solver or What-If to Allocate Budget

  1. #1
    Registered User
    Join Date
    05-19-2010
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2003
    Posts
    16

    Solver or What-If to Allocate Budget

    I'm hoping someone can help me automate this to find a solution. I have a total budget of 37M that must be allocated among 6 accounts. There is a min and max value for the % of total budget that each account can contain. The total allocation to the first two accounts must equal 10.5M, and the total allocation to the last four accounts must equal 26.5M. The total of all allocated amounts and percents must be 37.5M and 100%, respectively.

    I have multiple scenarios like this to run and I feel like there must be a way to reach a solution that is better than me guessing and tweaking percentages until it works. I'm wondering if excel solver or another tool or add-in might be able to solve this.

    A file is attached. There is also an example of a solution I got to the long and hard way in the worksheet. If anyone can provide any help or even a partial solution, anything to make it go a little faster, I would really appreciate it. Thanks in advance, Excel Gurus!

    Edit- oops. I simplified the numbers in the example attached for my narrative of the problem, but left the example solution with the original numbers. I think you'll still get the idea of the goal here despite the discrepancy. Sorry for any confusion.
    Attached Files Attached Files
    Last edited by catccc; 05-19-2010 at 11:29 AM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Solver or What-If to Allocate Budget

    There would appear to be a mind-boggling number of possibilities.

    Eg. for the first two accounts you could have 10,492,000 and 8,000 or 10,491,999 and 8,001, and so on. Is that right?

  3. #3
    Registered User
    Join Date
    05-19-2010
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Solver or What-If to Allocate Budget

    Yes, you are correct. There are many many solutions, though I only need one, and as long as the percentages are within the given min & max, it is a-ok.

    So I just spent a little more time playing with it, and it looks like it is easily solved with Solver if you break down the problem into two parts, and focus on percentages.

    Part one is to make the sum of percentages for the first two accounts = to 10.5M divided by 37M, or 28.38% within the min and max for each account.

    Part two is to make the sum of percentages for the last 4 accounts = to 26.5M divided by 37M, or 71.62 within the min and max for each account.

    So for part one, you set up a target cell that is the sum of the percentages for accounts 1 & 2. In solver, make your target cell equal to value of .2838 by the cells for the two percentages for accounts 1 & 2. Subject to the constraints where each percent cell's value falls between the specified min and max.... click solve... tada! A bit of multiplication and you are good to go, for the most part. I found some minimal tweaking was needed in one case, but nothing compared to the guessing from before.

    So, sorry if I littered the board with this question since I already figured it out. But I'm glad to have discovered the forums anyway... I am just getting started on some of the more advanced excel techniques and I think I'll find the community here very helpful.

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Solver or What-If to Allocate Budget

    Not a problem. Thanks for posting your thoughts.

  5. #5
    Registered User
    Join Date
    02-10-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Solver or What-If to Allocate Budget

    Would you be able to attach what you have come up with?

  6. #6
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Solver or What-If to Allocate Budget

    Probably something like this.

    Alf
    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