Randomly fill predetermined totals

Jerry in Amsterdam

New Member
Joined
May 2, 2006
Messages
47
Hi folks, I am trying to randomly subtotal a list of 1200 different amounts into 33 categories.
In column A are the amounts, like 200, 300 etc. and in column B are the names of workers that generated these costs: Dave, Sue and so on.
The main categories they should be subtotalled in are in another small table on the same worksheet. They are named "Implementation", "Design" etc. and have their maximum values predetermined. So for instance, category Implemetation is set to cost $500 in total. The category Design is set to cost $1250 in total.
Is there a way to have the categories fill up to respectively $500 and $1250 with random smaller amounts from column A? So that in the end, category "Implementation" will consist out of 200-Dave and 300-Sue, but no more? And that Dave and Sue and their values are not repeated in another category?
Any input would be most welcome!
Thanks in advance, Jerry
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,214,918
Messages
6,122,241
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top