Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Parseing to produce text only

I am looking for a formula which will parse a cell containing both numbers
and then text.
eg cell contains 1:44. 5/1.(36.44) The text begins here....
The resulting formula will produce-The text begins here....
There is no common delimiter

regards Mick
You don't need a parachute to skydive,
You only need a parachute to skydive twice...

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Parseing to produce text only

eg cell contains 1:44. 5/1.(36.44) The text begins here....
There is no common delimiter


What about the closing ")" ?

As a last resort this array formula** will work if there truly is no common
delimiter *and* the text starts with a letter from a to z:

=MID(A1,MATCH(1,(CODE(MID(UPPER(A1),ROW(INDIRECT(" 1:"&LEN(A1))),1))=65)*(CODE(MID(UPPER(A1),ROW(IND IRECT("1:"&LEN(A1))),1))<=90),0),255)

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Mick Barry" wrote in message
...
I am looking for a formula which will parse a cell containing both numbers
and then text.
eg cell contains 1:44. 5/1.(36.44) The text begins here....
The resulting formula will produce-The text begins here....
There is no common delimiter

regards Mick
You don't need a parachute to skydive,
You only need a parachute to skydive twice...



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Parseing to produce text only

You can use a shorter formula** by using a defined name.

InsertNameDefine
Name: Letters
Refers to:

={"A","B","C","D","E","F","G","H","I","J","K","L", "M","N","O","P","Q","R","S","T","U","V","W","X","Y ","Z"}

Then, this array formula** :

=MID(A1,MIN(FIND(Letters,UPPER(A1)&Letters)),255)

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
eg cell contains 1:44. 5/1.(36.44) The text begins here....
There is no common delimiter


What about the closing ")" ?

As a last resort this array formula** will work if there truly is no
common delimiter *and* the text starts with a letter from a to z:

=MID(A1,MATCH(1,(CODE(MID(UPPER(A1),ROW(INDIRECT(" 1:"&LEN(A1))),1))=65)*(CODE(MID(UPPER(A1),ROW(IND IRECT("1:"&LEN(A1))),1))<=90),0),255)

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Mick Barry" wrote in message
...
I am looking for a formula which will parse a cell containing both numbers
and then text.
eg cell contains 1:44. 5/1.(36.44) The text begins here....
The resulting formula will produce-The text begins here....
There is no common delimiter

regards Mick
You don't need a parachute to skydive,
You only need a parachute to skydive twice...





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Parseing to produce text only

Thanks Mr Biff,
Works a treat!
I hope Excel 4 macros understands array formulas.

regards Mick
The ark was built by amateurs, the Titanic was built
by professionals.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Parseing to produce text only

"T. Valko" wrote...
eg cell contains 1:44. 5/1.(36.44) The text begins here....
There is no common delimiter

....
As a last resort this array formula** will work if there truly is no
common delimiter *and* the text starts with a letter from a to z:

=MID(A1,MATCH(1,(CODE(MID(UPPER(A1),ROW(INDIRECT( "1:"&LEN(A1))),1))=65)
*(CODE(MID(UPPER(A1),ROW(INDIRECT("1:"&LEN(A1))), 1))<=90),0),255)

....

Picky: this begins at the first letter in the string. That may be what the
OP wants, but the OP's request is ambiguous. Text might begin with the first
letter after the last numeral. And it becomes much harder if the numeric
part could contain letters and the text part embedded numbers.




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Parseing to produce text only

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Mick Barry" wrote in message
...
Thanks Mr Biff,
Works a treat!
I hope Excel 4 macros understands array formulas.

regards Mick
The ark was built by amateurs, the Titanic was built
by professionals.





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
can excel produce text in a given cell as a result of a boolean operation? Richard Erlacher Excel Discussion (Misc queries) 5 October 26th 06 09:39 PM
Parseing Text strings [email protected] Excel Discussion (Misc queries) 8 September 5th 06 10:11 PM
How do I produce a number in parentheses? CLR Excel Discussion (Misc queries) 5 June 8th 06 06:17 AM
produce a formulate to produce assigned seats for dinner DavidJoss Excel Worksheet Functions 0 October 4th 05 02:29 AM
How to produce comma-delimited and quoted text file from Excel? Roger Kenner Excel Discussion (Misc queries) 1 September 15th 05 07:19 PM


All times are GMT +1. The time now is 12:58 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"