I need help with a excel if statement please what i have is a list containing machine ids
T003478
N000299
T003067
TT90044
all the above are what we call FM only the first to chars should be used as there are over 2000 ids
the second digit is a zero
NR02297
TX00024
TR02175
TC12345
these are called SF
there for if C1 = T0 then print FM or c1=nr print SF
i have this so far
CODE
=IF((C1="TT"),FM,IF((C1="N0"),FM,IF((C1="NR"),SF,IF((C1="TR"),SF,"NONE"))))
and the error i get is
CODE
#NAME? TT90185
NONE T003478
#NAME? NR02297
NONE TX00024
hope this make sence
thanks
Nigel
edit
I have got it to work if i only put 2 char in c1 useing this
CODE
=IF((E5="TT"),"FM",IF((E5="N0"),"FM",IF((E5="NR"),"SF",IF((E5="TR"),"SF",IF((E5="T0"),"FM",IF((E5="TX"),"SF","NONE"))))))
how do i no only pick first 2 chars
also i need altogether 10 if statement i think excel only does 7 is that right
thanks
nigel