Please find the attached sheet to see if this works as per your requirement.
There are three formulas on Sheet2.
In A2
=IF(Sheet1!A2="","",Sheet1!A2)
and then copy down.
In B1
=INDEX(Sheet1!$A1:$ZZ1,LARGE(INDEX((Sheet1!$A2:$ZZ2<>"")*COLUMN(Sheet1!$A$2:$ZZ$2),0),4-(COLUMNS($B1:B1)-1)))
and then copy across to E1.
In B2
=IF(A2="","",INDEX(OFFSET(INDEX(Sheet1!$A1:$ZZ1,LARGE(INDEX((Sheet1!$A2:$ZZ2<>"")*COLUMN(Sheet1!$A$2:$ZZ$2),0),4)),1,0,1,4),COLUMNS($B2:B2)))
and then copy across to E2 and down.
On sheet1 increase the weeknum on row 1 and input data below for those weeknum to see if the correct data is reflected on sheet2 as per your requirement.
Bookmarks