Hi friends,
I need urgent help in creating a formula for a monthly headcount report. I am able to find a formula suitable for me in an old thread. However, for some reasons, it does not exactly fit my case and I would need help on modifying the formula.
[TABLE="width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[TD]O[/TD]
[TD]P[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Alias[/TD]
[TD]Hidden Zero Date[/TD]
[TD]Join Date[/TD]
[TD]Last Date (YTD)[/TD]
[TD]Jan-15[/TD]
[TD]Feb-15[/TD]
[TD]Mar-15[/TD]
[TD]Apr-15[/TD]
[TD]May-15[/TD]
[TD]Jun-15[/TD]
[TD]Jul-15[/TD]
[TD]Aug-15[/TD]
[TD]Sep-15[/TD]
[TD]Oct-15[/TD]
[TD]Nov-15[/TD]
[TD]Dec-15[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Anna[/TD]
[TD]0[/TD]
[TD]26-Sep-12[/TD]
[TD]21-Sep-15[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Ben[/TD]
[TD]0[/TD]
[TD]20-Apr-15[/TD]
[TD]21-Sep-15[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]Cell[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]C3[/TD]
[TD]=TODAY()[/TD]
[/TR]
[TR]
[TD]E3[/TD]
[TD]=IF(MOD(MATCH(G$1,$D3:$F3),2)=1,"",1)[/TD]
[/TR]
[TR]
[TD]E4[/TD]
[TD]=IF(MOD(MATCH(H$1,$D3:$F3),2)=1,"",1)[/TD]
[/TR]
</tbody>[/TABLE]
The formula in E3, I found it in the old thread.
However e.g. for Ben, he joined on 20-Apr-15, and in my company we will count it as (1) no matter if the join date is in the beginning of the month, middle of the month or end of the month. In Ben's case, his headcount should be counted starting in April instead of May.
Please help! I would like to know how I should modify the formulas in order to calculate the correct headcount. Thank you in advance.
Regards,
May
I need urgent help in creating a formula for a monthly headcount report. I am able to find a formula suitable for me in an old thread. However, for some reasons, it does not exactly fit my case and I would need help on modifying the formula.
[TABLE="width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[TD]O[/TD]
[TD]P[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Alias[/TD]
[TD]Hidden Zero Date[/TD]
[TD]Join Date[/TD]
[TD]Last Date (YTD)[/TD]
[TD]Jan-15[/TD]
[TD]Feb-15[/TD]
[TD]Mar-15[/TD]
[TD]Apr-15[/TD]
[TD]May-15[/TD]
[TD]Jun-15[/TD]
[TD]Jul-15[/TD]
[TD]Aug-15[/TD]
[TD]Sep-15[/TD]
[TD]Oct-15[/TD]
[TD]Nov-15[/TD]
[TD]Dec-15[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Anna[/TD]
[TD]0[/TD]
[TD]26-Sep-12[/TD]
[TD]21-Sep-15[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Ben[/TD]
[TD]0[/TD]
[TD]20-Apr-15[/TD]
[TD]21-Sep-15[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]Cell[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]C3[/TD]
[TD]=TODAY()[/TD]
[/TR]
[TR]
[TD]E3[/TD]
[TD]=IF(MOD(MATCH(G$1,$D3:$F3),2)=1,"",1)[/TD]
[/TR]
[TR]
[TD]E4[/TD]
[TD]=IF(MOD(MATCH(H$1,$D3:$F3),2)=1,"",1)[/TD]
[/TR]
</tbody>[/TABLE]
The formula in E3, I found it in the old thread.
However e.g. for Ben, he joined on 20-Apr-15, and in my company we will count it as (1) no matter if the join date is in the beginning of the month, middle of the month or end of the month. In Ben's case, his headcount should be counted starting in April instead of May.
Please help! I would like to know how I should modify the formulas in order to calculate the correct headcount. Thank you in advance.
Regards,
May