ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Extracting certain text from text string (https://www.excelbanter.com/excel-worksheet-functions/228884-extracting-certain-text-text-string.html)

Haydie-lady[_2_]

Extracting certain text from text string
 
I have a database list that I export into xls monthly. Once pasted in xls the
list is just one column w/ several rows a text string (see below). I need to
extract the description only. Please help. see below

Rev.2 Doc-5A - Safety in the Workplace 3/26/04

all I want to extract into another cell is "Safety in the Workplace"


kassie

Extracting certain text from text string
 
Do you import in Excel, or do you paste in Excel? Also, if you import, why
not do so as a fixed length record, and set the column widths to seperate the
text into columns? What program are you importing from? If you copy ad
paste, what are the chances of rather importing?

--
HTH

Kassie

Replace xxx with hotmail


"Haydie-lady" wrote:

I have a database list that I export into xls monthly. Once pasted in xls the
list is just one column w/ several rows a text string (see below). I need to
extract the description only. Please help. see below

Rev.2 Doc-5A - Safety in the Workplace 3/26/04

all I want to extract into another cell is "Safety in the Workplace"


bosco_yip[_2_]

Extracting certain text from text string
 
A1 =Rev.2 Doc-5A - Safety in the Workplace 3/26/04

B1, formula :

=MID(A1,FIND(" -",A1)+3,FIND("/",A1)-FIND(" -",A1)-5)

Regards
Bosco


"Haydie-lady" wrote:

I have a database list that I export into xls monthly. Once pasted in xls the
list is just one column w/ several rows a text string (see below). I need to
extract the description only. Please help. see below

Rev.2 Doc-5A - Safety in the Workplace 3/26/04

all I want to extract into another cell is "Safety in the Workplace"



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com