Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Separating text into seperate fields

I have several long strings of text in which I would like to separate the
first sentance ending in ". " into another field. Which function would I need
to use. Any help would be greatly appreciated.

Example:
(1) Conformance. Cylinders shall comply with DOT specifications and shall
be.....

(1) Conformance. (cell 1)
Cylinders shall comply with DOT specifications and shall be.....(cell 2)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Separating text into seperate fields

Hi,

To extract the first bit try
=LEFT(A1,FIND(".",A1,1)-1)
and the second bit
=MID(A1,FIND(".",A1,1)+2,LEN(A1))

For the second bit you may have to adjust the +2 to allow for whether the
space is really there after the full stop.

Mike
"vanced" wrote:

I have several long strings of text in which I would like to separate the
first sentance ending in ". " into another field. Which function would I need
to use. Any help would be greatly appreciated.

Example:
(1) Conformance. Cylinders shall comply with DOT specifications and shall
be.....

(1) Conformance. (cell 1)
Cylinders shall comply with DOT specifications and shall be.....(cell 2)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Separating text into seperate fields

Changed my mind about the second one you can ignore the comment on spaces,
use this

=TRIM(MID(A1,FIND(".",A1,1)+1,LEN(A1)))

Mike

"vanced" wrote:

I have several long strings of text in which I would like to separate the
first sentance ending in ". " into another field. Which function would I need
to use. Any help would be greatly appreciated.

Example:
(1) Conformance. Cylinders shall comply with DOT specifications and shall
be.....

(1) Conformance. (cell 1)
Cylinders shall comply with DOT specifications and shall be.....(cell 2)

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Separating text into seperate fields

=LEFT(A1,FIND(".",A1))
=RIGHT(A1,LEN(A1)-FIND(".",A1))
--
David Biddulph

"vanced" wrote in message
...
I have several long strings of text in which I would like to separate the
first sentance ending in ". " into another field. Which function would I
need
to use. Any help would be greatly appreciated.

Example:
(1) Conformance. Cylinders shall comply with DOT specifications and shall
be.....

(1) Conformance. (cell 1)
Cylinders shall comply with DOT specifications and shall be.....(cell 2)



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
Separating text Francis Hookham Excel Discussion (Misc queries) 2 December 10th 06 08:35 PM
Excel SHOULD NOT AUTO-CHANGE formated text fields to DATE FIELDS! PSSSD Excel Worksheet Functions 2 August 8th 06 09:31 PM
separating fields Risa Charts and Charting in Excel 1 December 1st 05 07:25 AM
separating fields Risa Charts and Charting in Excel 0 November 30th 05 09:51 PM
Separating text PDJ Excel Worksheet Functions 1 January 18th 05 11:34 PM


All times are GMT +1. The time now is 12:36 PM.

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"