How To Merge / Combine 2 Rows

Aug 20, 2014

I've tried to combine rows, but can't seem to do it. I have a spreadsheet with over 18,000 lines of data, and I really don't want to go through each line to add information from another line and then delete that line. Is there a formula that can do this? I have attached a sample of what I have and what I need.

View 8 Replies


ADVERTISEMENT

Combine/merge Row Cells Text Between Blank Rows

Jun 14, 2009

I have a large list of text in one column which i need to combine between blank rows into one cell or a new column, the number of rows to be combined varies.

for example

aa
bb

ww
xx
zz

rr

gg
hh
ii
jj

would become

aa bb
ww xx zz
rr
gg hh ii jj

I have over 30000 lines so doing it by hand is not an option.

View 9 Replies View Related

Combine / Merge / Add Data Together

Jun 7, 2013

I have 2 data sets which i want to add together. Here is an example.

Data sheet 1
A B C
SAC
L
1

INPUT
L
4

BLIN
L
12

[Code] .......

What i want to do without inserting every line manually.

A B C
SAC
L
1

FIX
L
2

[Code] ........

View 2 Replies View Related

Combine/merge 51 Workbooks In Same Folder

Apr 27, 2007

I have 51 workbooks that I would like to combine into one workbook. Each workbook varies in number of rows, but have the same number of columns. There are 31 Columns (AE).

Is there a fast way of doing this or will I have to cut and Paste?

View 6 Replies View Related

Merge And Combine Data In 2 Cells To One Cell?

Jun 21, 2013

I need a macro, that will merge the cells and the data in cell A1 with data in B1, and the data in cell B1 will paste to the end of data in cell A1.

Column A Column B
KL8CB6S90DC505233
3GYT4MEF9DG331323

I need the final result to look like this:

Column A
KL8CB6S90DC505233
3GYT4MEF9DG331323

I need it to complete this for all data in Column A and Column B.

View 3 Replies View Related

Merge Rows Of Duplicates?

Jun 25, 2011

I am trying to merge rows of duplicate entries, say I have the following information in a excel spreadsheet:

Column A: Name
Column B: First Line of Address
Column C: Area
Column D: County
Column E: Post Code
Column F: Tel Number

If I have the data above in my spreadsheet I want to basically search and look at columns B,C,D,E and F and then if there are any duplicates of these for that row anywhere on the sheet I want it to merge the Data for those duplicate as shown below:

A|B|C|D|E|F
Dave, Mark | Rice Rd | Liverpool | Merseyside | L45 7HT | 6381754
Tony | Hill Grove | Runcorn | Merseyside | L78 9JU | 6527897
John | Lime Ave | Runcorn | Merseyside | L34 9HF | 7248853

I have managed to find a macro that is shown below however this macro only looks at 1 column and then merges the data based on that which is not what I want

[Code].....

View 4 Replies View Related

Merge Rows Using Macros?

May 21, 2014

In Sheet1 --> Emp id, Emp Name and Emp dob having some 'p' rows
In Sheet2 --> Emp id, Emp address, Emp Designation and Emp blood group of some 'q' rows

Now, i want in Sheet3 --> Combination of both Sheet1 and Sheet2 data. Note: Emp id in Sheet1 and Sheet2 are same which indicates an unique identifier. I attached a file for your reference..

View 14 Replies View Related

Merge Data From Different Rows

Feb 7, 2007

I have a set of data which I would like to do some processing on. Basically I am concerned with two columns

Column 12 and Column 9

Column 12 is a unique account Reference and column 9 is an invoice number. My scenario is that 1 account can have multiple invoices. I want to do is serach down column 12 and find all the matches and then I want to take column 9 and combine the data within that with the previous record.

Original Data
Column 9 Column 12
2345 A0001
2312 A0001
2341 A1200
1234 A0001
4569 A1234
3456 A1234

What I want to get to:


Column 9 Column 12
2345,2312,1234 A0001
2341 A1200
4569,3456 A1234

As you can see I basically want to combine any matches with column 9 and seperate with a comma and then delete the record it has taken it from

