Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Isa
 
Posts: n/a
Default Select only the letters from a cell

Hi,

I have a list of values which include letters and numbers:

ADP45
DSVC54
DEPT25 etc....
In the next column I want to only see the letters without the numbers:
ADP
DSVC
DEPT

Is there a function to do this?

Thanks.

Isa.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Select only the letters from a cell

Here is one way

=SUBSTITUTE(A1,LOOKUP(9.99999999999999E+307,--MID(A1,MIN(SEARCH({0,1,2,3,4,5
,6,7,8,9},A1&"0123456789")),{1,2,3,4,5,6,7,8,9,10, 11,12,13,14,15})),"")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Isa" wrote in message
...
Hi,

I have a list of values which include letters and numbers:

ADP45
DSVC54
DEPT25 etc....
In the next column I want to only see the letters without the numbers:
ADP
DSVC
DEPT

Is there a function to do this?

Thanks.

Isa.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Brad
 
Posts: n/a
Default Select only the letters from a cell

This way works - however I'm confused on one item.

The MID(A1,MIN(SEARCH({0,1,2,3,4,5
,6,7,8,9},A1&"0123456789")),{1,2,3,4,5,6,7,8,9,10, 11,12,13,14,15}) function

Searched for the first occurance of a number - got that - I understand that
the '0123456789" adds a number just in case the cell has no number.

However the {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15} is supposed to give the
length of the number (one, two, three, .... positions)? how is that
happening - when I'm trying to pull it apart - I'm only getting 1 for this
field regardless on how big the number is?

"Bob Phillips" wrote:

Here is one way

=SUBSTITUTE(A1,LOOKUP(9.99999999999999E+307,--MID(A1,MIN(SEARCH({0,1,2,3,4,5
,6,7,8,9},A1&"0123456789")),{1,2,3,4,5,6,7,8,9,10, 11,12,13,14,15})),"")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Isa" wrote in message
...
Hi,

I have a list of values which include letters and numbers:

ADP45
DSVC54
DEPT25 etc....
In the next column I want to only see the letters without the numbers:
ADP
DSVC
DEPT

Is there a function to do this?

Thanks.

Isa.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
enhanced conditional formatting Stuart Excel Discussion (Misc queries) 13 November 13th 05 07:20 PM
select a cell and the one next to it Donna S Excel Discussion (Misc queries) 3 November 4th 05 06:53 PM
Counting the number of letters in a cell beefycj5 Excel Discussion (Misc queries) 2 June 1st 05 08:28 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
I want to select the first blank cell in column A Greegan Excel Worksheet Functions 7 March 13th 05 12:56 PM


All times are GMT +1. The time now is 09:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"