Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
KRK KRK is offline
external usenet poster
 
Posts: 91
Default parsing text

Hello,

I have a spreadsheet (excel 2007) with many ( a few hundred) lines of text.
Each line is in a single cell (A1, A2, A3, ... ) and is quite long. I want
to split the line into several chunks, with each chunk in a different cell
on the same line. The chunk 'boundaries' can be identified by keywords or
characters, eg *, 'name'. I think this is called parsing ?

Is there a way of doing this easily & quickly for all the lines without
writing a macro?. I have no experience of macros & don't want to spend a lot
of time learning for what will probably be a one-off project.

Hope this makes sense.

Thanks for advice, hints & tips etc

KK

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5,651
Default parsing text

On Sat, 8 Mar 2008 12:31:35 -0000, "KRK"
wrote:

Hello,

I have a spreadsheet (excel 2007) with many ( a few hundred) lines of text.
Each line is in a single cell (A1, A2, A3, ... ) and is quite long. I want
to split the line into several chunks, with each chunk in a different cell
on the same line. The chunk 'boundaries' can be identified by keywords or
characters, eg *, 'name'. I think this is called parsing ?

Is there a way of doing this easily & quickly for all the lines without
writing a macro?. I have no experience of macros & don't want to spend a lot
of time learning for what will probably be a one-off project.

Hope this makes sense.

Thanks for advice, hints & tips etc

KK


It can be done easily once you define the "chunk boundaries".

Macros are fairly simple to implement, but, depending on the nature of your
boundaries, formulas may also be fairly simple.

--ron
  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,501
Default parsing text

Hi,

You dont provide too much information but in principal parsing text is
fairly straightforward. Using the sentence:-

my name is MikeH and this is a sentence
=LEFT(A1,FIND("MikeH",A1,1)+5)
extracts 'my name is MikeH'

This formula
=MID(A1,FIND("MikeH",A1,1),999)
extracts 'MikeH and this is a sentence'

and if you want a bit out of the middle
=MID(A1,FIND("MikeH",A1,1),5)
extracts 'MikeH'

Hope this gets you off in the right direction.

Mike

"KRK" wrote:

Hello,

I have a spreadsheet (excel 2007) with many ( a few hundred) lines of text.
Each line is in a single cell (A1, A2, A3, ... ) and is quite long. I want
to split the line into several chunks, with each chunk in a different cell
on the same line. The chunk 'boundaries' can be identified by keywords or
characters, eg *, 'name'. I think this is called parsing ?

Is there a way of doing this easily & quickly for all the lines without
writing a macro?. I have no experience of macros & don't want to spend a lot
of time learning for what will probably be a one-off project.

Hope this makes sense.

Thanks for advice, hints & tips etc

KK


  #4   Report Post  
Posted to microsoft.public.excel.newusers
KRK KRK is offline
external usenet poster
 
Posts: 91
Default parsing text - THANKS

Mike

This is exactly what I was looking for, thanks for your help.

K


"Mike H" wrote in message
...
Hi,

You dont provide too much information but in principal parsing text is
fairly straightforward. Using the sentence:-

my name is MikeH and this is a sentence
=LEFT(A1,FIND("MikeH",A1,1)+5)
extracts 'my name is MikeH'

This formula
=MID(A1,FIND("MikeH",A1,1),999)
extracts 'MikeH and this is a sentence'

and if you want a bit out of the middle
=MID(A1,FIND("MikeH",A1,1),5)
extracts 'MikeH'

Hope this gets you off in the right direction.

Mike

"KRK" wrote:

Hello,

I have a spreadsheet (excel 2007) with many ( a few hundred) lines of
text.
Each line is in a single cell (A1, A2, A3, ... ) and is quite long. I
want
to split the line into several chunks, with each chunk in a different
cell
on the same line. The chunk 'boundaries' can be identified by keywords or
characters, eg *, 'name'. I think this is called parsing ?

Is there a way of doing this easily & quickly for all the lines without
writing a macro?. I have no experience of macros & don't want to spend a
lot
of time learning for what will probably be a one-off project.

Hope this makes sense.

Thanks for advice, hints & tips etc

KK



  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default parsing text

You may be able to do it with DataText to Columns if you can define the type of
separator to split the "chunks" into cells.

i.e. comma or space or something similar.

You may have to insert a separator first by using EditReplace on your data to
change a common keyword to a character.

Note: a single letter can be a de-limiter. Just remember the letter would be
case-sensitive.


Gord Dibben MS Excel MVP


On Sat, 8 Mar 2008 12:31:35 -0000, "KRK"
wrote:

Hello,

I have a spreadsheet (excel 2007) with many ( a few hundred) lines of text.
Each line is in a single cell (A1, A2, A3, ... ) and is quite long. I want
to split the line into several chunks, with each chunk in a different cell
on the same line. The chunk 'boundaries' can be identified by keywords or
characters, eg *, 'name'. I think this is called parsing ?

Is there a way of doing this easily & quickly for all the lines without
writing a macro?. I have no experience of macros & don't want to spend a lot
of time learning for what will probably be a one-off project.

Hope this makes sense.

Thanks for advice, hints & tips etc

KK


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
Parsing out text or numbers Clay Excel Worksheet Functions 2 April 24th 07 09:16 PM
parsing text [email protected] Excel Discussion (Misc queries) 1 April 11th 07 01:29 PM
Parsing Number from Text Brian Excel Discussion (Misc queries) 16 April 6th 07 03:43 AM
Parsing text Hamster07 Excel Discussion (Misc queries) 3 February 1st 07 07:32 PM
Parsing text in Excel Jack Edwards Excel Worksheet Functions 3 November 4th 04 03:54 PM


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