=left or =right

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have column A populated with numbers which all end in a letter for example
123A, 1258M, 999Z. In the B i woul like to the numbers excluding the letter,
ie 123, 1258, 999.

How do I do this?
 
Slight adjustment there,

=LEFT(A1;LENGTH(A1)-1)*1
Should be
=LEFT(A1;LEN(A1)-1)*1

And just to expand a little
=LEFT(A1;LEN(A1)-1)
will return the number as text.

HTH
Martin
 
Are you sure, Martin? Colons are normally used to define an array, so a
colon in this case would be invalid syntax. The list separator, a
semi-colon in some regional settings, is more likely to be a comma in other
settings. Hence you may want =LEFT(A1,LEN(A1)-1)*1, or alternatively
=--LEFT(A1,LEN(A1)-1)
 
Actually, those characters should match whatever the user has as a list
separator.

In the USA, most(?) people use a comma. In Europe, most(?) use a semicolon
(;)--not a colon.

I don't think many people use colons for this list separator.
 
Yeah, I don't think I can even give myself a satisfactory explanation
for that little brain snap.

Apologies to all. I'm off to bed.

Regards
Martin
 
Back
Top