Display thrid letter formula

K

koba

Hi All

I need a formula that displays an outcome. If the third letter of cell
A1 has a ‘D’ then display OK, otherwise display BAD

Please help

Thanks
Andrew
 
R

Roger Govier

Hi Andrew

Try
=IF(A1="","",IF(MID(A1,3,1)="D","OK","BAD"))

Regards

Roger Govier
 
Top