Anbuselvam K
Member
Hi
I need formulas to check the bed-space available and allot to the new workers in Excel.
Attached excel sheet has
A1 to A7, B1 to B7.... F1 to F7 are Rooms for Workers (Each Room has only 4 Bed-Space Available)
C1-1 to C1-23 are Contractor1 has workers 23 Numbers
C2-1 to C2-10 are Contractor2 has workers 10 Numbers
C3-1 to C3-40 are Contractor3 has workers 40 Numbers
C4-1 to C4-92 are Contractor4 has workers 92Numbers
All workers accommodated as below.
![76200 76200](https://chandoo.org/forum/data/attachments/76/76292-eca25a3729da55816ec04169be0c0bec.jpg)
The Input is as below
How many new workers come and by which contractor (NC Means New Contractor), Also how many existing workers OUT from Which Customers.
![76201 76201](https://chandoo.org/forum/data/attachments/76/76293-d4c3355a2f4a8a4d647905307c8badaa.jpg)
After manually removing the OUT workers from the bed space the available Bed-Space is as below.
![76202 76202](https://chandoo.org/forum/data/attachments/76/76294-049ca6e51afeb10a5eea5982bfbf7dd2.jpg)
Now, I want to accommodate the new workers in the bed space as per the below rules and snapshot
1)Which contractor existing workers left more than that contractor's workers need first priority to accommodate.
2) Different contractor workers cannot share one room bed space even if no space for others.
![76203 76203](https://chandoo.org/forum/data/attachments/76/76295-b13082932f3bf73c0c6fe90d0778f056.jpg)
Then the results should show like the below snapshot.
The example files LINK here for your study.
![76204 76204](https://chandoo.org/forum/data/attachments/76/76296-e77cda64a1115fd6e9041c025fe56d62.jpg)
Note:
You can Re-Structure the Input Accommodation format without exceeding 4 beds in one room if we can get better results than the present one.
I need formulas to check the bed-space available and allot to the new workers in Excel.
Attached excel sheet has
A1 to A7, B1 to B7.... F1 to F7 are Rooms for Workers (Each Room has only 4 Bed-Space Available)
C1-1 to C1-23 are Contractor1 has workers 23 Numbers
C2-1 to C2-10 are Contractor2 has workers 10 Numbers
C3-1 to C3-40 are Contractor3 has workers 40 Numbers
C4-1 to C4-92 are Contractor4 has workers 92Numbers
All workers accommodated as below.
![76200 76200](https://chandoo.org/forum/data/attachments/76/76292-eca25a3729da55816ec04169be0c0bec.jpg)
The Input is as below
How many new workers come and by which contractor (NC Means New Contractor), Also how many existing workers OUT from Which Customers.
![76201 76201](https://chandoo.org/forum/data/attachments/76/76293-d4c3355a2f4a8a4d647905307c8badaa.jpg)
After manually removing the OUT workers from the bed space the available Bed-Space is as below.
![76202 76202](https://chandoo.org/forum/data/attachments/76/76294-049ca6e51afeb10a5eea5982bfbf7dd2.jpg)
Now, I want to accommodate the new workers in the bed space as per the below rules and snapshot
1)Which contractor existing workers left more than that contractor's workers need first priority to accommodate.
2) Different contractor workers cannot share one room bed space even if no space for others.
![76203 76203](https://chandoo.org/forum/data/attachments/76/76295-b13082932f3bf73c0c6fe90d0778f056.jpg)
Then the results should show like the below snapshot.
The example files LINK here for your study.
![1drv.ms](https://p.sfx.ms/icons/v2/Large/Xls.png)
![76204 76204](https://chandoo.org/forum/data/attachments/76/76296-e77cda64a1115fd6e9041c025fe56d62.jpg)
You can Re-Structure the Input Accommodation format without exceeding 4 beds in one room if we can get better results than the present one.