LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Loop thru lines of text in a cell and extract specific values: please help?


Hello friends,
I have an excel worksheet with huge chunk of text in Column F, and i'd
like to loop through each line in this cell to get specific data from
it. This sheet is derived from an email that i have succeded in
importing into specific cells like From, To, CC, ReceivedTime, Body,
etc. into specific Cells. Column F has the body of the email that i'd
like to extract data from.

Now i want to loop through the huge chunk of body text in cell F and
extract specific values from them, placing each on respective columns
on another sheet called results. I have mapped each data to get, so
this is a work in progress and i am a little lost on how to completely
loop inside a single cell, perhaps you can take a look at my code? On
the sheet labelled "results" I have highlighted, in Yellow the columns
that needs to get data from my column F.... Please take a look at
cellF10 e.g. Use the down-arrow key to scroll to the botton if all is
not visible as the text in it is large.

What i am trying to extract into results sheet from each line of the
cells in Column F (e.g F10) is:

Project:
Project ID:
Sub Profile:
Sub ProfileID: (# in brackets right after subprofile Name)

Employee:
EmpNo:
Weeklys data for each employee should span across columns as -
02/19:
02/26:
03/05:
03/12:
03/19:

I have started this, and i can get the other columns, but i don't know
how to work out a way to loop through the huge text in column F and get
this data from there. I can use the Instr function for that, but i need
to loop thru cells in column F first...

I have attached the sheet for your viewing and you can take a look at
my in progress code. Please help. :)


+-------------------------------------------------------------------+
|Filename: profileMacro.zip |
|Download: http://www.excelforum.com/attachment.php?postid=4557 |
+-------------------------------------------------------------------+

--
Mslady
------------------------------------------------------------------------
Mslady's Profile: http://www.excelforum.com/member.php...o&userid=27776
View this thread: http://www.excelforum.com/showthread...hreadid=528744

 
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
Extract text within two specific values within a cell Michelle Excel Worksheet Functions 1 February 11th 09 08:48 PM
Extract a specific portion of text as new cell value Craig860 Excel Discussion (Misc queries) 6 March 20th 08 05:06 PM
Extract specific text NunRacer Excel Worksheet Functions 15 July 30th 07 01:52 AM
Extract Specific Text mjmoore Excel Worksheet Functions 2 June 2nd 06 08:28 PM
UDF code to find specific text in cell comments, then average cell values bruch04 Excel Programming 3 December 5th 05 10:01 PM


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