Previous Test Year:
=INDEX(TestYear,LARGE(IF(OFFSET(TestYear,1,0)="PASS",COLUMN($A$1:$AI$1)),2))
Latest Test Year:
=INDEX(TestYear,MAX(IF(OFFSET(TestYear,1,0)="PASS",COLUMN($A$1:$AI$1))))
Removal Year:
=INDEX(TestYear,MAX(IF(OFFSET(TestYear,1,0)="FAIL",COLUMN($A$1:$AI$1))))
Named Range: TestYear:=Sheet1!$F$1:$AN$1
All array formulas, therefore:
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
Bookmarks