Assuming the others are blank and we're definitely talking strings (not numbers)

=LOOKUP(REPT("Z",255),A1:Z1)

if not, ie nulls, then you could try

=INDEX(A1:Z1,MATCH("*?",A1:Z1,0))