Hourly allocation based on Start, end date and allocation %

sunny1102

New Member
Joined
Jan 6, 2019
Messages
1
Hey There,
I need help with excel allocation formulas. I attached a sample spreadsheet. I will need two formula options. So, here is what I need:


For an employee, I will enter three parameters - Start Date, End Date, and allocations ( as a percentage). Based on these inputs, I want to allocate hours in the monthly columns
For Eg: in Row 1, I have Jon starting on Jan 12 and ending on Nov 30 at a 100% allocation, So, I will need the formula to allocate hours in the month columns based on these inputs. So, the two formulas I need are:
1. Allocate hours in monthly columns based on 160 hours per month option
2. Allocate hours in monthly columns based on actual working days in the respective month column (US working days)

I am unable to attach the file. I am brand new to this forum and not sure if it is the reason. But, your help here will be greatly appreciated.


NameStart DateEnd DateAllocation %JanFebMarAprMayJunJulAugSepOctNovDec
Tony1/111/3050
Jon2/159/30100
Laura7/1512/3175
Melanie6/68/30100

<tbody>
</tbody>
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hi, welcome to the board.

Please can you add to your table, details of what the results should be ?
 
Upvote 0
There's probably an easier way of doing this - This is utilizing a second sheet with each day of 2019 with a 0 for weekends and holidays and a 1 for workdays. The calculation does a SUMIFS summing workdays between the start/end dates within each month then multiplying with the allocation rate by 8 hours a day. Since the requirement was to tally only workdays the 160 hour month was not used.

Each month calculation was done separately for row 2, but then copying down worked fine:
January calculation:
Code:
=SUMIFS(Sheet2!$B:$B,Sheet2!$A:$A,">="&B2,Sheet2!$A:$A,"<="&C2,Sheet2!$A:$A,">=1/1/2019",Sheet2!$A:$A,"<=1/31/2019")*8*D2
February through December changed the hard coded begin/end to the appropriate month making sure the criteria columns remained B2, C2, D2. I left them without the $ so that they's copy down correctly.

Sheet1
NameStart DateEnd DateAllocation %JanFebMarAprMayJunJulAugSepOctNovDec
Tony1/1/201911/30/20190.584808088928088888092760
Jon2/15/20199/30/20191080160176184160176176160000
Laura7/15/201912/31/20190.7500000078132120138114114
Melanie6/6/20198/30/20191000001361761760000

<tbody>
</tbody>
Sheet2
DateWorkDay?
1/1/20190
1/2/20191
1/3/20191
1/4/20191
1/5/20190
1/6/20190
1/7/20191
Rest of year
12/25/20190
12/26/20191
12/27/20191
12/28/20190
12/29/20190
12/30/20191
12/31/20190

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,656
Messages
6,120,762
Members
448,991
Latest member
Hanakoro

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