Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Extracting data on third line in a cell

Hi - and thanks for reading this!
I have a csv which I need to run a few format routines on to enable me
to use it. The first column contains data that is wrapped into 4 lines
- using carriage returns (?). I need to extract just the third line of
text. I'm guessing that there is a way of determining where the end of
each line is - but I don't know how!
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Extracting data on third line in a cell

Hi

The carriage returns will be represented by Char(10)
Substituting the third one with a circumflex "^" and then finding that, will
allow the extraction of the 4th line.

=MID(A1,FIND("^",SUBSTITUTE(A1,CHAR(10),"^",3))+1, 255)

--
Regards
Roger Govier

"maccboy" wrote in message
...
Hi - and thanks for reading this!
I have a csv which I need to run a few format routines on to enable me
to use it. The first column contains data that is wrapped into 4 lines
- using carriage returns (?). I need to extract just the third line of
text. I'm guessing that there is a way of determining where the end of
each line is - but I don't know how!
Thanks!

__________ Information from ESET Smart Security, version of virus
signature database 4530 (20091021) __________

The message was checked by ESET Smart Security.

http://www.eset.com




__________ Information from ESET Smart Security, version of virus signature database 4530 (20091021) __________

The message was checked by ESET Smart Security.

http://www.eset.com



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Extracting data on third line in a cell

On Oct 21, 6:48*pm, "Roger Govier"
<roger@technology4unospamdotcodotuk wrote:
Hi

The carriage returns will be represented by Char(10)
Substituting the third one with a circumflex "^" and then finding that, will
allow the extraction of the 4th line.

=MID(A1,FIND("^",SUBSTITUTE(A1,CHAR(10),"^",3))+1, 255)

--
Regards
Roger Govier

"maccboy" wrote in message

...





Hi - and thanks for reading this!
I have a csv which I need to run a few format routines on to enable me
to use it. The first column contains data that is wrapped into 4 lines
- using carriage returns (?). I need to extract just the third line of
text. I'm guessing that there is a way of determining where the end of
each line is *- but I don't know how!
Thanks!


__________ Information from ESET Smart Security, version of virus
signature database 4530 (20091021) __________


The message was checked by ESET Smart Security.


http://www.eset.com


__________ Information from ESET Smart Security, version of virus signature database 4530 (20091021) __________

The message was checked by ESET Smart Security.

http://www.eset.com


Thanks Roger!

That has sorted that bit of the problem. I'm now working on extracting
the data after the second ^ and before the third ^ (if there is one!)

Cheers.
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Extracting data on third line in a cell

extracting data is always a time consuming process, for extracting
data from documents, the web, websites, or data files, i found
http://www.extractingdata.com to be really useful, they build quick
custom web scraping and data extracting programs
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
extracting data from a cell Deba Prakash Mohanty Excel Worksheet Functions 2 April 30th 08 11:08 AM
Extracting data from a cell April Stallings Excel Worksheet Functions 2 July 14th 06 03:50 PM
Extracting data from a cell April Stallings Excel Discussion (Misc queries) 6 July 14th 06 03:10 PM
Extracting data from a cell - please help ajw150 Excel Discussion (Misc queries) 2 May 30th 06 09:13 AM
extracting data from a cell msam137 Excel Worksheet Functions 1 March 1st 05 06:52 PM


All times are GMT +1. The time now is 08:39 PM.

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"