i think
=MAX(FREQUENCY(IF(ISNUMBER(A1:P1),COLUMN(A1:P1)),IF(ISTEXT(A1:P1),COLUMN(A1:P1))))
array entered with ctr+shift+enter should do it