Morning,
I have been using some formula i have found on here.
But when i put it into my table it adds the numbers from the previous month:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]Ref[/TD]
[TD]start[/TD]
[TD]end[/TD]
[TD]01/01/2017[/TD]
[TD]01/02/2017[/TD]
[/TR]
[TR]
[TD]548782[/TD]
[TD]04/01/2017[/TD]
[TD]05/01/2017[/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]563762[/TD]
[TD]24/01/2017[/TD]
[TD]06/02/2017[/TD]
[TD]8[/TD]
[TD]14[/TD]
[/TR]
</tbody>[/TABLE]
in F :
in G:
Any help please
I have been using some formula i have found on here.
Code:
=MAX(0,1+MIN(EOMONTH(F$1,0),$C2)-MAX(F$1,$B2))
But when i put it into my table it adds the numbers from the previous month:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]Ref[/TD]
[TD]start[/TD]
[TD]end[/TD]
[TD]01/01/2017[/TD]
[TD]01/02/2017[/TD]
[/TR]
[TR]
[TD]548782[/TD]
[TD]04/01/2017[/TD]
[TD]05/01/2017[/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]563762[/TD]
[TD]24/01/2017[/TD]
[TD]06/02/2017[/TD]
[TD]8[/TD]
[TD]14[/TD]
[/TR]
</tbody>[/TABLE]
in F :
Code:
=MAX(0,1+MIN(EOMONTH(F$1,0),$C2)-MAX(F$1,$B2))
Code:
=MAX(0,1+MIN(EOMONTH(G$1,0),$C3)-MAX(G$1,$B3))
Any help please