Problem with ISTEXT()

  • Thread starter Thread starter Schizoid Man
  • Start date Start date
S

Schizoid Man

Why does the following formula return TRUE?

=ISTEXT(LEFT(A1,1))

where cell A1 contains the text "10Y".
 
Because LEFT is a text function, this will work

=ISTEXT(--LEFT(A1,1))

--


Regards,


Peo Sjoblom
 
Note that if the leftmost character is not a number the formula will be
incorrect so it's better to use ISNUMBER instead


=ISNUMBER(--(LEFT(A1,1)))


will return TRUE for 10Y and FALSE for YYY

--


Regards,


Peo Sjoblom
 
Back
Top