Try below in I5 array entered (using control, shift and enter together)
Formula:
=INDEX(Sheet1!$J$5:$J$12,MATCH(A5&B5&D5&E5&G5&H5,Sheet1!$A$5:$A$100&Sheet1!$B$5:$B$100&Sheet1!$D$5:$D$100&Sheet1!$E$5:$E$100&Sheet1!$G$5:$G$100&Sheet1!$H$5:$H$100,0))
and drag down
in D5 update formula to
Formula:
=IF(INDEX(Sheet1!$D:$D,MATCH(1,('PM sec2'!$A5=Sheet1!$A:$A)*('PM sec2'!$B5=Sheet1!$B:$B),0))="","",INDEX(Sheet1!$D:$D,MATCH(1,('PM sec2'!$A5=Sheet1!$A:$A)*('PM sec2'!$B5=Sheet1!$B:$B),0)))
drag down
In E5 Update formula to
Formula:
=IF(INDEX(Sheet1!$E:$E,MATCH(1,('PM sec2'!$A5=Sheet1!$A:$A)*('PM sec2'!$B5=Sheet1!$B:$B),0))="","",INDEX(Sheet1!$E:$E,MATCH(1,('PM sec2'!$A5=Sheet1!$A:$A)*('PM sec2'!$B5=Sheet1!$B:$B),0)))
Drag down
In column J you can then use formula from earlier post or you can use one more column With and & in first formula within index and match
Is this you are looking for?
Bookmarks