Split Text Across Columns With Delimiters
Apr 17, 2008
I have a column full of text with most data separated by commas, except sometimes between the commas there is a string, marked by ' ' , which itself contains commas.
For example: 45,'im a string, look at me',67,43,5,'im another string, look at me',78
I try to make excel put all the data into columns, so 'im a string, look at me' will have its own column, instead of being split into two columns. I tried telling excel that the ' character marks strings, but it just removed the apostrophes and kept splitting any string that contained a comma. I tried to use a special delimiter,' but excel didn't allow me to. Does someone have a macro that will do the text to columns for me, or is this possible to do with the regular text to columns feature of excel?
View 2 Replies
ADVERTISEMENT
Apr 8, 2014
I have the cell data as below
How would I split into a new column the first part which is a date into a new column, then the country and the remainder into separate columns?
I still want the original data as I need to check that the splits worked well?
16.5.90 CH 1671/90-4
18.10.1991 CH 3056/91-1
24.07.92 ch 2341/92-2
30.7.92 ch 2395/92-3
18.11.92 Us 3533/92-5
26.5.93PCT 1577/93-0
9.8.93 CH 2363/93-8
17.8.93 CH 2445/93-0
25.1.94ch209/94-6;8.12.94ch3714/94-1
25.1.94 ch 209/94-6 ; 8.12.94 ch 3714/94-1
8.4.94 ch 1047/94-0
22.4.94 ch 1255/94-7
18.11.1992 CH 3533/92-5
18.11.1992CH 3533/92-5
View 2 Replies
View Related
May 1, 2008
I'm trying to split a cell with 2 different delimiters.
As example
A1 10'48"
to
B1 10
C1 48
I have about 10.000 entries like those. And i think a macro should be the most suitable for it.
But I'm not experienced enough to make it work.
View 3 Replies
View Related
Jan 5, 2010
I've got some time values in an Excel Sheet in the format hh:mm:ss. I need to split them into columns (including the colon) like below:
hh: | mm: | ss
I can do this manually using text to columns but when I use text to columns in my macro, it automatically changes the time format to h:mm:ss PM
View 2 Replies
View Related
Jun 4, 2014
I am having quite a bit of a challenge here and am not able to code to split the text into columns. The text to columns does not work here unfortunately. Below is my situation. In one column that has the contract details I have the data as follows:
Account Manager Jennifer MacFarlane CONSULTING - GENERAL on 20-JUN-13 Function #:176749
Account Manager Janet Bewers CONSULTING - GENERAL on 25-JUL-13 Function #:176878
Account Manager Janet Bewers HEAT STRESS AWARENESS on 27-JUN-13 Function #:176828
Account Manager Janet Bewers TRACTOR SAFETY AWARENESS on 08-AUG-13 Function #:177383
What do I key in to get Account Manager in one column, the name of the person in another column and the one in caps in another column and the date in one column and the function in another column. I tried using left, right and LEN and something is terribly wrong with my logic
View 4 Replies
View Related
Nov 15, 2006
Need to split the WORD into Col B and put the DEFINITION into Col C.
Here's an example of what's sitting in A1:
Title – A description of record contents
I've tried using the text to columns but can't get it to work.
(since the Words are all different lengths, something gets chopped off)
What I have today:
In column A (within a single cell is both the Word & it's Definition).
I need to extract the word ONLY into a new column (B)
and extract all the other words into column (C) (without the dash)...
I've also tried :
=LEFT(A1, FIND(" ",A1)-1)
and successfully stripped the Word into column B
but can't find any functions to extract the rest properly into C
I JUST noticed, some WORDS are multuple...example:
Information Protection Level – Used to identify information protection values per Pro 2227
Can you provide a function for doing a 3 word extraction to Col B?
I guess, what I REALLY need is for it to take "everything up to the dash" and put in column B......then put everything after the dash and put in col C.
View 9 Replies
View Related
Jan 14, 2014
I'm trying to write code to join two columns of data, and then join all of those into one cell.CA
California
DE
Delaware
CT
Connecticut
I want to be able to run the macro and have it put {"CA":"California","DE":"Delaware","CT":"Connecticut"} into cell C1.
I was thinking that this would have to be a two part macro. First, it would take each specific row and join CA and California and add the colon, quotation marks, and the comma, and put it Column C. Then, after it's gone through every row, it would join every cell in column C together.
This is what I've written so far:
VB:
Sub test1()
Dim r As Range
Dim lr As Integer
[Code]....
Now I need to figure out the second part. How do I then take all of the join cells in column C and join them together, adding the curly braces at the beginning and the end, and removing the comma from the very last row?
View 4 Replies
View Related
Sep 4, 2009
I have data in Column A that is from a text file that contains 50,000 rows , this is pipe delimited data that is 300 columns wide. I would like to be able to keep the columns but using the Text to Column functions means that I lose some them.
I was wondering if anyone knew how to separate the text in to 2 sheets, with the first 200 columns in Sheet 1 and the remaining in Sheet 2. The reason I would like to separate the information in to cells is so that I can investigate the data better.
Its not possible to traspose this information as the rows are nearly 50,000 long.
Here is a small sample of what 1 row is like, it not the entire row. Each "|" character represents a break and a new column.
PHP
A|01234567/163|01234567/163|AB123456B|Mr|Gordon|Brown|01-01-1960|1|10 Downing Street|SW1A 1AP|4|||||||||||||||||||||0|0|16-06-2009|16-06-2009||
View 9 Replies
View Related
Feb 5, 2010
Once again I return to the brilliant ones on this board. I read the Excel help page for "Split text among columns by using functions". But my parsing task is more advanced than what I could gather from this function.
Here is the contents of cell A1 to be parsed:
Pack type,(make selection),Pack A[=4.95],Pack B[=5.95],Pack C[=7.95]
I need to extract 4.95 into cell A2, 5.95 into A3 and 7.95 into A4. How
Oh also, I have many variations of that example, and want your solution to work for the variations. So here is another actual cell that I have to be parsed:
Qty. discount,(Make Selection),1[=18.95],2 to 4[=17.95],5+[=16.95]
So, each extracted value will always be preceded by = and followed by ]
View 9 Replies
View Related
Dec 9, 2006
I got a question regarding a what formula can i use to act like the Split method in programming. I would like if this can be done with a formula not programming cos i am a programmer Basically i got a column full of data in the following format:.dddd.ddddddd.ddddd. Now the number of the "d" can be random in between the dots. So i would like to be able to split the line by looking at the "." .There is one thing though that each line does have 3 or 4 "." characters.
View 3 Replies
View Related
Jun 17, 2008
I am trying to write a micro code to split text which is copied into cell A1 into columns. I can do this fine by going to "data" the "text to Columns" and selecting the places i want to split the text (this is the same for every piece of data i copy in).
The macro works perfectly every time. the problem is that the spreadsheet is shared and i want to protect certain cells on the sheet, when i protect the sheet the recorded macro does not work as the "data", "text to columns" is not available in a protected workbook.
I was just wondering if someone could help me, so i can run a macro to split the text which also allows me to protect cells. In the "text to column" option the "fixed width" (column breaks) i choose are: 4, 25, 34 and 43.
View 11 Replies
View Related
Jul 20, 2012
I have 5 columns with data in each
I want to create a 6th column that looks to the columns on the left with data in ti and concatenates all data in the 5 columns and puts it into one cell in the 6th column however put a space between each break of data so that it can be distinguished which bit of data was in what column previously.
The challenge is the new 6th column can only contain 30 characters - When it exceeds 30 characters then create a 7th column and put the rest of data in the 7th column, again the 7th column can only have 30 characters so if exceeds this then put the remaining characters in a 8th column
There will never be more than a total of 90 characters in the original 5 columns so there will only need to be scope for a maximum of 3 additional columns
So for example
Column A had two words in it that totaled 20 characters (the space between the two words is also counted as a character)
Column B had two words in it that totaled 20 characters (the space between the two words is also counted as a character)
Column C had a word that contained 10 characters
Column D had a word that contained 5 characters
Column E had a word that contained 10 characters
Then the result would be
Column F would only have the data originally held in Column A (because it can't include Column B's data as this would exceed the 30 characters)
Column G would have data that was originally held in column B and column C - with a space between B and C data
Column H would have data that was originally held C, D and E - with a space between C, D and E data
Another point to consider is if in one of the orginal 5 columns had say 3 words in it and lets say the 3rd word is the word that exceeds the 30 character limit, then the whole of the third word is to be carried oved to the next new column, I can't have words cut in hlaf with one half in Column 'F' and the other half in Column 'H' for example.
View 1 Replies
View Related
Feb 26, 2009
i have cells with city and state in them and i'm trying to separate the one column into two columns. the problem is, i'm trying to keep the city name in one column and the state in the other. some of my cells have two word cities like new albany, or upper arlington. the text to columns feature is separating those cells into 3 columns not 2. is there a way to do this?
example:
worthington, oh
upper arlington, oh
text to columns splitting upper arlington into 3 different cells because the only delimiter in the cell is a space. i need to keep upper arlington in one cell and oh in another.
View 7 Replies
View Related
Mar 29, 2012
I have a large number of product descriptions of varying lengths (column A) which I need to split into a maximum of 3 columns depending on the total length of the description. Each description in column A is less than 90 characters. Each column (B, C & D) can only be a maximum of 30 characters including spaces and commas etc. Also words cannot be split. Below is a sample of the result I would expect with the description in column A and the 3 extracted columns in B, C and D. I am using Excel 2003.
View 4 Replies
View Related
Feb 6, 2008
I am trying to split a cell into column by number. e.g. KOPAS LIMITED 30 ST CLAIR AVE W SUITE 1111 TORONTO ON
to
KOPAS LIMITED(new column)30 ST CLAIR AVE W SUITE(new column)1111 TORONTO ON. The numbers are random. My list is of 27000 rows long.
View 7 Replies
View Related
Apr 8, 2013
I have a column within a spreadsheet that has data separated by 2 delimiters, a "" and a "/". (This data has been extracted from a linux-based file.)
For example: "1100789/3200899/6xlm-sgt-455-0987"
The items of data are from a bill of material (parts explosion) and the number preceding the "" is a quantity and the numbers preceding the "/" is a sub-part number of the main part number that is entered into a column to the left of this data string. (unseen in the example)
I need to take this string of numbers and place the quantity in one column, the part number in another column, then add a row and continue to populate each column until the data has all been separated, then move on to the next main part number row to continue the process.
for example:
1 100789
3 200899
6 xlm-sgt-455-0987
Is this possible with the data tools in a spreadsheet, or will I need to write a macro?
View 9 Replies
View Related
Jan 9, 2008
I have a spreadsheet which performs certain operations as long as I insert 3 values in 3 cells. The results for different scenarios are shown within the same sheet. excample:
I insert
3,52,051,22
then many calculations are performed automatically and the result are shown in other cells in the same sheet.
My goal is to be able to copy/paste ca 8-10 strings of information at the same time. All of them at the same time, instead of only one at the time. Also, there will be a textstring and some digits I don’t need along with the copy/pasted info.Ex:
Name Time Date X1 X2 X3
Lou 22.11 01.03.2006 3,5 2,05 9,72
Lie 12.01 01.03.2006 2,5 2,65 1,22
Tom 17.09 01.03.2006 4,5 8,09 3,28
etc.....................................
View 2 Replies
View Related
Jan 26, 2006
I am trying to split names across columns. The problem is that some names
spilt into 3 columns (first, middle, last), and others split across 5 or 6
(extra names, etc.)
Is there a way to specify split, using SPACE as a delimiter, but only split
on the first TWO spaces, then leave the rest alone?
View 9 Replies
View Related
Mar 13, 2009
I would like to "reverse concatenate" an address text string as follows: ....
View 9 Replies
View Related
Jun 30, 2008
I have a 2000 row sheet with an address field that contains the apartment number and the address. The text is displayed as unit number, then hyphen and the building/street number for example '101-1234 15th Street'. I'm looking to cut the building number from the cell and paste it into a seperate column. Ideally removing the hyphen completely, so that I have two columns 'unit number' and 'building/street address'.
View 5 Replies
View Related
Oct 26, 2013
Original table:
Column1
Column2
Column3
Column4
AAA
DDD
A1
X123, Y123, Z123
[Code] .......
View 1 Replies
View Related
Sep 26, 2007
I have a variable list. Each column will be 250 digits and numbers of rows will be variable. I want a macro to import a text file from a specific folder into a sheet without split it to columns. So we will work only in column A
Then macro will find B1002 wording in A1. if it is exist, it will copy the next 36 digits after B1002 wording if not then it will search A2 row. The next step will be to search and find another wording "B1001" if it finds it will replace copied 36 digits text. If it can not find B1001 wording it will go to upper row and search B1001 wording here and paste the text. This will go on till row shows #END. This means it reached the end of the list. And then macro will save this file as text file to another folder.
So macro will go to beginning to open other file in the folder and this will go on till last file in the folder.
This is the logic of the macro. Here is the sample of what I want.
Original Data: ....
View 9 Replies
View Related
Nov 19, 2013
I am trying to consolidate an .835 raw text file that is full of receipts and payments into rows by specific values/characters. Once opened within notepad/text format, I figured out that the ~CLP is the referencing value/character used to break up each individual payment.
I need to somehow use the ~CLP as the value(s) to sort the text into new rows, with each row pre-leading with the ~CLP.
For example:
~CLP*442.24*DTM*B6*PR~CLP*124.32...etc
New Row format needed:
~CLP*442.24*DTM*B6*PR
~CLP*124.32
View 6 Replies
View Related
Jul 23, 2009
Attached file where i m not able to split data in seperate seperate coloumn
View 3 Replies
View Related
Mar 15, 2005
I'm trying to take a large text file and break into smaller text size files. I want to open the data file, and parse into 5000 line smaller files.
Here is what I have based off of some MS KB
Sub LargeFileImport()
'Dimension Variables
Dim ResultStr As String
Dim FileName As String
Dim FileNum As Integer
Dim Counter As Double
Dim CounterMax As Double
Dim sPath As String
Dim FileCounter As Double
'Output File
View 9 Replies
View Related
Feb 1, 2009
i have in col A using 2007 these examples .
10. * 7x7 Showmed'cash (7) 3g b
5. * 08x90. Bean Rock (10) 6g b
8. * 31 Thenaia (12) 3f b
11. * Stormy Masika (9) 3g b
I have managed using text to cols separateting info inside the brackets and to the right .
Also the numbers very left .
My problem is there arnt any more things to use in text to cols to separate examples 7x7 Showmed'cash , 08x90. Bean Rock , etc .
View 9 Replies
View Related
Apr 2, 2007
Excel 2003
I have one column with a date and on the same row 12 other columns with nos
How can I convert this to 2 columns - first date and 2nd the no
View 9 Replies
View Related
Dec 9, 2009
I need help to split text (shown below) into 3 columns, now all text is in one cell.
e.g.,
HIPP 1 PLUS PROBIOTIK 600 G MILCHNAHRUNG PULVER 1607000286
I have over 30,000 rows of data which contains different number of spaces within a cell. Please see attached file.
View 14 Replies
View Related
Dec 1, 2013
1 1100200157326 7000000000011126 Mr .AA BB CC 30,548.68 16 1,759.00 3,523.75
1
1100200157326
700000000001
1126
Mr. AA BB CC
30,548.68
16
1,759.00
3,523.75
2 1100200313905 700000000002 1127 Miss AA BB 48,329.53 9 1,969.00 3,944.75
2
1100200313905
700000000002
1127
Miss AA BB
48,329.53
9
1,969.00
3,944.75
3 1100200568628 700000000003 1127 Mrs. AA 24,990.00 5 1,825.56 3,652.84
3
1100200568628
700000000003
1127
Mrs. AA
24,990.00
5
1,825.56
3,652.84
I have data on column A and I want split data to many columns. This is Example.
View 5 Replies
View Related
Feb 22, 2010
I'm trying to split the address stored in column A into two columns (i.e. columns B & C). I got more than 30,000 addresses stored in column A and got the following excel function to do the job. However, it seems not to exactly solve my problem.
in column B : =LEFT(A1,FIND(" ",A1,20)-1)
in column C : =right(A1,len(A1)-FIND(" ",A1,21))
First, using the above functions, I got to manually drag the formula to the end of column containing 30,000 records! I tried to use vba to perform the job the script failed to do so. I know there has been something I missed in my vba script but do not know how to correct it.
for k = 1 to 30,000
Range("b" & k).value = LEFT(range("A" & k),FIND(" ",range("A" & k,20)-1))
Range("c" & k).value = RIGHT(range("A" & k),len(range("A" & k)-FIND(" ",range("A" & k,21))
next
What I really want to do is split the addresses in columns B & C with the first text ended with "Street" or "Road" stored in Column A and the other text after "Street" or "Road" in column C.
column A : 128 Johnway Road, 12/F, Flat C, Kowloon, Hong Kong
column B : 128 Johnway Road
Column C : 12/F, Flat C, Kowloon, Hong Kong
View 9 Replies
View Related