Separate Numbers From Characters That Are Separated By Comma
Feb 17, 2010
For example the cell contains 1,M2,M7,M1,M8:2,M15,M9,M4,M5:3,M3,M6,M14,M11,M12:4,M10,M13 and I need to create M1, M2 , M3 ..etc columns and attach the coresponding number to each one of them. For instance M2,M7,M1,M8will get 1 and so forth and so on. I was acutally thinking using the Notepad to replace the , with a TAB space and paste them back in to my data set and create some IF statements. On the other hand running VBA scrip would make it even easier. However I would preffer to use a function (that I am not 100% familiar with) and leave the VBA scrip out of the question for the moment.
View 12 Replies
ADVERTISEMENT
Mar 15, 2008
I receive a large spread sheet weekly, one or the column contains comma separated values (CSV), I need to separate those values 1 per cell. Maximum CSV is 5; I would need to get the output to 5 cells next to them, Example,
Source data
(A1) 10,11,12,13,14
Output needed
(B1) 10
(C1) 11
(D1) 12
(E1) 13
(F1) 14
(note, not all field contain 5 values, but they all contain at least one)
View 2 Replies
View Related
Mar 19, 2014
Comma separated data on sheet 2, look up info on sheet 1, return comma separated data on sheet 2.
Sample file attached : Book1.xlsx
View 3 Replies
View Related
Oct 7, 2006
When the entry in a cell is of the format e.g 3,4 is there any way to find the value 3 or 4 in that cell?
Attempts like:
Cells(i, 1).Value = variable (e.g variable=3)
or
Set cell_found = Cells.Range("A1:A10").Find(variable, lookat:=xlWhole)
do not find the cell with the 3 (or 4). The above work fine when 3 or 4 are alone in the cell. Is there anyway to find these values in the cell?
View 4 Replies
View Related
Apr 16, 2008
I basically need to grab all the numbers going down in a row and get them into one cell in Text format with a comma between them.
A1
5293
5294
5295
5296
5299
5300
5301
5302
5303
5304
5305
B1
What I need in Text format
5293,5294,5295
View 3 Replies
View Related
Apr 18, 2008
I want to put in each cell a Punctation mark (comma), like this: ,
... when I have in each cell a number
I don't know how;
View 4 Replies
View Related
Aug 16, 2007
I have four columns of data. Column A is for the Model, B is for options, C is for color, and D is for Trim. What I need to do is for each model I need to have the options in column B to be listed down the page without commas. Each 3 code option needs to have it's own cell. In the below example there are 8 models with their options, color, and trim. I cannot have the options mixed up with the other models. Hope this makes more sense.
Here is the raw data ...
View 9 Replies
View Related
Oct 25, 2007
I have a cell in a table containing user entered Comma separated values.
How can I process it so that user entered values can be referred to just like in an array? Is it possible to do something like cell.value[0]?
For example --
cell A1 has values red, blue, green. B1 has a formula that can refer to "red" in A1 by writing something like A1.value[0]
Is it possible to have a function return values to another cell reference than from the cell where it is called? Like a UDF called functionIndividualValues(InputcellReference, OutputCellReference) functionIndividualValues(A1, A2) meaning that the input string for the function is in A1 and the output should go to the cell A2.
View 3 Replies
View Related
Oct 9, 2013
In filed I have couple of value separated by comma like below:
A1 header1
B1 header2
C1 header3
Audi
592035, 579733, 653749, 579735
20 000
If my macro found that string (always will be separate by ",") should split the string and add rows (= to number of string). The output should be as below:
A1 header1
B1 header2
C1 header3
Audi
592035
20 000
[Code] .....
I have:
Code:
Set sourceWb = ActiveWorkbook
Set ws = sourceWb.Worksheets(1)
Dim LastRow As Long
Dim MY_Split As Variant
LastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row
[Code] ...........
View 1 Replies
View Related
Aug 20, 2014
I need to count how many comma separated elements are in each cell. This is what I have so far,
[Code] .....
The error is Method 'Range" of object'.
View 9 Replies
View Related
Feb 4, 2013
I have a relatively large data set that is separated into columns A-G. In column G, I have a multitude of values that are separated by commas. What I would like to do is to separate these entries into rows while keeping those values in A-F constant.
Here is an example of what I would like to do through VBA:
ex1.jpg
to
ex2.jpg
Also, kudos. This website has now gotten me interested in VBA.
View 6 Replies
View Related
Jan 18, 2012
I am supposed to create a macro which will split the comma separated values into rows.
My main constraint is, I have 3 columns of comma separated values.
Let me explain with an example,
I have 5 columns namely:
A B C D E
123 1,2,3 1,2,3 123 1,2,3,4
Once I run a macro it should show like below:
A B C D E
123 1 1 123 1
123 1 1 123 2
123 1 1 123 3
123 1 1 123 4
[Code] .......
View 6 Replies
View Related
Feb 23, 2014
I've a question. For instance
apple,lemon,strawberry
fruit
green,blue,white,black,grey
color
...
...
...
...
I've a list like above. How can we use lookup formulas from comma-separated cells?
white> color
lemon> fruit
View 8 Replies
View Related
May 28, 2014
Parsing values in a column. COLUMN A contains comma separated numbers, varying from possibly an empty cell, to a list of values between 1 and 12 separated by commas. I need to examine the column and place the number 1 in the column corresponding to the number. There will be no duplicates in COLUMN A. Is there an 'easy' way to do this. The table is part of a much larger spreadsheet.
COLUMN A
Team 1
Team 2
Team 3
Team 4
Team 5
Team 6
Team 7
Team 8
[code].....
View 7 Replies
View Related
Dec 7, 2009
I have a list of comma separated values. I would like to change these to tab separated values, and then transpose them so that they are all displayed in one column. Does anyone know if it's possible to do this in Excel 2007?
Example:
Date | Keywords
1/01/01 | shoe, shoes, clothes, clothing
1/02/01 | shirt, shirts, jacket, jackets
I need the Keywords column to display each value separately, and in one column. I also need each row to have the original date information. So I need it to look like this:
Date | Keywords
1/01/01 | shoe
1/01/01 | shoes
1/01/01 | clothes
1/01/01 | clothing
1/02/01 | shirt
1/02/01 | shirts
1/02/01 | jacket
1/02/01 | jackets
View 9 Replies
View Related
Dec 12, 2009
I have a list of data in individual cells in one excel column thus...
Item 1
Item 2
Item 3
And I would like the data to read thus in one cell...
Item1,Item2,Item3.
Is there an excel function I can use to do this quickly and efficiently?
View 9 Replies
View Related
Apr 18, 2007
Cell(i,1)have 3 Numbers
Each Number Not Allowed Greater Than 10
Each Number In Cell(i,1) Will Be Added 1 In Cell(i,3) And Cell(i+1,3)....
How Can I Seperate Numbers And Make Three Variables To Run Macro
A
1,3,10
2,5,9
C
2,3,10
1,4,10
3,5,9
2,6,9
2,5,10
View 6 Replies
View Related
Jan 7, 2009
If I have, in one cell (call it D1):
EH,DR,HU
and in a lookup table on another sheet:
A B
1 ED T
2 EH F
3 DR G
4 HU H
5 SE E
6 YU E
I need to be able to lookup the values in D1 on the table and return the values in column B to a single cell (say E1), also comma separated...
eg...
F,G,H
View 9 Replies
View Related
Mar 4, 2013
I have a list of companies and employees, if a company has more than 1 employee listed, I need to combine all instances of the employees into 1 row per company separated by a comma.
OLD FILE: Sample.xlsx
NEW FILE: Sample.xlsx
View 9 Replies
View Related
Jul 2, 2013
Given a list of beginning years and ending years, how can I create a column that gives the whole list of inclusive years separated by a comma?
Start Year End YearList of Years
1985 1995 1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995
2000 2009 2000,2001,2002,2003,2004,2005,2006,2007,2008,2009
View 5 Replies
View Related
Apr 20, 2012
I have a column A1 that consists of a range of values separated by a comma.
row 1:value 1, value 2, value 3, value 4
row2: value1, value 4
Row 3: value 2, value3
I want to get the unique counts for each value in the filtered list. This one field is not filtered but the others in the table are so I only want the counts of value 1-4 when the entire list is filtered.
I have been able to accomplish this with individual values using the following formula:
=SUMPRODUCT(SUBTOTAL(3,OFFSET('1. Respondents'!$C$7:$C$39312,ROW
('1. Respondents'!$C$7:$C$39312)-MIN(ROW('1. Respondents'!$C$7:$C$39312)),,1)),
--('1. Respondents'!$C$7:$C$39312=C4))
This works great other than the fact that I need to count total values of the column in an array.
View 9 Replies
View Related
Feb 24, 2009
I have two ranges of arrays "arr1" and "arr2".
I need to show all different elements between two arrays.
Attached the sample.
View 7 Replies
View Related
Jan 25, 2007
I need to count the number of values entered into a single cell seperated by commas for record keepin purposes. I would prefer not to use a macro since I am not an expert, but will if i must. Here is an example of what i am talking about:
User A will enter "109,108,107,106" into a cell in Column A
At the bottom of column A the Total will read 4.
Now User B enters "110,111,112,113" into the next cell in Column A
At the bottom of column A the Total will read 8.
View 4 Replies
View Related
Apr 6, 2013
code1
code2
lookup Range1
lookup Range2
Return Value
Lookup
Multiple Return
[Code]....
I am trying to vlookup multiple value and return multiple values in one cell
View 7 Replies
View Related
Dec 14, 2009
I routinely have do download massive data sets of reporting that is saved as an excel spreadsheet. The three columns of sample data attached are Report Numbers, Report Evaluation Serial Numbers, and Report Evaluator ID.
As seen in the attached spreadsheet, there can be multiple Report Numbers (in same field separated by comma) which have been evaluated by different Evaluators. It is my responsibility to account for the number of Reports that have been evaluated, and many other metrics from like data. The issue I have is when more than one report number is listed in the same field I need to parse the data into its own field for ease of counting (and also maintain the adjacent data). It is not a problem to merely copy the fields and delete the excess numbers, however when dealing with thousands of Reports, and Evaluators this can be very time consuming. In the attached file I have separated .xls into three workbooks to help explain my problem: Initial state of Data; What I need To Parse Out; and The final endstate I require. I hope that I have explained this issue with enough detail. I am sure that the attached file will explain better.
View 5 Replies
View Related
Nov 1, 2012
I have extracted a string from my address database which goes like name,address1,address2,city,postcode,country
I need to display in Column B as:
name
address1
address2
city
postcode
country
how to do this using VBA.
View 2 Replies
View Related
May 31, 2013
How to have a validation list (drop-down) from a single-cell in which values are separated by a comma.
Example I have.
I have a wine list which have many categories of which
COL A / COL B / COL C
Wine Name / Wine Producer / Vintage
I wrote a VBA code to look-up duplicates names and give the producers that make them. The names of the producers will be in an invis cell as Comma Separated Values.
For example: Wine 11 is made by producer X and Wine 11 is made by producer Y. I will have X,Y in a cell which need to be in a drop-down menu when Wine 11 is selected.
I got everything done. The only issue is to get the list. The problem is that the drop-down list shows X,Y as a single component and not as 2 drop-down components. If i were to write down X,Y in the validation list tab, it will show it as 2 components but referring to the cell doesn't.
View 2 Replies
View Related
Oct 26, 2013
Original table:
Column1
Column2
Column3
Column4
AAA
DDD
A1
X123, Y123, Z123
[Code] .......
View 1 Replies
View Related
Mar 2, 2009
Table A: I have data separated by coma & space in cells A1:A4
A: Data Table
*A110, 20, 30, 40, 50, 60
211, 21, 31, 41, 51, 70
316, 19, 37, 48, 59, 81
418, 23, 33, 42, 57, 78
Table B: I want to calculate difference between cells A1:A2, A2:A3 and so on
And if it is possible as shown in cell B2:B4
B: Result Table
*AB110, 20, 30, 40, 50, 60
211, 21, 31, 41, 51, 70
+1, +1, +1, +1, +1, +1
316, 19, 37, 48, 59, 81
+5, -2, +6, +7, +9, +11
418, 23, 33, 42, 57, 78
+2, +4, -4, -6, -2, -3
Separating cells A1:A4 data in separate cells can do this.
But if it is possible solution can be done as shown by VBA will be greater.
View 9 Replies
View Related
Mar 13, 2008
I have a cell witch contains CSV I need too look up all the values off a master list an out put the vlookup results in 1 cell
Example:
( SHEET 1/Cell A1)
10,11,12
(SHEET 2/ look up list)
.A .B
110101
211102
312103
413104
514105
(SHEET 1)
I need the output to show the following in Cell B1
101,102,103
View 9 Replies
View Related