Hello,
I am trying to set up a formula in a workbook to firstly highlight a range of cells between two given dates. Secondly I am trying to populate these cells based on start and finish dates and the quantity of resource for a given item.
Duration
Column J =((H49-G49)/5)+0.2 (Where 0.2 is 1 Day and a 5 Day Week = 1)
Duration currently = 6.4 but surely this should be 4.4?
Conditional Formatting (Formula Used)
In Cell J49:
=IF(J$7>$H49,"",IF(K$7>$G49,1,""))
This Applies to =$J$49:$DZ$60
The Source Data is set out below:
[TABLE="width: 1200"]
<tbody>[TR]
[TD][/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]
[/TR]
[TR]
[TD]48[/TD]
[TD]Resource[/TD]
[TD]Quantity[/TD]
[TD]Start[/TD]
[TD]Finish[/TD]
[TD]Duration[/TD]
[TD]07-Jan-18[/TD]
[TD]14-Jan-18[/TD]
[TD]21-Jan-18[/TD]
[TD]28-Jan-18[/TD]
[TD]04-Feb-18[/TD]
[TD]11-Feb-18[/TD]
[/TR]
[TR]
[TD]49[/TD]
[TD]Operative[/TD]
[TD]2[/TD]
[TD]Fri 05 Jan 18[/TD]
[TD]Mon 05 Feb 18[/TD]
[TD]6.40[/TD]
[TD]0.4[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]0.4[/TD]
[/TR]
[TR]
[TD]50[/TD]
[TD]Supervisor[/TD]
[TD]1[/TD]
[TD]Fri 05 Jan 18[/TD]
[TD]Mon 05 Feb 18[/TD]
[TD]6.40[/TD]
[TD]0.4[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]0.4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The cell range J49:O50 contains the outputs based on the working week and the quantity of resources.
I am struggling to apply a formula which can replicate this, can anyone provide me with some guidance?
Thanks
I am trying to set up a formula in a workbook to firstly highlight a range of cells between two given dates. Secondly I am trying to populate these cells based on start and finish dates and the quantity of resource for a given item.
Duration
Column J =((H49-G49)/5)+0.2 (Where 0.2 is 1 Day and a 5 Day Week = 1)
Duration currently = 6.4 but surely this should be 4.4?
Conditional Formatting (Formula Used)
In Cell J49:
=IF(J$7>$H49,"",IF(K$7>$G49,1,""))
This Applies to =$J$49:$DZ$60
The Source Data is set out below:
[TABLE="width: 1200"]
<tbody>[TR]
[TD][/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]
[/TR]
[TR]
[TD]48[/TD]
[TD]Resource[/TD]
[TD]Quantity[/TD]
[TD]Start[/TD]
[TD]Finish[/TD]
[TD]Duration[/TD]
[TD]07-Jan-18[/TD]
[TD]14-Jan-18[/TD]
[TD]21-Jan-18[/TD]
[TD]28-Jan-18[/TD]
[TD]04-Feb-18[/TD]
[TD]11-Feb-18[/TD]
[/TR]
[TR]
[TD]49[/TD]
[TD]Operative[/TD]
[TD]2[/TD]
[TD]Fri 05 Jan 18[/TD]
[TD]Mon 05 Feb 18[/TD]
[TD]6.40[/TD]
[TD]0.4[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]0.4[/TD]
[/TR]
[TR]
[TD]50[/TD]
[TD]Supervisor[/TD]
[TD]1[/TD]
[TD]Fri 05 Jan 18[/TD]
[TD]Mon 05 Feb 18[/TD]
[TD]6.40[/TD]
[TD]0.4[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]0.4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The cell range J49:O50 contains the outputs based on the working week and the quantity of resources.
I am struggling to apply a formula which can replicate this, can anyone provide me with some guidance?
Thanks