Function repair_invoice_numbers()
Sheets(target_sheet).Select
rowcn = 2
Do
checknext:........................

View 4 Replies View Related

Merge Rows Into Columns With More Than One Variable

Nov 12, 2007

I have been scanning web forums for days and have not found a solution to my question. I have found similar, but unfortunately am not clever enough with Excel VBA to adapt.

I have two columns of data which I want merged into rows (a) by survey number and (b) by time slots. The data I have is similar to:

Survey No.....Results
12345...........9am-12pm
12345...........3pm-6pm
12345...........No answer
56789...........6am-9am
56789...........12pm-3pm
56789...........6pm-8pm
56789...........10pm-12am
.....................

View 12 Replies View Related

Merge Certain Rows, Of Different Sheets, Of The Same Workbook

Oct 16, 2008

I have a workbook of 96 sheets. I need to get the 4th row of each sheet,
and merge all, 96 of them, into one new sheet.

View 3 Replies View Related

Insert And Merge Blank Rows?

May 23, 2013

I have a spreadsheet that I need to insert a blank row every other row and then merge that blank row. I can do this with the macro below. My question is that I only want the merge on each blank row to merge A:H. Example would be insert row 9 and merge A9:H9. Insert row 11 and merge A11:H11. and so on till the end.

Code:
Sub insertrow()
Application.ScreenUpdating = False
Rows("9").Select
Do While Not IsEmpty(ActiveCell)
ActiveCell.EntireRow.Insert
ActiveCell.EntireRow.Merge
ActiveCell.Offset(2, 0).Select
Loop
Application.ScreenUpdating = True
End Sub

View 2 Replies View Related

Function To Merge And Sum Values In Rows With Same ID

Aug 21, 2013

I am looking for function which allows me to merge and sum values in rows with same ID.

Example:

Sheet1

Sheet2

ID
Value

ID
Value

1.1
1

1.1
4

[Code] ........

Ordinarily I would use a Pivot Table and GetPivotData function, which can easily do this calculation, but in this case file I work with is shared, so Pivot Tables do not work. Unfortunately I am not skilled enough to type my own VBA function. New rows are added to the data source (sheet1) every day...

View 4 Replies View Related

Sum And Merge Matching Rows Into Single Row?

Jan 17, 2014

I have a CSV file that varies in length. The request is to have a macro to import the CSV file, sort it by account number (COL A) and for every row that has a like number in COL A, sum the numeric values in COL F. I have considered a pivot table however we then have to take the SUMMED records and export then in CSV.

how to SUM based on COL A? The rest of the information in each like row is duplicated.

View 1 Replies View Related

Combine Rows Into One

Jul 7, 2009

I have data as follows -
OrderTDF
1gc3
1gc3
2du3
2du3
2gc3
3du3
3du3
3du3

and want to combine lines by order so that data now becomes this -
OrderTDF
1gc3gc3
2du3du3gc3
3du3du3du3

View 9 Replies View Related

Delet Rows Duplicate In Column A & C And Merge B

Oct 28, 2009

i have to clean a worksheet from duplicat rows. The list looks like:

A---------B-----------C
a---------s-----------b
a---------f------------b
a---------s-----------b
a---------e-----------d
a---------d-----------v

Those rows have to be deleted where duplicates exist in column A and C. In our example the first three rows would meet the criteria and two of them have to be deleted. Content of Column B has to be merged with ";" but without duplicates. The result would then look like:

A---------B-----------C
a---------s;f----------b
a---------e-----------d
a---------d-----------v

View 2 Replies View Related

Merge Column Data Over Multiple Rows

Dec 6, 2008

I know how to merge data in a CSV (see attachment) from 2 columns into a single cell using =A1&" | "&B2 so that A1 (Safety Products) plus B1 (Fire Protection) becomes Safety Products | Fire Protection in cell C1, but how can I do this across multiple rows so that each pair of names is combined in each row? The job I'm working with is a product CSV file that has 6370 lines so I don't want to do them one line at a time!

View 2 Replies View Related

How To Merge Two Rows If Specific Cell Is Blank

