exceluser9
Active Member
- Joined
- Jun 27, 2015
- Messages
- 388
Hi Team,
I have below data in 2 sheets. I have week numbers in both the sheet. In sheet 1 i require the average margin in column "F" (Result column)
Based on the start week and end week it has to pull the average margin from sheet 2 for from whichever week falls between start week and end week based on the lookup from group id
I have just posted an example but there are multiple data in sheet 1 and 2
I have below data in 2 sheets. I have week numbers in both the sheet. In sheet 1 i require the average margin in column "F" (Result column)
Based on the start week and end week it has to pull the average margin from sheet 2 for from whichever week falls between start week and end week based on the lookup from group id
I have just posted an example but there are multiple data in sheet 1 and 2
Sheet 1 | |||||
Start date | Start week | End date | End week | Group id | Result |
11/02/2022 | 202249 | 06/03/2022 | 202253 | X51AG | 57% |
05/01/2022 | 202228 | 18/01/2022 | 202233 | XH7GY | 45% |
Sheet 2 | ||
Week | Group id | Margin |
202245 | X51AG | 56% |
202249 | X51AG | 67% |
202252 | X51AG | 44% |
202254 | X51AG | 61% |
202232 | XH7GY | 56% |
202227 | XH7GY | 33% |