I need help coming up with formulas pretty please.
Backstory: I have to determine the number of weeks (already got help with that) that fall in a specific period and the start and stop dates. We have 4 programs the person could get coverage under, based on when they filed I need to know how many weeks in each program (with start-stop dates) they qualify for. The only thing I could think of was x's next to the date if it's in that range then create a formal that finds the first and last x and displays the start-stop dates.
Open to advise on ways to do this better.
For Example:
Client was covered from 12.26.20 - 6.26.21
Program dates weeks covered
P1: 4.4.20 - 7.25.20 none
P2: 8.1.20 - 9.5.20 none
P3: 1.2.21 - 3.13.21 1.2.21 - 3.13.21
P4: 3.20.21 - 6.26.21 3.20.21 - 6.26.21
Backstory: I have to determine the number of weeks (already got help with that) that fall in a specific period and the start and stop dates. We have 4 programs the person could get coverage under, based on when they filed I need to know how many weeks in each program (with start-stop dates) they qualify for. The only thing I could think of was x's next to the date if it's in that range then create a formal that finds the first and last x and displays the start-stop dates.
Open to advise on ways to do this better.
For Example:
Client was covered from 12.26.20 - 6.26.21
Program dates weeks covered
P1: 4.4.20 - 7.25.20 none
P2: 8.1.20 - 9.5.20 none
P3: 1.2.21 - 3.13.21 1.2.21 - 3.13.21
P4: 3.20.21 - 6.26.21 3.20.21 - 6.26.21
dates | 12.26.20 | 06.26.21 | |
Column1 | Column2 | ||
04.04.20 | from | to | |
04.11.20 | |||
04.18.20 | |||
04.25.20 | |||
05.02.20 | |||
05.09.20 | |||
05.16.20 | |||
05.23.20 | |||
05.30.20 | |||
06.06.20 | |||
06.13.20 | |||
06.20.20 | |||
06.27.20 | |||
07.04.20 | |||
07.11.20 | |||
07.18.20 | |||
07.25.20 | |||
Column1 | Column2 | ||
08.01.20 | from | to | |
08.08.20 | |||
08.15.20 | |||
08.22.20 | |||
08.29.20 | |||
09.05.20 | |||
09.12.20 | |||
Column1 | Column2 | ||
01.02.21 | x | from | to |
01.09.21 | x | ||
01.16.21 | x | ||
01.23.21 | x | ||
01.30.21 | x | ||
02.06.21 | x | ||
02.13.21 | x | ||
02.20.21 | x | ||
02.27.21 | x | ||
03.06.21 | x | ||
03.13.21 | x | ||
Column1 | Column2 | ||
03.20.21 | x | from | to |
03.27.21 | x | ||
04.03.21 | x | ||
04.10.21 | x | ||
04.17.21 | x | ||
04.24.21 | x | ||
05.01.21 | x | ||
05.08.21 | x | ||
05.15.21 | x | ||
05.22.21 | x | ||
05.29.21 | x | ||
06.05.21 | x | ||
06.12.21 | x | ||
06.19.21 | x | ||
06.26.21 | x | ||