NOTE: I tweaked these to remove some unnecessary pieces:
I think this regular formula does what you want
T8: =IFERROR(MID("GYR",MIN(INDEX(SEARCH(N8:S8,"GYR")+ISBLANK(N8:S8)*10,0)),1),"")
or...if you're a fan of ARRAY FORMULAS, which are completed by holding down CTRL and SHIFT when you press ENTER (instead of just pressing ENTER), this slightly shorter formula.
T8: =IFERROR(MID("GYR",MIN(IF(N8:S8<>"",SEARCH(N8:S8,"GYR"))),1),"")
(I just avoid them because nobody I work with ever remembers to C+S+E after editing them)
Is that something you can work with?
Bookmarks