Data begins in cell H1
I would like to sum up salaries for people within a current headcount. The headcount is based on the date in H1.
Employees should only be summed if they match the following criteria:
Start date is <=date in H1 & Termination Date is >=date in H1 OR Termination Date is blank (if it's blank, they are still with the company). Each sum should include criteria that tie it to each of the x3 divisions (A, B, C).
The cell below is H1
I would like to sum up salaries for people within a current headcount. The headcount is based on the date in H1.
Employees should only be summed if they match the following criteria:
Start date is <=date in H1 & Termination Date is >=date in H1 OR Termination Date is blank (if it's blank, they are still with the company). Each sum should include criteria that tie it to each of the x3 divisions (A, B, C).
The cell below is H1
30/06/2021 | $ | |||||||
Employee | Start Date | Termination Date | Salary | Division | A | |||
1 | 12/01/2020 | 26/05/2021 | $ 58,600 | A | B | |||
2 | 12/06/2020 | $ 23,583 | B | C | ||||
3 | 30/11/2021 | $ 22,562 | C | |||||
4 | 02/07/2020 | 29/06/2021 | $ 21,178 | B | ||||
5 | 08/03/2019 | 30/06/2021 | $ 25,238 | B | ||||
6 | 07/06/2021 | $ 67,917 | A | |||||
7 | 09/08/2021 | $ 18,930 | A | |||||
8 | 08/04/2016 | 18/09/2021 | $ 47,116 | C | ||||
9 | 09/05/2013 | 14/11/2021 | $ 55,164 | C | ||||
10 | 09/09/2021 | $ 19,124 | C |