Apr 4, 2012

I'm trying to figure out the if conditions for this relatively simple problem. Basically, this is an import from a word document where the table strays onto a new page. I want to try and repair this with a bit of VBA.

This is what it looks like:

1: cell 1 |the content should all be in this cell
2: |but the import sometimes splits it into two
3: cell 2 |

Basically if and only if cell Ax is blank (in this example A2), then I want the rows to merge each cell and repair the table.

View 1 Replies View Related

Merge Duplicate Rows And Sum One Column - VBA Code?

Jun 2, 2012

In a big data sometimes I have identical rows (maybe the 'Quantity' column has different value). I would like to merge them into one and add the quantities together. I have to use B and C (I need both) to find out if these rows are identical.

For example:
A1=date B1=111222 C1=ABCD ... and G1=quantity (1)
A2=date B2=111222 C2=ABC ... and G2=quantity (1)
A3=date B3=111222 C3=ABCD ... and G3=quantity (2)[code]......

View 3 Replies View Related

Reconciling Two Databases - Possible To Merge Rows Of Data?

Mar 13, 2013

I have a dataset from Oracle that includes a study patient ID, study visit that a UC sample was collected at, date the sample was collected, and sample type. I also have a dataset from Quest, where the UC samples are sent to for testing, that contains similar information.

I need to reconcile this data, making sure that patient IDs, study visits and collection dates all match up with out using just vlookups and having to check the reverse of each (vlookup Quest into RDC, then vlookup RDC into Quest) and I've been wracking my brain trying to figure out VBA code to get my data from Oracle (orange header) to merge with Quest (blue header) and merge on Subject ID and Visit Name only.

In exhibit C, this is what ideally I would like to see as a result, data points from both are reported, but if Oracle subject id = Quest subject ID and Oracle Visit Name = Quest Visit Name, they are reported in the same row. I can then just run a simple formula to compare the collection dates and also identify discrepancies between visits (example: exhibit C, rows 10 and 11, these two UC samples look like they should reconcile because the collection date is actually the same for both, however either the study site or Quest is reporting the wrong study visit name).

View 9 Replies View Related

Remove Blank Rows, And Merge Into New Worksheet

Aug 27, 2009

I am a CAD person, trying to edit a large spreadsheet for reading into CAD.

I need to merge 2 worksheets into a 3rd.
Then search and delete the blank rows. (There is only 3 columns in the document, but can be as many as 5,000 rows or more)

The Cad program does not like blank rows, so I have to delete them if users insert them, and there may be several in a row. (Users need only edit one of the worksheet, No. 2)

The 3rd worksheet must then be saved to a Tab-Delimited txt file in the same location on the network as the xls document.

I am able to select the worksheets and copy to a 3rd, but how to go to the end of the data, before merging the other data from the 1st worksheet into the third.

View 9 Replies View Related

Combine Rows With Same Cell Value?

Nov 24, 2013

I have just two columns, one with numerical codes (A), the other ones with text (B).There are duplicate codes with different values, for which I would like to be able to combined their text values on a single row.

A | B
xx | text 1,
xy | text 2,
xz | text 3,
xz | text 4,
xu | text 5,
...

to be formated to:

A | B
xx | text 1,
xy | text 2,
xz | text 3, text 4
xu | text 5,
...

The resulting column B can be with/without space delimiter between the text values (there is a coma after each text value)

View 3 Replies View Related

Macro To Combine Rows

Nov 12, 2008

I have a table which has employee names on the left handside. Next to them are contacts in a region.

View 7 Replies View Related

Combine Rows From ID Number

Aug 26, 2013

I have a data that looks like this

P50101
181.0
89.2
19.94
12/18/06
KK

P50101
177.0
75.9
22.26
11/26/07
KK

[Code] .......

I need to enter this into spss so I need it to look more like this e.g. grouped by the first column

