@rick

Dit you consider using offset ?

PHP Code:
=MAX(ABS(CODE(MID(UPPER(A1),ROW(OFFSET(A1,,,LEN(A1))),1))-77.5))<13