I have a table of employees,wages, Status and start month that looks similar to below:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Employee[/TD]
[TD]Position[/TD]
[TD]Wage[/TD]
[TD]Full/Part Time[/TD]
[TD]Hours[/TD]
[TD]Start Month[/TD]
[TD]End Month[/TD]
[TD]Title[/TD]
[/TR]
[TR]
[TD]Example, One[/TD]
[TD]Maintenance[/TD]
[TD]15.00[/TD]
[TD]Part Time[/TD]
[TD]26[/TD]
[TD]5[/TD]
[TD]8[/TD]
[TD]Maintenance Technician[/TD]
[/TR]
[TR]
[TD]Example, Two[/TD]
[TD]Office[/TD]
[TD]15.42[/TD]
[TD]Full Time[/TD]
[TD]40
[/TD]
[TD]1[/TD]
[TD]12[/TD]
[TD]Leasing Agent[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I need to calculate salary in another Table for the months that looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Employee[/TD]
[TD]Position[/TD]
[TD]Jan[/TD]
[TD]Feb[/TD]
[TD]March[/TD]
[TD]April[/TD]
[TD]May[/TD]
[/TR]
[TR]
[TD]Employee One[/TD]
[TD]Maintenance[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Employee Two[/TD]
[TD]Office[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The calculation needs happen like this:
If employee is full time and worked their during that month=(hourly rate*86.67*2)
If employee is full time and did not work their during that month=0
If employee is part time and worked their during that month= (hourly rate*hours*2)
If employee is part time and did not work their during that month= 0
I have the following in the second table cell c2==IFS(IF(AND($D$9="Full Time",$F$9<=1),($D$9*86.67)*2),IF(AND($E$9="Part time",$H$9<=12),($C$9*$E$9)*2,"0"))
result=#N/A
Please help!
[TABLE="width: 500"]
<tbody>[TR]
[TD]Employee[/TD]
[TD]Position[/TD]
[TD]Wage[/TD]
[TD]Full/Part Time[/TD]
[TD]Hours[/TD]
[TD]Start Month[/TD]
[TD]End Month[/TD]
[TD]Title[/TD]
[/TR]
[TR]
[TD]Example, One[/TD]
[TD]Maintenance[/TD]
[TD]15.00[/TD]
[TD]Part Time[/TD]
[TD]26[/TD]
[TD]5[/TD]
[TD]8[/TD]
[TD]Maintenance Technician[/TD]
[/TR]
[TR]
[TD]Example, Two[/TD]
[TD]Office[/TD]
[TD]15.42[/TD]
[TD]Full Time[/TD]
[TD]40
[/TD]
[TD]1[/TD]
[TD]12[/TD]
[TD]Leasing Agent[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I need to calculate salary in another Table for the months that looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Employee[/TD]
[TD]Position[/TD]
[TD]Jan[/TD]
[TD]Feb[/TD]
[TD]March[/TD]
[TD]April[/TD]
[TD]May[/TD]
[/TR]
[TR]
[TD]Employee One[/TD]
[TD]Maintenance[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Employee Two[/TD]
[TD]Office[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The calculation needs happen like this:
If employee is full time and worked their during that month=(hourly rate*86.67*2)
If employee is full time and did not work their during that month=0
If employee is part time and worked their during that month= (hourly rate*hours*2)
If employee is part time and did not work their during that month= 0
I have the following in the second table cell c2==IFS(IF(AND($D$9="Full Time",$F$9<=1),($D$9*86.67)*2),IF(AND($E$9="Part time",$H$9<=12),($C$9*$E$9)*2,"0"))
result=#N/A
Please help!