Book1 | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | |||
1 | Project ID | Start Date | End Date | Aug-23 | Sep-23 | Oct-23 | Nov-23 | Dec-23 | Jan-24 | Feb-24 | Mar-24 | Apr-24 | May-24 | Jun-24 | Jul-24 | Aug-24 | Sep-24 | Oct-24 | ||
2 | A | 02/10/2021 | ||||||||||||||||||
3 | B | 03/10/2023 | ||||||||||||||||||
4 | C | 21/09/2024 | ||||||||||||||||||
5 | D | 17/07/2024 | 01/08/2024 | |||||||||||||||||
Sheet1 |
24 10 07.xlsm | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | |||
1 | Project ID | Start Date | End Date | Aug-23 | Sep-23 | Oct-23 | Nov-23 | Dec-23 | Jan-24 | Feb-24 | Mar-24 | Apr-24 | May-24 | Jun-24 | Jul-24 | Aug-24 | Sep-24 | Oct-24 | ||
2 | A | 2/10/2021 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |||
3 | B | 3/10/2023 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |||||
4 | C | 21/09/2024 | 1 | 1 | ||||||||||||||||
5 | D | 17/07/2024 | 1/08/2024 | 1 | 1 | |||||||||||||||
1excel1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2:R5 | D2 | =IF(AND(D$1>=$B2-DAY($B2)+1,D$1<=IF($C2="",TODAY(),$C2)),1,"") |
Many thanks for this. It works!Thanks for updating your profile and for the XL2BB sample data.
See if this could work for you.
24 10 07.xlsm
A B C D E F G H I J K L M N O P Q R 1 Project ID Start Date End Date Aug-23 Sep-23 Oct-23 Nov-23 Dec-23 Jan-24 Feb-24 Mar-24 Apr-24 May-24 Jun-24 Jul-24 Aug-24 Sep-24 Oct-24 2 A 2/10/2021 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 B 3/10/2023 1 1 1 1 1 1 1 1 1 1 1 1 1 4 C 21/09/2024 1 1 5 D 17/07/2024 1/08/2024 1 1 1excel1
Cell Formulas Range Formula D2:R5 D2 =IF(AND(D$1>=$B2-DAY($B2)+1,D$1<=IF($C2="",TODAY(),$C2)),1,"")