LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default extracting text from cells

Hi famdamly,

Without going to the compexity of regular expressions, my Excel add-in
"inspector text" has two easy ways to get what you're asking for:

=itEXCLUDE(A1,"0","1","2","3","4","5","6","7","8", "9")

and

=itREPLACE(A1,"[0-9]","",,TRUE)

Both of them give these results to your examples:

label
item
label
r
p

Also, both of them remove all instances of all digits, for example they
would return "label" for "lable123", and "item" for "01i23t45e67m89".

Here are the function references for itEXCLUDE and itREPLACE:

http://precisioncalc.com/it/itEXCLUDE.html
http://precisioncalc.com/it/itSEARCH.html

You can download the free edition of inspector text from here, and use
it as long as you wish:

http://PrecisionCalc.com


Good Luck,

Greg Lovern
http://PrecisionCalc.com
More Power In Excel



famdamly wrote:
First of all thanks to everyone for the assistance.

Perhaps it would be easier to show an example of sample data and the
desired result.

Sample data Desired result


A1 label3 F1 label
A2 item5 F2 item
A3 label2 F3 label
A4 6r F4 r
A5 3p F5 p


 
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
merged cells into one text cell, size varies dependant on text dat Jazzylady825 Excel Discussion (Misc queries) 0 December 9th 05 08:26 PM
vertical text across multiple cells BThrasher Excel Discussion (Misc queries) 3 December 5th 05 02:23 PM
Delete text in cells but keep formula YanYan Excel Worksheet Functions 4 December 1st 05 01:08 PM
Cells formated as text do not always display properly Cass Excel Discussion (Misc queries) 2 July 23rd 05 01:59 AM
how do i add the same text after current text in multiple cells Sue Excel Discussion (Misc queries) 3 January 13th 05 09:28 PM


All times are GMT +1. The time now is 10:21 AM.

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

About Us

"It's about Microsoft Excel"