Simple Staff cost budget - 12 months forecast - start/end dates

Alex007

New Member
Joined
Jul 17, 2015
Messages
14
https://www.dropbox.com/s/n1qkx709foyzokd/Staff budgets.xlsx?dl=0

Hi All,

I need some help. Which formula would i use to?:

If start date cell is blank = calculate a monthly salary
If end date cell is blank = calculate a monthly salary
If start date has a date = calculate only from the start date and every month onwards
IF end date has a date = calculate only up to end date.

I have this =IF(OR($B4>L$2,AND($C4<L$2, $C4<>0)),0, $H4/12) but is there a way to apportion monthly salary daily if the end/start date is not 01st of the month. currently the formula divides the total cost by 12 (H/12). so if the start date is on 2nd of the month it gives me zero value at the moment ?

Can someone please help me.



 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
MONTH ofJun 2015
startendsalary/monthsalary this month
fred10/06/20151000700.0
bill10001000.0
tom20/06/20151000666.7
formula giving 700
=IF(AND(F13="",G13=""),(30/30)*H13,IF(G13="",($I$8+30-F13)/30*H13,(G13-$I$8+1)*H13/30))
the 30 really needs to be automated
either by a 12 month lookup table
or a formula for days in the month

<colgroup><col span="3"><col span="2"><col><col><col span="2"></colgroup><tbody>
</tbody>
 
Upvote 0
thanks oldbrewer. its what i want but i need the formula to change with the each month. at the moment if i drag it securing start/dates/salary cells it is coming out with interesting numbers.

I need the number to move from jun15 to may 16.

thanks for your help again.
 
Upvote 0
surely my start and end dates drive this - if nothing changes next month fred and bill get full salary - either you delete row for tom or have a flag that says he is off the payroll
 
Upvote 0
surely my start and end dates drive this - if nothing changes next month fred and bill get full salary - either you delete row for tom or have a flag that says he is off the payroll


i am working on budgets. cant delete a row. i need the cell to come out with full time salary for the rest of the year it currently doesn't. :(
 
Upvote 0
namestartedleftsalary01/01/201501/02/201501/03/201501/04/201501/05/201501/06/201501/07/201501/08/201501/09/201501/10/201501/11/201501/12/2015
tom03/05/201325/01/20151000806.4516100000000000
bill03/05/20131000100010001000100010001000100010001000100010001000
dave15/01/20151000548.387110001000100010001000100010001000100010001000
formula for the 806.45162
which was dragged across and down
=IF(AND($C4="",$B4<e$3),$d4,if($c4="",if($b4<e1,$d4,((f1-$b4) 31)*$d4),if($c4<e$3,0,(((31-($f3-$c4-1))="" 31)))*$d4))<="" td=""></e$3),$d4,if($c4="",if($b4<e1,$d4,((f1-$b4)>
excel forum hits " < " lol


'=IF(AND($C4="",$B4 < E$3),$D4,IF($C4="",IF($B4 < E1,$D4,((F1-$B4)/31)*$D4),IF($C4 < E$3,0,(((31-($F3-$C4-1))/31)))*$D4))

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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