Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default text strings



I have a lot of data in one cell in excel...and the data looks like this...

; ;

I want to copy the text between each semilcolon...then past it to a new cell..

how do i loop through the cell and copy the data between each semicolon?

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default text strings

With the data in cell C1 the below macro will extract the information and
write to colA starting from Row1....Without using macros you can try out
Data--Text to Columns with semicolon as delimiter

Sub ExtractCellData()
Dim intTemp As Integer
Dim strData As String
Dim arrData As Variant
strData = Range("C1")
arrData = Split(strData, ";")
For intTemp = 0 To UBound(arrData)
Range("A" & intTemp + 1) = Trim(arrData(intTemp))
Next
End Sub


If this post helps click Yes
---------------
Jacob Skaria


"dstiefe" wrote:



I have a lot of data in one cell in excel...and the data looks like this...

; ;

I want to copy the text between each semilcolon...then past it to a new cell..

how do i loop through the cell and copy the data between each semicolon?

Thank you

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 419
Default text strings

dstiefe,

- Select the cells that have data like this. Columns to the right should be
blank. Each email address will be placed in cells to the right of the ones
selected.
- "Data" menu "Text to Columns..." submenu
- Make sure "Delimited" is selected
- Click the "Next " button
- Check "Semicolon"
- Consider unchecking all other delimiters...especially if any of them show
up in the data.
- Click the "Finish" button to execute immediately...
....or...
- Click the "Next " button just to see what settings are on the next page
- Do not make any changes on Step 3
- Click the "Finish" button.

HTH,

Conan Kelly





"dstiefe" wrote in message
...


I have a lot of data in one cell in excel...and the data looks like
this...

; ;

I want to copy the text between each semilcolon...then past it to a new
cell..

how do i loop through the cell and copy the data between each semicolon?

Thank you



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
find and replace numeric strings in larger text strings Mr Molio Excel Worksheet Functions 8 November 9th 11 05:17 PM
Looking for Text strings Scats Excel Worksheet Functions 3 March 24th 10 11:38 PM
Separating Strings of Text Ben in CA[_2_] Excel Discussion (Misc queries) 14 December 24th 08 11:59 PM
Matching Two Text Strings to see if Like caldog Excel Worksheet Functions 4 December 29th 06 09:53 PM
'Properise' text strings using VBA Rier Excel Programming 3 November 22nd 03 08:12 PM


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