Try:
=IF(AND(EXACT(LEFT(A1,4),UPPER(LEFT(A1,4))),MID(A1 ,5,1)=" "),"IA
Code","Other")
or
=IF(AND(EXACT(LEFT(A1,4),UPPER(LEFT(A1,4))),MID(A1 ,5,1)="
"),LEFT(A1,4),"Other")
--
NBVC
Where there is a will there are many ways.
'The Code Cage' (http;//www.thecodecage.com)
------------------------------------------------------------------------
NBVC's Profile:
http://www.thecodecage.com/forumz/member.php?userid=74
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=116170