CurrentHamster
New Member
- Joined
- Dec 10, 2018
- Messages
- 4
Good Afternoon,
I'm trying to find a formula that will count the number of working days per month between two dates.
I can do the number of working days per month between two dates (If "End Date is blank it calculates using the last day of the current month):
Formula in C2:
=IF($B2="",NETWORKDAYS($A2,EOMONTH(TODAY(),0)),NETWORKDAYS($A2,$B2))[TABLE="width: 50"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Start Date
[/TD]
[TD]End Date
[/TD]
[TD]Full Time Equivalent
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]03/12/2018
[/TD]
[TD]02/01/2019
[/TD]
[TD]23
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]05/12/2018
[/TD]
[TD]07/01/2019
[/TD]
[TD]24
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]29/11/2018
[/TD]
[TD][/TD]
[TD]197
[/TD]
[/TR]
</tbody>[/TABLE]
I can also do the number of days per month betwen two dates:
[TABLE="width: 300"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Start Date
[/TD]
[TD]End Date
[/TD]
[TD]Full Time Equivalent
[/TD]
[TD]Dec-18
[/TD]
[TD]Jan-18
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]03/12/2018
[/TD]
[TD]02/01/2019
[/TD]
[TD]23
[/TD]
[TD]29
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]05/12/2018
[/TD]
[TD]07/01/2019
[/TD]
[TD]24
[/TD]
[TD]27
[/TD]
[TD]7
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]29/11/2018
[/TD]
[TD][/TD]
[TD]197
[/TD]
[TD]31
[/TD]
[TD]31
[/TD]
[/TR]
</tbody>[/TABLE]
=MAX(0,MIN(IF($b2="",TODAY(),$b2),EOMONTH(DATEVALUE(D$1),0))-MAX($A2,DATEVALUE(D$1))+1)
But I can't seem to combine the two together so that e.g. E3 should be 5 because the Sat 4th and Sun 5th, I don't need to exclude Bank Holidays just weekends.
I'm trying to find a formula that will count the number of working days per month between two dates.
I can do the number of working days per month between two dates (If "End Date is blank it calculates using the last day of the current month):
Formula in C2:
=IF($B2="",NETWORKDAYS($A2,EOMONTH(TODAY(),0)),NETWORKDAYS($A2,$B2))[TABLE="width: 50"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Start Date
[/TD]
[TD]End Date
[/TD]
[TD]Full Time Equivalent
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]03/12/2018
[/TD]
[TD]02/01/2019
[/TD]
[TD]23
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]05/12/2018
[/TD]
[TD]07/01/2019
[/TD]
[TD]24
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]29/11/2018
[/TD]
[TD][/TD]
[TD]197
[/TD]
[/TR]
</tbody>[/TABLE]
I can also do the number of days per month betwen two dates:
[TABLE="width: 300"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Start Date
[/TD]
[TD]End Date
[/TD]
[TD]Full Time Equivalent
[/TD]
[TD]Dec-18
[/TD]
[TD]Jan-18
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]03/12/2018
[/TD]
[TD]02/01/2019
[/TD]
[TD]23
[/TD]
[TD]29
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]05/12/2018
[/TD]
[TD]07/01/2019
[/TD]
[TD]24
[/TD]
[TD]27
[/TD]
[TD]7
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]29/11/2018
[/TD]
[TD][/TD]
[TD]197
[/TD]
[TD]31
[/TD]
[TD]31
[/TD]
[/TR]
</tbody>[/TABLE]
=MAX(0,MIN(IF($b2="",TODAY(),$b2),EOMONTH(DATEVALUE(D$1),0))-MAX($A2,DATEVALUE(D$1))+1)
But I can't seem to combine the two together so that e.g. E3 should be 5 because the Sat 4th and Sun 5th, I don't need to exclude Bank Holidays just weekends.