Firstly, before I talk about the formula, if I am understanding this correctly, the "Level" spoken in column G, is basically whatever the level is selected in F3. That is, if it's 1, the Levels will ALL be "1. Few words". If it's 2 then it will all be "2. Technically Fluent". So why have this column?
With regards to the formula, if my logic above is right, the last ROWS function is not required - replace it with a 1 and the formula will work.
G5:
Formula:
BEFORE: =IFERROR(INDEX(LOOKUP(COLUMN('senior languages info'!$E$2:$H$2),COLUMN('senior languages info'!$E$2:$H$2)/('senior languages info'!$E$2:$H$2<>""),'senior languages info'!$E$2:$H$2),SMALL(IF(INDEX('senior languages info'!$E$3:$H$94,MATCH(1,('senior languages info'!$A$3:$A$94=Languages!$F5)*('senior languages info'!$D$3:$D$94=Languages!$F$2),0),0)=Languages!$F$3,COLUMN('senior languages info'!$E$2:$H$2)-COLUMN('senior languages info'!$E$2)+1),ROWS(Languages!G$5:G5))),"")
AFTER : =IFERROR(INDEX(LOOKUP(COLUMN('senior languages info'!$E$2:$H$2),COLUMN('senior languages info'!$E$2:$H$2)/('senior languages info'!$E$2:$H$2<>""),'senior languages info'!$E$2:$H$2),SMALL(IF(INDEX('senior languages info'!$E$3:$H$94,MATCH(1,('senior languages info'!$A$3:$A$94=Languages!$F5)*('senior languages info'!$D$3:$D$94=Languages!$F$2),0),0)=Languages!$F$3,COLUMN('senior languages info'!$E$2:$H$2)-COLUMN('senior languages info'!$E$2)+1),1)),"")
Bookmarks