Hey everyone,
Newb here, I am currently looking for a monthly payroll formula. I looking through inter-webs, though I'm have not been able to find one applicable to my situation.
The scenario is:
1st table "Start Date"; "End Date"; "# of Day Off"; "Total Days Worked"
2nd table "Salary/Day", "As of Date"
3rd table Spans the Months by Pay of that Month
Example: The 3rd table would return in the month of Feb ("collective days worked"-"days off")*(Salary at that time)=$3450.00
The days off can be taken from the first/last or staggered through out the time worked.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Start Date
[/TD]
[TD]End Date
[/TD]
[TD]# of Days off
[/TD]
[TD]Total Days worked
[/TD]
[TD][/TD]
[TD]Salary/day
[/TD]
[TD]As of Date
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 76"]
<colgroup><col></colgroup><tbody>[TR]
[TD]5-Feb-14
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 76"]
<colgroup><col></colgroup><tbody>[TR]
[TD]15-Feb-14[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]0
[/TD]
[TD]11
[/TD]
[TD]
[/TD]
[TD]$150.00
[/TD]
[TD]1-Feb-14
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 76"]
<colgroup><col></colgroup><tbody>[TR]
[TD]17-Feb-14
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 76"]
<colgroup><col></colgroup><tbody>[TR]
[TD]22-Feb-14[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]0
[/TD]
[TD]6
[/TD]
[TD]
[/TD]
[TD]$180.00
[/TD]
[TD]25-Apr-14
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 76"]
<colgroup><col></colgroup><tbody>[TR]
[TD]23-Feb-14
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 76"]
<colgroup><col></colgroup><tbody>[TR]
[TD]9-May-14[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]9
[/TD]
[TD]67
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Jan
[/TD]
[TD]Feb
[/TD]
[TD]Mar
[/TD]
[TD]Apr
[/TD]
[TD]May
[/TD]
[TD]Jun
[/TD]
[/TR]
[TR]
[TD]Salary
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The formula I us to find the days worked YTD is:
=IFERROR(IF(SUMPRODUCT(Table2[[#All],[Start Date]]=Table2[[#All],[End Date]]),1,SUMPRODUCT(Table2[[#All],[End Date]]-Table2[[#All],[Start Date]]-Table2[[#All],[# of Days off]]+1)),1)
Any information the community could provide to help shine light on the matter would be greatly appreciated.
Regard,
-Blake
Newb here, I am currently looking for a monthly payroll formula. I looking through inter-webs, though I'm have not been able to find one applicable to my situation.
The scenario is:
1st table "Start Date"; "End Date"; "# of Day Off"; "Total Days Worked"
2nd table "Salary/Day", "As of Date"
3rd table Spans the Months by Pay of that Month
Example: The 3rd table would return in the month of Feb ("collective days worked"-"days off")*(Salary at that time)=$3450.00
The days off can be taken from the first/last or staggered through out the time worked.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Start Date
[/TD]
[TD]End Date
[/TD]
[TD]# of Days off
[/TD]
[TD]Total Days worked
[/TD]
[TD][/TD]
[TD]Salary/day
[/TD]
[TD]As of Date
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 76"]
<colgroup><col></colgroup><tbody>[TR]
[TD]5-Feb-14
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 76"]
<colgroup><col></colgroup><tbody>[TR]
[TD]15-Feb-14[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]0
[/TD]
[TD]11
[/TD]
[TD]
[/TD]
[TD]$150.00
[/TD]
[TD]1-Feb-14
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 76"]
<colgroup><col></colgroup><tbody>[TR]
[TD]17-Feb-14
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 76"]
<colgroup><col></colgroup><tbody>[TR]
[TD]22-Feb-14[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]0
[/TD]
[TD]6
[/TD]
[TD]
[/TD]
[TD]$180.00
[/TD]
[TD]25-Apr-14
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 76"]
<colgroup><col></colgroup><tbody>[TR]
[TD]23-Feb-14
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 76"]
<colgroup><col></colgroup><tbody>[TR]
[TD]9-May-14[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]9
[/TD]
[TD]67
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Jan
[/TD]
[TD]Feb
[/TD]
[TD]Mar
[/TD]
[TD]Apr
[/TD]
[TD]May
[/TD]
[TD]Jun
[/TD]
[/TR]
[TR]
[TD]Salary
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The formula I us to find the days worked YTD is:
=IFERROR(IF(SUMPRODUCT(Table2[[#All],[Start Date]]=Table2[[#All],[End Date]]),1,SUMPRODUCT(Table2[[#All],[End Date]]-Table2[[#All],[Start Date]]-Table2[[#All],[# of Days off]]+1)),1)
Any information the community could provide to help shine light on the matter would be greatly appreciated.
Regard,
-Blake