table { }td { padding-top: 1px; padding-right: 1px;
padding-left: 1px; color: black; font-size: 11pt;
font-weight: 400; font-style: normal; text-decoration: none;

[Code] .......

View 5 Replies View Related

Combine Multiple Rows Into One Row

Nov 4, 2006

I have a 8500 row sheet with 40 series of data given for each "data set". This data is situated in four columns and ten rows, so that rows 1-10 contain one data set, rows 11-20 contain another data set, etc...

Does anyone have a simple VBE script that can grab this data and format it so that my data sets are arranged as 850 rows and 40 columns instead of the native 8500 rows and 4 columns?

View 7 Replies View Related

Insert New Row To Add More Rows To Merge Range With Wrap Text?

Aug 8, 2014

I have a sheet that has a section in range (c18:k25) (it is merged and text is wrapped) If that amount of space is not adequate to fit all their information I would like to add a macro that when activated it asks how many rows would you like to add and then based on that number whether it be 1-10 it would insert a new row to that merged range so they can continue adding more information . I have the sheet locked down to prevent changes so it would have to be unlocked and then re-locked within the macro.

View 1 Replies View Related

Moving Duplicate Rows To Columns For Mail Merge

Jul 28, 2008

to prepare an excel spreadsheet for a mailmerge but as all of the info for 1 recipient needs to be in columns instead of rows. I need to convert 2 columns' data into columns but only when there are duplicate invoices, see below;

View 9 Replies View Related

Merge Selected Rows From Multiple Sheets Into One Sheet

Jul 14, 2009

I have around 150 excel files with sample data as follows in "sheet 1" of each workbook,

Excel doc 1:

ABC1
Column 1Column 221Data 1Data 132Data 2

Excel doc 2:

ABC1

Column 1Column 223Data 3Data 334Data 4

I want the rows with data in column 'B' and empty column 'C' from every sheet to be copied into 1 sheet.

Output to be as,

Final Excel doc:

ABC1

Column 1Column 222Data 2
34Data 4

I have a VBA code sample to select the required files in a folder and run the macro over it. The VBA is as follows,

Sub Importxlsrows()
'Import all selected rows to one sheet
Dim xlsDoc As Object
Dim xlsFileName As Variant
Dim RowNo As Integer 'row number in excel
Dim iRow As Long 'row index in Excel


'probably here we need to insert the required logic

End With
Set xlsDoc = Nothing
End If
Next i
ShowStatusFree
MsgBox "Required rows of selected files are imported into the sheet", vbInformation, "Done!"

End Sub

View 9 Replies View Related

Combine Duplicate Data From Different Rows?

Jul 25, 2012

I have a table (is populated in a macro already) that has two header rows (1 & 2), inputs a blank row on row 3, then starts data input on row 4. The data can potentially run to row 1000. The columns that are used are B through M. The part name is in column B and the quantity is in column C. The part name can repeat with a different quantity and be put in a different row than a previously entered value. I need to combine those x number of rows based on the match of the part name and sum the quantities then delete the remaining matches. Columns D-M are not unique.

I have attached a sample. The sample is very simple with just two matches but the matches can more than two. The matching rows are highlighted. duplicate rows.xls

View 9 Replies View Related

How To Combine Rows Of Data With Like Information

May 13, 2014

I have 500 rows of data with 6 columns. Columns A,B,C,D,E are text, and column F is values.

I'm looking for a formula where I can say for any of these rows where the data in columns A through E match each other in those rows, combine them into one row of said text, with column E values totaled. I thought I could use SUMIFS for this, but I only know how to define SUMIFS with the criteria being a specific cell/text/value for which it should search on. In my example, the data in the cells can be anything, I just need rows to be "collapsed" to one row for like data.

View 2 Replies View Related

Combine 2 Rows Of Data If Conditions Are Met

Jan 17, 2013

combining 2 rows of data if certain conditions are met. I have attached an example of my worksheet for reference.

Example.xlsx

What I want to happen is if a number in column J is followed by an "x" then the values in columns AQ and AR should be combined with the row of the same number (e.g. if 236x is in column J2 then the values in AQ2 and AR2 should be combined with AQ3 and AR3 because 236 appears in column J3, the same process needs to be repeated for 237x with 237 etc.).

View 3 Replies View Related







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