Combine Data From Two Columns

Feb 16, 2007

I am trying to do something that would look at column B and for each value that is the same in any row in column B, it would look to column A and add that value into a text string of all those values in column C separated by commas.

example, If A1=37294 A2=37295 A3 = 37296 A4=37297 A5 = 37298 and B1 = abc B2=ABC B3=ABC B4=XYZ and B5=XYZ I want C1 to result in 37294,37295,37296. And I want C2 to result in 37294,37295,37296 and C3 to result in 37294,37295,37296 and C4 to result in 37297,37298 and C5 to result in 37297,37298.

View 4 Replies


ADVERTISEMENT

Combine Data From Multiple Columns

Jan 8, 2014

My workbook contains information about investigations. Each investigation gets a number and a line in the workbook. Many infos are stored: dates, subject, ...

A dynamic table contains all those informations, which allows me to manipulate data pretty easily.

Issue: For one of the characteristics of the investigation (let's say names), several results might have to be entered. For example, one investigation can have 3 different names, the next one only 2 and another one can have 6.

This causes a problem regarding the manipulation of the data.

Right now I have 10 columns "name 1" "name 2" .... and only those who need to be filled are filled. I can't however efficiently manipulate the data. For example, George could have been entered in "name 1" for the investigation 1 and in "name 2" for another investigation. Using a pivottable, to track George I'd have to select him in all 10 columns.

It seems to me the best choice would be to somehow index the names into a single column with each name linked to its investigation number..

With the index function I have 2 issues:

- It starts by going down the 1st column, then goes to 2nd, ... where I'd want all names of 1 row then names of 2nd row.

Solved this with this formula:

I turned my "names" columns in a ranged name "Names"

but - When fields are empty I get 0s. When I try to remove them with an if statement, it'll just give me empty cells. I'd prefer to skip the empty cells.

Also, I don't know how to 'link' them to my investigation number...

I have this (dynamic) table:

investigation number name 1 name 2 name 3
001 George Paul
002 Chris George Suzy

And I want something like this:

Investigation number Names
001 George
001 Paul
002 Chris
002 George
002 Suzy

View 14 Replies View Related

Combine Data From Multiple Columns In To One

Sep 2, 2009

I have attached a spreadsheet. I have a data set with ID's in column A and data in columns to the right. If an ID has only one entry then there will only be a value in column B if an ID has 2 entries then there will be a value in Columns B and C, if they have 3.......... And so on....

In my attached file I have created a macro that filters each column and copies the values to another sheet. If an ID had 5 entries (B-F) I would want to have 5 rows for that ID. The attached example macro does what I want but the real data has over 50 columns. Is there a more efficient way of doing this?

View 4 Replies View Related

Combine Multiple Columns Of Data Into One Column?

Mar 6, 2013

sample1.xlsx

Sample file attached. How do I combine the data in columns B-E into column A? Obviously in my sample file you'd use a simple cut/paste but my actual file has hundreds of columns and rows so cut/paste isn't an option. I need to move all the data into column A.

View 4 Replies View Related

Searching Data In Two Columns And Combine Results In One Row?

Jan 13, 2012

I have two sets of data, and one colum in each set is titled ID numbers. I would like to search both those colums and combine the matching ID numbers in one row?

View 2 Replies View Related

Combine Data From Multiple Columns For Trending

Jan 6, 2014

Context: My workbook contains information about investigations. Each investigation gets a number and a line in the workbook. Many infos are stored: dates, subject, ...

A dynamic table contains all those informations, which allows me to manipulate data pretty easily.

Issue: For one of the characteristics of the investigation (let's say names), several results might have to be entered. For example, one investigation can have 3 different names, the next one only 2 and another one can have 6.

This causes a problem regarding the manipulation of the data.

Right now I have 10 columns "name 1" "name 2" .... and only those who need to be filled are filled. I can't however efficiently manipulate the data. For example, George could have been entered in "name 1" for the investigation 1 and in "name 2" for another investigation. Using a pivottable, to track George I'd have to select him in all 10 columns.

I could maybe
- Write all names in 1 cell, separated by something and use somemorething to virtually split that
- Write each name in a row below, with the other characteristics copy-pasted (although then if I have 2 names and thus 2 rows, Excel will consider I have 2 different investigations).
- ???

View 2 Replies View Related

How To Combine Data From Multiple Columns Into One Column

Mar 17, 2014

I am trying to combine data from multiple columns into one column. The way my data is set up there shouldn't be any columns that have data in the same row. See below for my example.

[IMG][/IMG]

View 9 Replies View Related

Combine Data Based On Data In 2 Other Columns

Feb 20, 2007

I have data in columns A:D with the headings Proposal, Sort_Code, Seq, Comm, and data in row 2:???, it is in the format below, / is to show a new column, I want to look at the proposal column (A) and the sort_code column (B) and then take all the data that is associated with it in the comm column(D) and combine it in column E on the first row of the proposal number. A Formula or macro would work for me.

0733596/001/1/line 1
0733596/001/1/line 2
0733596/001/1/line 3
0733596/001/1/line 4
0733596/002/1/line 1
0733596/002/1/line 2
0746715/001/1/line 1
0746715/001/1/line 2
0746715/002/1/
0732387/001/1/
0732387/002/1/line 1
0732387/003/1/..........

View 9 Replies View Related

How To Combine Multiple Columns Into Long List Of Results In 2 Final Columns

Oct 15, 2013

I have a need to combine multiple columns into a long list of results in 2 final columns. Here is my example...

Current layout with varying number of data points per row...

ColumnA | ColumnB | ColumnC | ColumnD | etc...
example1 | Test1 | Test2 | Test3 | Test4
example2 | Option1 | Option2
example3 | Number1 | Number2 | Number3 | Number4 | Number5

Desired Result

ColumnA | ColumnB
example1 | Test1
example1 | Test2
example1 | Test3
example1 | Test4
example2 | Option1
example2 | Option2
example3 | Number1
example3 | Number2

and so on and on and on until all rows have been filled in down the file...

Is this possible?

View 4 Replies View Related

Combine Many Columns To One

Nov 17, 2009

Essentially need a macro to combine the columns into 1 column.

Need a Macro to put everything in each "box" into one column, for example CU is the end of the first box, CV to GP is the second box ect. Essentially a box is the row where the yellow line is to the column where the yellow column is.

The problem is the setup of these colums change, sometimes they are bigger sometimes smaller and the spaces beneth it change. Sometimes I might have a column which goes to row 18 followed by 3 blank rows then the yellow box

I first design the first colum then select that and drag across to complete the rest ( my real file has links ect )

So I need a macro in which it can scan the first column up to the yellow line then put everthing within a "box " into 1 column, each )

then repeat the same process for other boxes with each box being put in its own column ( preferablly leaving an empty column in between )

THe file itself will help clarify any problem, if this request is not possible if it could combine every column into 1 column ( along with the spaces to the yellow line ) that would help also, i could manually cut each box into another column then.

View 10 Replies View Related

Combine The Columns

Dec 3, 2006

I need to find a way i can easily combine a1, b1, c1, d1, and so on, about a 100 of the, i need to combine, each one has different text that needs to become together. I know one forumula =a1&" " &b1&" " &c1, but doing that for about 100 colums, would take for ever, is there a easier way?

View 12 Replies View Related

Combine Two Lists (All Columns)

Mar 29, 2013

excel help.xlsx

I would like to combine these two lists (all of the columns).

View 4 Replies View Related

Combine Multiple Columns Into One Row

Aug 26, 2013

I have a spreadsheet that has identical data in column A throughout the worksheet and want to take data in columns F and G and combine them all onto one row. An example of the data is attached.

test example.xlsx

View 1 Replies View Related

Combine Two Columns From Different Worksheets

Nov 22, 2008

I have two worksheets with a column of part numbers. I am trying to combine them in a new worksheet and remove duplicates.

View 7 Replies View Related

Combine Two Columns Which Both Contain A Lot Of Characters

Dec 19, 2009

I have content in two columns side by side. A total of 1650 rows. I am trying to merge the content of both rows using =A1 & " " & B1 however, it is truncating the content I guess because the cells contain too many characters. How do I merge the contents of the two columns successfully?

View 3 Replies View Related

Combine Columns, Intercalate

Jul 12, 2007

I have data in two columns (A and B), which I need to combine into one column (C) in intercalating order: C1 = A1, C2 = B1, C3 = A2, C4 = B2 and so on.....
Is there a simple way to do it ?

View 4 Replies View Related

Combine 2 Columns With 3 Choices Into 1 Column?

Feb 18, 2014

I have 2 columns "H" and "I" from line 6 to 409. Each cell may start with AR , MA or a number. If cell H6 starts with AR I would like to put that cell into B6. If H6 does not have AR then I would like to check I6 for AR, and put that into B6 if it's found. If I don't find AR in either I would check them both for MA, and write the cell that finds MA into B6. If the AR or MA are not found then I would want it left blank. I did try

IF(FIND("AR",$H7,1),$H7,IF(FIND("AR",$I7,1),$I7,IF(FIND("MA",$H7,1),$H7,IF(FIND("MA",$I7,1),$I7," ")))) in B7.

View 6 Replies View Related

Combine Two Dynamic Columns Into One Column

Nov 13, 2008

i need to take all cells in column A with values and all cells in column B with values and combine them into column C so i can sort and subtotal. Columns A and B may have 2 values or 2000 values.

View 10 Replies View Related

CountIF Combine The Results From Two Columns

Feb 15, 2009

I have two columns A and B. Column A contains 'Machine Nr' and column B contain 'Week Nr'. In cell C1 i want to write a function so that it counts the number of weeks in Column B where week number is 4 AND the machine nr is 1 in column nr A.

Column A Column B
Machine Nr Week Nr
1 4
1 4
2 4
2 4
3 4
3 4

View 10 Replies View Related

How To Combine Two Columns To Make Phone #s.

Feb 1, 2010

I have two columns of numbers. The first is the area code and second is the phone number. How can I combine the two columns to make one with both: as in area code-phone number?

View 3 Replies View Related

Combine Time Scattered In Different Columns?

Mar 9, 2014

I need to combine the time scattered in different columns and align them daywise.

View 3 Replies View Related

Combine Dropbox Selections Into New Columns?

Mar 13, 2014

FFLX9g.jpg

What I'm after is an easier way to get data combined without having to type it all out. If you look above I would like to have A-C actually as dropbox's or listbox's, something I can click, then drop down to the proper name and select it. Then on E I'd like a timestamp for when this action was done with the date and time as shown along with the reason. Then in F I'd like the Name fields combined so I just need to right-click on F and copy/paste into the other program I use.

Maybe one column can just be the names of everyone with a selection box and I click this stuff then when I am done it resets?

View 1 Replies View Related

Combine Columns Into Single Column

Mar 5, 2013

I have 100 columns in 1 worksheet, each column has 200 rows, I want to combine all these columns into a single column.

Therefore, Column 101 or a new worksheet Column 1, will have 20000 names.

View 2 Replies View Related

Combine Two Columns And Rows Into One Column

Jan 23, 2014

I need two solutions, if possible. One macro and then a "poor man's way" in case the macro breaks down the road. something where I can do it with copy/paste, formulas etc.

I will just use letters and numbers to make it easer.........

Column A might have 10 rows, with 1,2,3,4,5,6,7,8,9, and 10 as the data.
Column B might have 7 rows with A,B,C,D,E,F and G as the data.

I need column C to have 70 rows, with 1A, 1B, 1C, etc. .......through 9E, 9F through 9G as the data.

View 1 Replies View Related

Combine 3 Sheets Into One / Different Columns But One Column Same In All

Jan 30, 2014

I have three spreadsheets. They all contain different data but each one has a 'Rental Equip ID' column. Is there a way to take these three spreadsheets and consolidate in to one spreadsheet with all the data on one sheet? I have included an example of each sheet. The column headers are in bold. I can send an example file examples if needed.

Rental Dscr
Rental Equip ID
Rental Group
Rental Sub Group
Rental Qty
Rental Cost

BALL JOINT ADAPTERS 4WD
004-0302
13
2834
1
$ 50.22

[Code] ......

View 7 Replies View Related

Combine Multiple Columns Into 1 Column

Feb 3, 2014

I'm trying to combine multiple columns into 1 column in Excel. I've searched a few places but most of them are tailored for a specific sheet and my VBA skills are elementary

My table looks like this (there could be more than 5 columns... it's somewhat dynamic based on the data given). Note that some columns could have no data, and the size may be different, some have 100 rows of data, while others have 5.

Firm A
Firm B
Firm C
Firm D
Firm E

[Code]...

I want to combine these columns into

Consolidated

A
B
B
C
D
E

[Code]...

Is it possible to do this with an Excel formula? If not, a VBA code

View 9 Replies View Related

Combine Columns Of All Worksheets & Add Worksheet Name

Dec 13, 2007

I have about 100 worksheets that I need to combine the data from column A into 1 worksheet and place the name of the worksheet the data is coming from in column B of the combined worksheet. example

worksheet 1 named New York contains the following in column A

11518

11563

11572

Worksheet 2 named California contains the following in column A

93510

90247..............

View 3 Replies View Related

Combine Multiple Columns Into One On Another Worksheet

Jun 10, 2008

I am trying to combine the data of 31 columns into one column on a separate worksheet. The number of pieces of data in each column is different and as a result I am hung up on how to code the macro so that it automatically moves to copying the next column when a blank cell is reached, as it currently copies until it reaches the 100th row and then moves to the next column even though they're blank.

Sub CopyColumns()

Dim improw As Long, impcolumn As Long, MyCell
Dim ws1 As Worksheet, ws2 As Worksheet
Dim improw2 As Long, impcolumn2 As Long

Application. ScreenUpdating = False
Set ws1 = ThisWorkbook.Sheets("Data")
Set ws2 = ThisWorkbook.Sheets("Details")

'paste location on ws2
improw2 = 2
impcolumn2 = 2

There are column headers for the data on ws1 in row 2. The other thing I would like to do if possible is copy these column headers from ws1 onto ws2 by pasting them to the left of each piece of data (impcolumn2 - 1).

View 4 Replies View Related

Combine Columns To Create A New Column With No Duplicates

Nov 7, 2013

Columns A, B, C and D contan a list of Names, I want to be able to in column E list all the items in A,B,C and D with out duplicates. How would I do this?

View 1 Replies View Related

Combine Two Columns Based On Name / Number And Score

Feb 19, 2014

I have three columns in the spreadsheet.

sheet1

A BC
Santhosh314
Praveen224
Praveen012
Praveen37
Santhosh38
Praveen120
Praveen036
Santhosh19

In another sheet (sheet2) output come like this.

A B
Praveen 3/7
Santhosh 3/8

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved