Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
DJS1234
 
Posts: n/a
Default How to split up bulk text??????


Hi everyone, i'm really stuck with this one....

I have recently been charged with exporting data from my companies ACT!
database and putting into excel ready to go into our new CRM package.

I used an ACT! exporter that has left me a spreadsheet with data that I
cant use yet.

The notes for a particular contact are not split up into different
cells as they should be, rather they are all put into one cell with the
dates in as such-

23/11/2000 quick brown fox jumped over the blah blah 24/11/2004 quick
brown fox jumped over the blah blah 26/04/2005 quick brown fox jumped
over the blah blah 27/04/2005 quick brown fox jumped over the blah blah
28/04/2005 quick brown fox jumped over the blah blah

basically every time there is a date i want excel to move the data
before the next date into a new cell or at least a new line so i can
copy/paste a new line.

Please can anyone help!!!!!!!!!!!

Thanks in advance!


--
DJS1234
------------------------------------------------------------------------
DJS1234's Profile: http://www.excelforum.com/member.php...o&userid=28060
View this thread: http://www.excelforum.com/showthread...hreadid=475762

  #2   Report Post  
vezerid
 
Posts: n/a
Default

DJS,
Is the number of words between dates always the same?

Kostis Vezerides

  #3   Report Post  
vezerid
 
Posts: n/a
Default

DJS,
never mind the question. Here is a quick solution, even for the case of
variable number of words per sentence.

In the following, I am assuming that there are no numeric values in
your data: only dates and words. I am also assuming that your imported
text is in cell A1 (BTW, the maximum an Excel cell can hold is 32767
characters, so you might have lost data anyway).

In column B:B we will place the positions of the spaces, which are our
delimiters:
B1: =FIND(" ", $A$1)
B2: =FIND(" ", $A$1, B1+1). Copy B2 formula down until you see #VALUE!

In column C:C we will put the individual words, preserving the date
format.
C1: =MID($A$1,1,B1-1)
C2: =MID($A$1,B1+1,B2-B1-1). Copy C2 down.

In column D:D we will gradually build the lines from the broken words.
D1: =MID(A1,1,C1-1)
D2: =IF(NOT(ISERROR(VALUE(C2))),TEXT(C2,"mm/dd/yyyy"),D1&" "&TEXT(C2,
"mm/dd/yyyy")). Copy D2 down.

Finally, in column E:E we will leave only full lines.
E1: =IF(NOT(ISERROR(VALUE(D2))),D1,""). Copy down as necessary

At the end of this process, you are left with a column with most rows
blank. The non-blank rows will be the ones with the imported lines.

Edit|Copy column E:E.
Edit|Paste Special in F1. Check the Values checkbox.

Now column F:F contains the data amongst many empty lines. Sort column
F:F and you will have all the lines together.

HTH
Kostis Vezerides

  #4   Report Post  
DJS1234
 
Posts: n/a
Default


No unfortunately not, they are all of variable lengths.


--
DJS1234
------------------------------------------------------------------------
DJS1234's Profile: http://www.excelforum.com/member.php...o&userid=28060
View this thread: http://www.excelforum.com/showthread...hreadid=475762

  #5   Report Post  
DJS1234
 
Posts: n/a
Default


Thanks for that, you say that you assume there is no number ic data, the
only numeric data is the date which is in 24/01/2005 format.

Is that ok?

Cheers


--
DJS1234
------------------------------------------------------------------------
DJS1234's Profile: http://www.excelforum.com/member.php...o&userid=28060
View this thread: http://www.excelforum.com/showthread...hreadid=475762



  #6   Report Post  
vezerid
 
Posts: n/a
Default

Yes, if the only numeric data is dates, this setup should work fine.

Kostis

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
Split text and number Jambruins Excel Discussion (Misc queries) 5 October 5th 05 09:56 PM
text cells end page how split to next. Text lost! Elaine Excel Discussion (Misc queries) 1 August 28th 05 05:48 PM
Split Long Text Cell into Two Shorter Cells Without Splitting Word Naomi T Excel Discussion (Misc queries) 1 July 7th 05 06:49 AM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Can I split a cell diagonally, with text in each triangle ? Helen T Excel Discussion (Misc queries) 1 May 13th 05 04:32 PM


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