Hello all,
I have a set of shareholders that have been given an equal amount of cash and stocks, but some want more cash and some want more stocks. There is a different number of buyers and sellers, but the total amount that is being bought/sold is the same.
My predicament is that none of the buyer amounts match up or add up evenly into any of the seller amounts. My only solution is to split up the buyer amounts into different parts of each whole and then use combinations of all those parts to cleanly match every seller amount.
That part in and of itself wouldn't be extremely difficult to just plug and chug, but there are constraints to how I can split up the buyer amounts, and how they can be distributed. A buyer cannot buy from more than 3 sellers, and a seller conversely cannot sell to more than 3 buyers. This means that I can only split the buyer amounts into a maximum of 3 parts, and I can only sum a maximum of 3 of those parts to equal each seller amount. All of these parts must also be integers greater than or equal to zero.
I know this sounds like more of a logic puzzle than an excel question, but if anyone could point me in the right direction for where to start on this, it would be greatly appreciated.
Bookmarks