MID / LEN

T

trip_to_tokyo

In cell F 8 I have:-

4-12456

In cell I 8 I have:-

=MID(F8,3,LEN(F8))

The above formula returns 12456 in cell I 8. Why?

I know that MID, “returns a specific number of characters from a text
string, starting at the position you specify, and based on the number of
characters you specifyâ€.

I know that LEN, “returns the number of characters in a text stringâ€.

What I don’t understand is how the MID feeds into the LEN and / or vice
versa.

TIA for any replies!
 
J

Jacob Skaria

The last parameter specifies the number of characters you want MID to return
from text. Here you have given as 5 characters starting from position 3 or
len(F8) which is 7. If the lenght is more than what specified MID() will
return whatever is left..

=MID(F8,3,5)
OR
=MID(F8,3,99)
 
T

trip_to_tokyo

OK, got it, thanks Jacob.

Jacob Skaria said:
The last parameter specifies the number of characters you want MID to return
from text. Here you have given as 5 characters starting from position 3 or
len(F8) which is 7. If the lenght is more than what specified MID() will
return whatever is left..

=MID(F8,3,5)
OR
=MID(F8,3,99)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top