Hi, I have a problem.
I want to check if for the same ID, there is overlapping Start Date and End Date (the Bolded Row) in table 1. I want it to fill the data of that bolded row to those that are applicable to result in table 2.
Table 1
| ID | Start Date | End Date | Period | A1 | A2 | B1 | B2 | C | D1 | D2 | E1 | E1 |
| 111 | 4/1/2020 | 9/30/2020 | 1 | 0.7 | 0.7 | | | | | | | |
| 111 | 10/1/2020 | 12/31/2020 | 1 | 0.7 | 0.7 | | | | | | | |
| 111 | 10/1/2020 | 9/30/2021 | 1 | | | | | | 0.3 | 0.3 | | |
| 111 | 1/1/2021 | 9/30/2021 | 1 | | | 0.7 | 0.7 | | | | | |
Table 2 (Desired Result)
| ID | Start Date | End Date | Period | A1 | A2 | B1 | B2 | C | D1 | D2 | E1 | E1 |
| 111 | 4/1/2020 | 9/30/2020 | 1 | 0.7 | 0.7 | | | | | | | |
| 111 | 10/1/2020 | 12/31/2020 | 1 | 0.7 | 0.7 | | | | 0.3 | 0.3 | | |
| 111 | 1/1/2021 | 9/30/2021 | 1 | | | 0.7 | 0.7 | | 0.3 | 0.3 | | |
How can I do that? Advanced thanks!