I try to index information based on weekrows kpicollumn and kpi service type

for the first kpi the results are working but when it came to matching the kpi for the second service wich means for the formula to look on the row 41 it also looks at row 1 because of the match.

Do you find any solution to make this formula work for j3 j5 j7 also ?
Index.xlsx