+ Reply to Thread
Results 1 to 5 of 5

Equal allocation based on multiple variables

  1. #1
    Registered User
    Join Date
    06-21-2019
    Location
    Toronto, Canada
    MS-Off Ver
    Office 365
    Posts
    2

    Equal allocation based on multiple variables

    Hello All! This is my first post, and I was hoping I get some help on this one! Thank you in advance.

    Here is the situation I'm trying to solve:


    I work for a real estate company that has properties across the country. They own retail, industrial, and office properties. Every quarter, we split the entire portfolio into three tranches, so that every month we can do analysis on one of the tranches, and by the end of the quarter we will have reviewed all the properties in the portfolio.

    The issue is that because the company often buys or sells properties, the allocation in each month needs to change. So I would like to be able to setup either a macro, or just a spreadsheet using goal seek, in order to divide all of our properties into either month 1, 2 or 3 (of each respective quarter), but would like to optimize the allocation so that they are split as evenly as possible between provinces, asset class (retail, office or industrial), months, and potentially other categories. To be honest, I'm not even sure where to start on this one. I realize I'm not going to be able to get them perfectly split, I just want to get the variance between each month to be the minimum across each category. Any help?

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Equal allocation based on multiple variables

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Equal allocation based on multiple variables

    This kind of problem feels to me like one of those problems that reduces to a knapsack/subset sum problem. So, not knowing where to even start on this, I would probably start there:

    Subset sum problems are a somewhat common question.
    One thread with a couple of additional links: https://www.excelforum.com/excel-for...en-amount.html
    Another one: https://www.excelforum.com/excel-for...l-to-cell.html
    or put "subset sum problem excel" into your favorite internet search engine.

    Once you have a handle on how to do one subset sum, then it can be expanded and applied to your problem. If I understand your problem it is to find 3 subset sums where the variation between the 3 subset sums is a minimum (so that the subset sums are all about 1/3 of the total sum). It sounds like there could be other criteria thrown into the mix.

    One warning -- the built in Solver that comes with Excel has certain limitations (100 or 200 decision variables and so on). If something built on Excel's Solver will work for you except for these limitations, you may need to explore other Solver engines. Frontline (the programmers of the built in Solver) offer (for a fee) a more robust and expansive Solver engine. I have seen an OpenSolver that gets good review from a couple of users here. I also expect that this sort of task is common in some corners of the real estate/financial/investing markets and you may find stand alone apps that perform this kind of "portfolio allocation" problem (either inside or outside of Excel).
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

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

    Re: Equal allocation based on multiple variables

    Grouping in two dimensions is a complex problem, and more dimensions is harder yet, but you're only dividing into three groups.

    The first thing you need is an objective function that expresses the similarity of two groups as a single number between 0 and 1. I think no one here could help you with that. Someone where you work would intuitively recognize a good partition, but it needs to be reduced to a formula because computers suck at intuition.

    Then one way to proceed is called annealing: you initially assign properties to groups at random, and then start swapping between groups, seeking to minimize the variance of the three measurements (A:B, A:C, B:C). You always accept swaps that reduce the variance, and initially, you accept some that make it worse. Over time, you only accepts swaps that make it better.
    Last edited by shg; 06-21-2019 at 08:25 PM.
    Entia non sunt multiplicanda sine necessitate

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

    Re: Equal allocation based on multiple variables

    If you had 15 or fewer properties, you could do an exhaustive test of all groupings.
    Last edited by shg; 06-23-2019 at 06:23 PM.

+ 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] Equal work allocation via vba
    By akulka58 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-09-2021, 12:31 AM
  2. [SOLVED] Equal allocation of cases
    By asharo100 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-11-2016, 02:42 PM
  3. [SOLVED] Conditional SUMIF based on multiple columns and multiple row variables
    By jaymaan74 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-15-2016, 11:05 AM
  4. model allocation where % allocated depends on multiple variables
    By Drudnits1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-10-2015, 10:38 PM
  5. Equal allocation of stock variations
    By Gem1979 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-04-2014, 10:14 AM
  6. Replies: 0
    Last Post: 10-15-2014, 11:29 PM
  7. Replies: 3
    Last Post: 09-13-2005, 06:05 PM

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