Seat Allocation formula

MissMoby

New Member
Joined
Oct 9, 2019
Messages
7
Hi, need help on how to use Excel to meet below requirement. Below sample is just small population of total seatings so would need to automate. Appreciate your help please, thank you!!! =)

Requirements:
1. Allocate the Box capacity following the Position hierarchy, such that "Head" starts to seat on Box A.
2. If there is remaining in previous Box, then allocate to next level and so on.

Box & Capacity
A - 300
B - 250
C - 100
D - 80

Position Hierarchy & Count
Head - 250
Managers - 360
Staff - 120
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Welcome to the MrExcel forum!

I don't know what your layout looks like, but try this:


Book1
ABCDEFGHIJ
1BoxCapacityPosition HierarchyCountABCD
2A300Head250250000
3B250Managers36050250600
4C100Staff120004080
5D80
Sheet4
Cell Formulas
RangeFormula
G2=MEDIAN($E2-SUM($F2:F2),VLOOKUP(G$1,$A$2:$B$5,2,0)-SUM(G$1:G1),0)


The empty column in F is required. Put the formula in G2, then copy across to J2, then down to J4.
 
Last edited:
Upvote 0
After a bit more consideration, this somewhat simpler formula works just the same:

=MIN($E2-SUM($F2:F2),VLOOKUP(G$1,$A$2:$B$5,2,0)-SUM(G$1:G1))
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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