Formula to allocate one column to a variable number of columns

eaber616

New Member
Joined
Feb 1, 2007
Messages
5
Hi all,
Looking for a formula to allocate the balance by person
to the Alloc accts, using up the smallest balance first.

The file starts with the data in column B. First is to allocate the
up to the Account Max until the Alloc Acct bal is exhausted.

Then allocate to the next Alloc acct until that is used
up, and so on.

Master column contains any excess unallocated
amount (Balance - sum(Alloc 1 - 3))

Variables include:
Number of alloc accounts (columns) could be 0 - 100+
Number of persons (rows) 0 - 50,000+
Alloc Acct bal
Acct max.

I'm looking for a formula(s) that will achieve this
allocation.

Then need to add the allocation formula to Macros
to run daily to create the file. There are subsequent
files generated daily of this one file.

Thanks for your help!
Excel Workbook
ABCDEFG
1Acct max300,000.00100,000.0050,000.00
2Alloc acct bal1,000,000.00500,000.00400,000.00
3MasterAlloc 1Alloc 2Alloc 3
4Balance2,953,253.011,000,000.00500,000.00400,000.00
5
6person 11,125,890.00675,890.00300,000.00100,000.0050,000.00
7person 2750,890.00300,890.00300,000.00100,000.0050,000.00
8person 3500,900.0050,900.00300,000.00100,000.0050,000.00
9person 4250,340.00340.00100,000.00100,000.0050,000.00
10person 5125,040.000.000.0075,040.0050,000.00
11person 675,009.0049.000.0024,960.0050,000.00
12person 762,094.0012,094.000.000.0050,000.00
13person 848,080.000.000.000.0048,080.00
14person 915,010.0013,090.000.000.001,920.00
15person 100.010.010.000.000.00
Sheet1
Excel 2007
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
New question, same file.

I want to distribute multiple workbooks using the results of this file. The first workbook would contain Column A (all workbooks will contain this), then each workbook book will contain only 1 allocation column.

So workbook 1 is only Column A and Alloc 1
workbook 2 is only Column A and Alloc 2

and so on until each alloc column has it's own file.

Any suggestions on VBA code to achieve this? Thanks!
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,473
Members
452,915
Latest member
hannnahheileen

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