Splitting Cell Data Into Columns / Data Cleaning
May 10, 2006
how to split data into columns.
I have a set of (imported) data consisting of 1000+ rows. The data set (bank statement) contain six informations (date1, transaction, vendor, date2, sum1, sum2) in one cell which has to be split into six columns.
Using text-to-columns will generate more than six columns since the set dosn't have any delimiters and both the transaction and vendor name-fields contain blank spaces.
Is there a way to either split the data into the correct number of columns or if text-to-columns is used - a way to manipulate the data into the correct columns, for instance with help of filtering ?
small data sample included
View 3 Replies
ADVERTISEMENT
Dec 5, 2012
I have been researching this for 3 days and I cannot find a solution. I have City, State information in A1. I also have City, State information in B1. I need to put them into City (D1) and State (E1).
View 4 Replies
View Related
Jan 29, 2013
I have a homework assignment where I have a list of companies with the products they have with one other company. The original company and their products are listed on the same row, with a dollar value assigned to the product. So Cell A1 has company name, cell B1 has product a, and Cell c1 has the amount they pay for that product. Is there a function I can use to split that one row into 3 separate rows, to show the company name 3 times and the product and dollar amount as it's own row, next to the company?
View 1 Replies
View Related
May 21, 2008
i have a long column pair of data, each entry in its own cell:
10/5/20088:30:00 AM
10/5/20088:46:00 AM
10/5/20089:14:00 AM
10/5/200810:18:00 AM
10/5/200810:42:00 AM
11/5/20088:30:00 AM
11/5/20088:46:00 AM
11/5/20089:14:00 AM
11/5/200810:18:00 AM
11/5/200810:42:00 AM
12/5/20088:30:00 AM
12/5/20088:46:00 AM
12/5/20089:14:00 AM
12/5/200810:18:00 AM
12/5/200810:42:00 AM
13/5/20088:30:00 AM
13/5/20088:46:00 AM
13/5/20089:14:00 AM
13/5/200810:18:00 AM
13/5/200810:42:00 AM
14/5/20088:30:00 AM
14/5/20088:46:00 AM
14/5/20089:14:00 AM
14/5/200810:18:00 AM
14/5/200810:42:00 AM
how can i program a macro to 'split' this column according to date? please refer to the attached picture as an example. i know this is probably a simple question but please bear with me i'm still new to excel programming.
View 14 Replies
View Related
Jun 24, 2008
I have a database of sales records containing 6 address columns (C-H). I want to extract the country (which may be entered in any of the 6 columns) and place this in a separate column. I have a definitive list of countries on sheet 2 which I have saved as a named range (Country).
I would like to be able to set something up which searches the six address fields on sheet 1 and if a match is found against the Country range, enter this in a separate column (I). A non-code solution would be ideal as I am nowhere near that level yet and want to be able to understand what I am doing as far as possible!
View 9 Replies
View Related
Apr 26, 2014
However I have survey data results and in one of the cells it has multiple values which are separated between ; and some are not separated at all e.g B&Q; The Range; Wicks The Garden Shop
Also there are spelling mistakes everywhere and variation of the word B&Q e.g b+q, B n Q
I need to add count up all of the B&Q, Wicks etc...
View 7 Replies
View Related
Jun 21, 2006
I have several time series in excel pulled from a datasource on a daily basis, however some series include weekends, some dont and some others have a few days missing. What I did is I already have a column set up with only weekdays on the other sheet, what I am trying to do is match the data with the dates.
The obvious choice is vlookup, but given that I have over 50 time series and the time span is over 10 yrs, its not the optimal solution...it will crash the sheet i think. I also tried a combo of match and index...but same...too many formulas. I think I need a macro. Does anyone who analyzes time series have a "cleaning" code that he oe she can share with me?
View 9 Replies
View Related
Jan 22, 2009
I have a column that has data with multiple values seperated by commas. I need to seperate out the values and add them to a new column.
Example:
Column A
good, cheap, fast
slow
good
cheap
cheap,good
I would like them to be added to column B as:
good
cheap
fast
slow
good
cheap
cheap
good
View 7 Replies
View Related
Dec 5, 2013
Each row in my spreadsheet is a record. Unfortunately, for one cell, the data base that the info came from has in more than one piece of data in a cell in the data dump into Excel for that record. Each piece of data in the multi data cell is seperate by a ctrl enter hidden break.
I need a seperate record tied to the original record for each item in the multi data cell so that I end up with a flat file with unique records and data on one row.
Is there a way to do this other than manually? I'd like to have a macro since I run into this quite often depending on the client.
View 1 Replies
View Related
Apr 26, 2009
Faced with a problem. I have steps for doing testing in one cell but I need to put them in multiple rows.
Example ....
View 7 Replies
View Related
Feb 14, 2012
I have a table in Excel 2007, one set of data in a column contains cells with data such as = AA701 DIS34 5283000, Z00IS0750 Now these AA codes DIS codes 5283 codes and Z00 codes can all be different!! and they are all within the same cell.
What I need to be able to do is find out which AA code which DIS code which 5283 code and which Z00 code is reported within each cell on each row?
So could I split them out into different cells via VBA? or can I do some kind of lookup that picks up a AA code (for example) ?
The constraints I have is this is downloading from a web query, I do not have the ability to alter the way the original data is coming across, I can only alter it once I have received it - refresh and then alter it again.
View 9 Replies
View Related
Dec 2, 2009
I have a spreadsheet that has been given to me by someone else, and unfortunately it has merged cells in it that are causing some trouble. I need to have a way to unmerge the merged cells, but for the data in the merged cell to then be copied into each cell that it splits into.
I've attached two spreadsheets - unfortunately I can't really attach the real one since it has research data in it, so I've reduced the size of the file and replaced some of the text. The first file shows how the file starts off, and the file named "result" shows how I would like it to be.
My real file contains some 10,000+ lines of data, and the merged cells are of varying sizes, with no consistency to the size, so I'd like a way to automate this instead of copy and pasting into every empty cell after I unmerge them.
View 2 Replies
View Related
Mar 6, 2010
Is it possible to split a cell into 2 different cells, using the last "" (backslash) in the cell as the separator? ...
View 9 Replies
View Related
Feb 15, 2009
The line below was originally a merged cell. I need to have the customer ID, Customer name, City, State and zip in seperate lines. I tried using the text to column, but the problem is some companies have a comma after their name to show if it is an llc or inc etc. What happens is the companies that do not have inc etc- it works just fine, however the ones that do have inc etc because there is another comma- it moves everything over one column. In the city column it says inc and in the state it has the city etc. Is there an easy way to make this work?
View 9 Replies
View Related
Jul 28, 2014
How to split the data in my cells
Currently it looks like this.
1 - 2 - 3,4,5
A - B - C
I would like it to look like this.
1 - 2 - 3
1 - 2 - 4
1 - 2 - 5
A - B - C
View 6 Replies
View Related
Mar 31, 2009
I have an address list that each address is in one cell. How can I seperate the address, city, state, and zip when they vary so much? I have included a sample from the list below.
320 PLUS PARK BLVD NASHVILLE TN 37217-1001
806 TWIN CITY AVE SPRINGDALE AR 72764-7083
1415 MURFREESBORO RD NASHVILLE TN 37217
300 WILMOT RD DEERFIELD IL 60015-4600
4325 AMNICOLA HWY CHATTANOOGA TN 37406-1014
2505 WEST PARWAY DRIVE RUSSELLVILLE AR 72801
675 PONCE DE LEON AVE NE ATLANTA GA 30308-1829
2035 N COLLEGE AVE FAYETTEVILLE AR 72703-2613
PO BOX 45009 SALT LAKE CTY UT 84145-0009
View 2 Replies
View Related
Oct 14, 2011
spliting a cell and moving them to 2 other cells.
Column D contains date and time in the format: 15/09/2011 08:01:01
I need them to be split into Date in column V and Time column W
Need the code to loop until there are no more values in column D.
Forgot to mention that the Column D is a date format and they need to be in there respective date and time format when split!
View 5 Replies
View Related
May 21, 2014
It may be easier to view the attachment to see what I am trying to do.
I would like to split frequency data by groups.
So I have 2 different names in column A, with a bunch of their ratings in column C.
I would like to be able to view the frequency of their individual ratings to see who gave the most types of ratings.
View 3 Replies
View Related
Jan 29, 2013
Currently, I have an excel sheet of names and addresses. In my address column, many of the addresses have carriage returns separating information. I want to divide this information by carriage returns and parse it into different columns.
I have already tried what I believe is the correct method: I go to Data>Text to Columns. I choose "delimited." Then I enter [Alt 0101] under "other" and make sure that is the only option checked. When I finish, only *some* of my data is parsed into corresponding columns by the delimiter while some isn't.
View 2 Replies
View Related
Apr 22, 2014
I need to split one row of data into multiple rows. I have one column which consists of a list of companies and Next to it I have a series of attributes for every year. I need to transpose the years into a single column and next to each year I need the values of the attributes.
Have a look at the attached file : Abrasives.xls.xlsx
View 1 Replies
View Related
Oct 3, 2011
Having some problems splitting data within a single column into several using VBA rather than a Formula. (I have been able to get working using a formula). I have found a few similar theads but nothing i seem to be able to convert with my some what limited skills
My data is always in a sheet called "Release Data" in column A, the number of rows varies daily. The data is always extracted with the delimiters in the same position E.G.
NNNNNN_AAA_Variable length txt
I would like to split the data into columns I, J and K.
View 2 Replies
View Related
Mar 6, 2014
I'm currently using the following code (that I found online) to take a list of data and copy it to specific sheets based on the values in Column C (there are only 4 columns in my data set). The issue I have with it is that it's meant to create the sheets from scratch every time. What I could like, however, is for it to copy the data to preexisting tabs that are already named with the sames values that are found in Column C. This macro will actually perform that but the down side is it wipes out everything that's on those sheets but I cant have it do that. Is there a way to either modify this sheet so it only copies the four columns and only pastes the four columns onto the sheets?
Sub SplitData()
Const NameCol = "C"
Const HeaderRow = 2
[Code]....
View 5 Replies
View Related
Oct 24, 2008
How do I split a worksheet by sorted ranges and then save each range as a new workbook?
For example:
How would I split the data on the left into the ranges on the right of the image below?
View 9 Replies
View Related
Jan 3, 2014
I have a master data sheet with raw data in 19 columns and a variable amount of rows per week, but usually 50k+
The data contains entries from different Countries, and this I need to split up per country into different sheets.
Naming the different sheets with Country code like US, DK, UK, PL, etc...
Below code does that almost perfectly.
Only thing is that when there is no more data to split up, it creates the last sheet called "SheetXX" and since it can't name the sheet "nothing", I just get an error - Run-time error 1004 Method 'Name' of object'_worksheet' failed with the possibility to END or DEBUG. When going into DEBUG this line is highlighted. (wsNew.Name = c.Value)
I can just hit END and then proceed running my remaining macros, but I would prefer it not giving me an error in the first place. (My end goal is that all my macros (10ea) are run by the click of one button, and that is currently not possible, when this gives me an error).
I have tried the "Application.DisplayAlerts = False" without any luck, and also "On Error resume Next", maybe I have used it incorrectly. Do I have to search for a different way to split the data..??
VB:
Sub Split_data_pr_Country()
Dim ws1 As Worksheet
Dim wsNew As Worksheet
Dim rng As Range
Dim r As Integer
Dim c As Range
Set ws1 = sheets("Template")
[Code] .....
View 9 Replies
View Related
Apr 17, 2008
I've been scouring the Internet for a few days now trying to get a macro working with varying degrees of success. It's driving me mad and I'm really hoping that someone out there can help me out. I'm trying to write a macro that will ...
1. Take a .xls file
2. Split the file in two
3. Take cells B2:B11 and paste them in to a csv file (to be called Upload1.csv) using the rows as column headers (i.e. B2:B11 now become A1:J1)
4. Take cells A13-J13 downwards (this file will have different numbers of rows each time it's generated) and paste them into a different csv file (to be called Upload2.csv) populating all the rows (except all rows in column I which are to be left blank) and all rows in Column J which are to contain the info in cell B7 of the original document.
5. In cell B11 of the original document I must only take the information that says MyAddress:xxxxx and discard all the other info
6. I must also loop through the second document until I find the words Total and copy everything UNTIL that row into the new document.
I know this probably sounds pretty awkward but in practice it's not that difficult to understand, it's probably the way that I've explained it
So far I've managed to take the original document and split it, populate both CSV files but I'm having problems with looping the macro until it sees the word Total and discards it and also populating the appropriate rows with the info from B7 ... I don't know how to make it populate only the rows that have info on them.
I've attached the original Excel file that is generated and also my attempt at the 2 csv files. I've also written in RED what needs to go where in each document.
View 14 Replies
View Related
Mar 6, 2007
I have sets of data (A1....F50000 or more) that I need to sort out based on the cell value in column F. Based on the cell value I would like the info on the row (A to F) put into a different sheet. There would be 8 different sheets and each sheet would include 1 to 50 different sorts from column F.
The macro could start with one material sort each and I could fill in the rest of the sorts. The 8 different materials (one for each sheet to start) could be "34b2p""ptop27""pdw19""p58leg""ppdpts""mirror""Pdoor""bent""p4545".
View 9 Replies
View Related
Jun 17, 2006
My cell contents looks like this.
H1111111111111
I want it to look like this..
H11-111-111111-11
I know this can be done by formula but i dont know it. This info is in col B.
View 2 Replies
View Related
Apr 24, 2013
Writing code in VBA for splitting data into multiple sheets?
The split needs to be based on value in one of the columns and the sheet where the data will be sent to should get sheet name same as value in the column.
Following is the input sheet, the data needs to be split based on entry in the column "Job Type".
Excel 2007ABCD1Invoice NumberJob TypeInvoice DateAmount21234Repair
04-Apr-13$20033456Contract Work10-Apr-13$40047896General23-Apr-13$100Input Sheet
Following tables are showing data split into multiple sheets and the sheet names are the same as entry under the column "Job Type"
Excel 2007ABCD1Invoice NumberJob TypeInvoice DateAmount21234Repair04-Apr-13$200Repair
Excel 2007ABCD1Invoice NumberJob TypeInvoice DateAmount23456Contract Work10-Apr-13$400Contract Work
Excel 2007ABCD1Invoice NumberJob TypeInvoice DateAmount27896General23-Apr-13$100General
View 9 Replies
View Related
Jun 5, 2008
I've got an Excel document that is generated from a third party programme (See ExcelDoc attached) ....
View 9 Replies
View Related
Dec 18, 2013
I have a data that has several columns. But I need to separate the spread sheet based on one particular column values.
View 14 Replies
View Related