View Single Post
  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way, assume the string is in A1

=MATCH(TRUE,ISNUMBER(--MID(A1,ROW(INDIRECT("1:"&LEN(A1)))+1,1)),0)

entered with ctrl + shift & enter,

and to get the number of of numbers just use the cell result, assume you put
that formula in B1, in C use

=LEN(A1)-B1

note that if there are spaces they will be counted so you could wrap each
cell refof in the cell with TRIM


=MATCH(TRUE,ISNUMBER(--MID(TRIM(A1),ROW(INDIRECT("1:"&LEN(TRIM(A1))))+1,1 )),0)

then

=TRIM(LEN(A1)-B1 for the numbers


Regards,

Peo Sjoblom

"Jordan" wrote:

I have a cell that has a mix a text and numbers. I need to know how many of
the charaters are text and how many are numbers. It usually is something
like JDR89765 or JD5674, meaning that the text is on the left side. If
possible I would like to read from left to right and get a count of how many
text char there are before the first number.

Any help will be greatly appreciated.

Thanks in advance.