Thread: left function
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default left function

=MID(A1,MIN(IF(ISERROR(1*(MID(A1,ROW(INDIRECT("A1: A"&LEN(A1))),1))),
255,ROW(INDIRECT("A1:A"&LEN(A1))))),99)

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
HTH

Bob Phillips

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"ah" wrote in message
...
Hi;

Can anyone advice me on how to :
extract all the wording in a cell except the numeric value, for example:
Example:
For ABCDDEFG 1234------- I want it to appear as ABCDEFG for me only.
For ABC198765------------- I want it to appear as ABC for me only

Previously I'm using the left function as follows:
=LEFT(INDIRECT("Sheet1!A"&ROW()),8)

However, for the above formula to work, I need to know the exact number of
characters that I'm going to extract. Please advice whether there is any
other alternative solution for this. For your information, the numeric

value
will always be placed at the back.