Copy / Move Data From One Column To Another Without Overwriting

Aug 11, 2014

I have a large spreadsheet which I have extracted the data I need, but I am now having a problem tiding it up.

To simplify. I have 2 columns, both containing data formatted as text, each column has some data, but on different rows.

I need to merge the 2 columns without overwriting the data on the second column, with blank data from the first column, and without the column shrinking or growing.

Here is a section of my spreadsheet that needs merging : Excel-1.PNG

I have tried copy > Paste Special > Skip Blanks, but it just copies the column to the other - no merging.

View 1 Replies


ADVERTISEMENT

Copy Data Between Workbooks Without Overwriting

Jan 19, 2008

I need to create a macro that will insert copied cells(cell range) from the clipboard into a cell on a different workbook and "shift cells down". The cell range in the clipboard will always be different and the position of the cell I select to insert the data into will also vary.

View 4 Replies View Related

Copy And Paste Selection Macro Into New Worksheet Keeps Overwriting The Previous Data

Sep 19, 2012

I have a copy and paste macro below, that copies the selected rows and pastes them into a different sheet called Blank BOM. Each time they are pasted, it just writes over the previous items at the top of the list. I would like it to paste in the next open row, so I can go back and forth between the sheets and add things. Here is the code:

VB:
Sub CopyRow()
Selection.Copy Sheets("Blank BOM").Cells(Rows.Count, 1).End(xlUp).Offset(1, 0)
End Sub

View 9 Replies View Related

Copy Sheet To Same Workbook Without Overwriting Original

Aug 11, 2007

I have some code written to duplicate a template and rename the copy to "Working Copy".

But if I run the code more than once, it breaks as VBA tries to overwrite the sheet with the same name.

Would I would like is for the macro to check to see it already exists and duplicate the copy with some type of incremental integer. Thus the first duplicate would be Working Copy 1, and if the macro is run again, the duplicated copy would be Working Copy 2, etc.

here is what I have so far:

Sub SCButton()
Dim i As Integer 'for making Working Copy 1, 2, etc.

Sheets("SCTemplate").Select 'this file will eventually be hidden and thus the user with only see the wokring copies.
Sheets("SCTemplate").Copy After:=Sheets(4)
Sheets("SCTemplate (2)").Select
'some sort of If statement here to check for the sheets

Sheets("SCTemplate (2)").Name = "Calculation"

View 5 Replies View Related

Copy Or Move Column Ranges From 1 Sheet To End Of Column Range Of Another

Mar 7, 2008

I have two different Excel reports and the data needs to be copied from each column on one spreadsheet and pasted to the bottom of the equivalent column on the other spreadsheet.

So, is it possible to get a macro that will copy the data from one column then paste it to the next free cell in the column on the other spreadsheet.

If I could get some code to do one column then this should be enough to get me started and I could apply this to the other columns I need to copy.

View 8 Replies View Related

VBA - Copy Input From Sheet1 To Sheet2 Without Overwriting Information

Apr 7, 2013

I have created a code in which the information from Sheet 1 copies to Sheet 2 correctly. Every time I input new information for my click event (ticket sales/amount received/change due) I want this information to be displayed in Sheet 2. However, every time I start a new submission, the information overwrites on the second Row so that only one submission is displayed. I need to create a history of all submissions from Sheet 1. Here is the code that I have to copy Sheet 1 to Sheet 2:

VB:
intRow = intRow + 1
If intRow = 1 Then
intRow = intRow + 1
End If

[Code] .....

View 2 Replies View Related

Copy Range From Multiple Worksheets To Another Worksheet Without Overwriting

Apr 25, 2014

I need a code that will copy any cells with data in range I3:I41 from sheet2 and paste it in sheet1 starting at cell B3. Then copy any cells with data in range I3:I41 from sheet3 and paste it in sheet1 starting at the next empty cell.

View 9 Replies View Related

Convert Column B As Multiple Column Titles And Move Data In Column C Into New Columns?

Jun 30, 2014

I have a excelsheet that looks like this:

Column A | Column B | Column C
Los Angeles | Fire Dept | 3
Los Angeles | Health Services | 12
New York | Fire Dept | 8
New York | Health Services | 22
New York | Internal Services | 100
New York | Public Works | 7
Chicago | Health Services | 15
Chicago | Public Works | 56
Chicago | Social Services | 4

And I am trying to make it look like this:

Fire Dept
Health Services
Internal Services
Public Works
Social Services

Los Angeles
3
12

New York
8
22
100
7

Chicago

15

56
4

View 8 Replies View Related

Set Of Column Data Move To Different Column And Delete Unwanted Column VBA

May 29, 2014

I have set of data Pasted in 4th row, in the top row 44 columns values assigned i want move data from set of data to different column among these 44 columns

Like "Service Order ID" is 1 column in set of data ,it move to second column of top row

Some of column need to delete. (Service Order Type,Service Order Description,Created By,Status,Contact,Expected Delivery Date,

Creation Date,Priority,Net Value,Currency,External Reference,Reference Date)

I want Get output result in same sheet (Actual).

View 3 Replies View Related

Using A Combobox Without Overwriting Existing Data

Oct 9, 2008

I have a worksheet containing employee information (i.e. name, manager, department, etc.). I also have a userform that will be used to make changes to the employee information. The userform has three comboboxes and, when activated, the userform is populated with the existing data in the worksheet.

Here is the problem - I need to have the existing worksheet data populate (as it does now) but also have the combobox choices available in the event that one of the 'combo' fields need to be changed. How do I keep the existing worksheet data AND keep the functionality of the combobox?

View 3 Replies View Related

Move Data From One Column To Another Based On Column Headers And Row Text

Feb 7, 2014

I am in need of restructuring a spreadsheet of addresses for mailing purposes. (I tried to find something similar answered previously, but nothing seemed to work for me.)

I have attached a small example spreadsheet below, but our spreadsheets can be hundreds or thousands of rows in length.

I need a macro that will look for the "PO Box" addresses under the column headers named "ADDRESS2" and "ADDRESS3".

The PO Box addresses will need to be moved under the column header "ADDRESS1" within the same row.

It will need to overwrite the text that is already under "ADDRESS1" and delete the text from the "ADDRESS2" and "ADDRESS3" columns - UNLESS the text in 'ADDRESS2" is a PO Box AND "ADDRESS1" begins with "c/o".

If the data in "ADDRESS2" or "ADDRESS3" is anything other than a PO Box it will remain the same. As will "ADDRESS 1".

Basically if there is a PO Box it needs to be in the column named "ADDRESS1" and overwrite anything else that was there. The exception will be for PO Boxes that are in c/o someone else, the PO Box will then need to be listed in the column directly after the column that has c/o.

If the c/o exception will be too difficult the code could just highlight those scenarios and we could fix them manually. We usually do not have a lot of them, but enough that we need to be mindful of them.

The different scenarios are listed in my sample spreadsheet.Also, the code will have to use the column header names in row 1 because those headers are not always in the same column.

View 14 Replies View Related

Recording Data In Sequential Rows Without Overwriting

Aug 12, 2008

I am working on multiple sheets that collate to an “averages” sheet. The Averages sheet would need to collate the information historically.

I need a code that can be assigned to a button so when it’s clicked, the figures for this week are added to the figures that were from last week. So for example.

Worksheet 10, Rows 12 – 20 have the data from the last 8 weeks.

Worksheet 09 has this weeks data and a button to push. When pushed it adds the data from this week to row 21 in Worksheet 10.

The following week the button would add the data to row 22 and so on.

Essentially each time the button is pressed it drops the information in a row one lower than the last time the button was pressed.

View 9 Replies View Related

Move Info In One Column Based On Data In Another Column

Aug 28, 2012

I am trying to move a column of numbers based on the information in another column. I've been looking for about a week and find macros that are close but not quite.

In one column it reads Mobile, Home, or is blank. If the number is a Mobile (column R), the area code (column P) needs to move to column S and the phone (column Q) needs to move to column T and the primary phone (column R) needs to move to column U. Home and blank cells remain as they are.

area (P)
phone (Q)
primary phone (R)
col S
col T
col U

[code]....

View 7 Replies View Related

Move Or Copy Data To New Sheet?

Mar 23, 2014

Here's a sample sheet.

I receive spreadsheets with data sorted by column. There might be 500-600 records in approximately 1-8 categories, 14 columns wide. One column is used for the category. I would like to copy or move the data in each category to a new sheet within the file, so I can work with each category separately. I do this manually now, and have to do it multiple times for each file, as the data changes daily.

The category names are rarely the same from one batch to the next, so the routine will have to look at the categories and understand their names in order to put the data on a new sheet. Category names are alpha-numeric, like RA114, RC109.

This seems like a VB app, but I don't know VB! Is there a way to do this without VB? If not, is there a well-documented VB template or utility I might use to modify?

View 4 Replies View Related

VBA Code To Move Or Copy Data

May 8, 2009

I would like to copy or move data from one worksheet to another automatically. I have one sheet (Data) with multiple pieces of data for specific individuals. I have several other sheets titled their last name. Can data for example from John Doe be copied to the sheet Doe and data for John Smith be copied to sheet Smith. In essence I would like the sheet to paste everything below John Doe to Doe's sheet and recognize the next name and past that into the next sheet and so on. It may be several different codes, Im ok with that.

One other item all cells do not have data I do need the blank cells copied as well at to not lose the formatting. There is also a blank 2 rows between each person.

If you need a copy of what the data looks like I can send it.

View 9 Replies View Related

Create Unique Values List While Overwriting Old Data?

Jan 24, 2012

I will copy a report into sheet 1, starting in the same place(A1), on a weekly basis. The headers are: Item, Quantity & Price

Week 1's report shows the following:
Windows 5 $1.00
Doors 6 $1.50
Chairs 7 $2.00

Week 2's report shows the following:
Windows 3 $1.00 (change in quantity)
Tables 7 $5.00 (new item)
Chairs 7 $2.50 (change in price)

I need to have a rolling, unique list on Sheet 2 that will do the following:

- add new line items

- keep old line items while checking to see if the quantity or price has changed.

Therefore, after week 2's report is pasted on sheet 1, Sheet 2 should look like this:

Windows 3 $1.00
Doors 6 $1.50
Chairs 7 $2.50
Tables 7 $5.00

Here's the most important part: There will be formulas in Column D in Sheet 2 that I need to stay with each item. generating the desired result on Sheet 2!

View 9 Replies View Related

VBA Code Overwriting Data Written In Previous Loop

May 9, 2013

I have amended the code below and have got it working. The problem I have now is that every time it loops it overwrites the data it wrote the previous loop

Offending line being ActiveSheet. Range ("A1: D30") = ValuesArray

I have known that somehow it should remember the last row and copy below this one but I cannot get it to work

Code:
Sub Basic_Example_1()
Dim MyPath As String, FilesInPath As String
Dim MyFiles() As String
Dim SourceRcount As Long, Fnum As Long
Dim mybook As Workbook, BaseWks As Worksheet
Dim sourceRange As Range, destrange As Range

[Code] ..........

View 1 Replies View Related

Stop Timer Macro From Overwriting Data In All Active Worksheets

Feb 17, 2014

I have a worksheet that has macro events attached to command buttons. When a ‘Start’ command button is clicked, a timer begins counting in seconds and displays the value in cell B3 until a ‘Stop’ command button is clicked. The event works flawlessly as long as I don’t open up another workbook (to continue working in Excel).

When the second workbook is open…then time stops working in the workbook where the macro was created…and starts displaying the ‘timer count in seconds’ in the new active workbook--which overwrites/destroys the data in the newly opened workbook. When I go back to the original book that called the macro…it continues counting again.

I need this timer to continue running in the workbook with the command buttons (in the background) while I work on other worksheets in other books. Is there a way to keep the timer running no matter how many other workbooks are opened and prevent it from overwriting whatever sheet is active? This code in the Increment Sub below ‘overwrites’ the contents of cell B3 on whatever sheet is active---and stops the timer in the on the sheet with the ‘Start’ command button.

View 1 Replies View Related

Macro - Importing CSV File Into Specified Worksheet Overwriting Existing Data?

Sep 5, 2013

- Construct a macro to import a csv-file to my worksheet named "Info". The data in the .csv-file should start in row A5 in my worksheet.

- If the worksheet "Info" already has data, I want to overwrite the existing data with the new data starting in row A5

The directory of the csv-file is C:Testmycsvfile.csv

View 3 Replies View Related

Data Move To One Column

May 3, 2013

I have large information scattered all over worksheet. If I want to move all data in one column "A" how can I do it?

View 2 Replies View Related

Move Data To One Column

Nov 19, 2008

I have data in multiple columns like this:
http://spreadsheets.google.com/ccc?k...rEspkRfQWMOTUg

I'd like to move all data to one single column (like column #1)
Can someone help me out with a VBA macro ?

View 10 Replies View Related

Move Data From One Cell In One Row Into Several Rows And Copy Rest Of Row

Mar 2, 2013

I publish a green building mag, and we run an enquiry system for readers on our website. This is the link: [URL] .......

The idea is that readers tell us some info about themselves, including what types of products/services they'd like to receive information about, and we pass their details on to advertisers offering those products/services.

When someone fills out a form, we get data in Excel on their enquiry. It's all in one row - name, contact details, and then the products/services they've enquired about are included in one cell, separated by commas.

So for instance, suppose a listing currently came in as follows (column headings in brackets:

(name) Joe Soap / (job title) Architect / (organisation) Joe Soap Architecture / (address) 123 Soap St, Soapville / (enquiries) insulation, solar panels, windows

Essentially I want it to run like this:

(name) Joe Soap / (job title) Architect / (organisation) Joe Soap Architecture / (address) 123 Soap St, Soapville / (enquiries) insulation
(name) Joe Soap / (job title) Architect / (organisation) Joe Soap Architecture / (address) 123 Soap St, Soapville / (enquiries) solar panels
(name) Joe Soap / (job title) Architect / (organisation) Joe Soap Architecture / (address) 123 Soap St, Soapville / (enquiries) windows

View 14 Replies View Related

Move Specific Data From Row To Column?

Jun 24, 2014

Currently i hav list of info that is long like this.

A 1
B 2
C 3
D 4
E 5
F 6
G 7
H 8
I 9
J 10

How to move row to column example below. Because i want the data to be printed on an a4 paper which can fit around 3 row to save space . If i manually copy paste page by page it is too much.

A 1 D 4 G 7
B 2 E 5 H 8
C 3 F 6 I 9

===

Currently i have macro code which roughly does this.

A 1 B2
C3 D4
E5 F6
G7 H8
I9 J10

Sub test()
Dim rng As Range, m As Integer, c As Range
Columns("c:E").Delete
m = 2
Set rng = Range(Range("a1"), Range("a1").End(xlDown))
Set c = Range("a1")
Do While c <> ""
'MsgBox c.Address

Range(c, c.Offset(m - 1, 0)).Copy
Cells(Rows.Count, "c").End(xlUp).Offset(1, 0).PasteSpecial Transpose:=True
Set c = c.Offset(m, 0)
Loop
End Sub

View 2 Replies View Related

Move Data Daily Into New Column

May 21, 2008

I have used the "Import External Data-Web Query" to gather financial data.

This data is updated daily by the web site. The data fills up columns A2 to E 6000.

The data on Column B is of importance and I need it to be stored daily. I need a code that will store todays Column B data in column F, tomorrows Column B data in Column G, dayafter's column B data in Column H and so on..

In short, I need to create a database automatically..

View 14 Replies View Related

Code To Move Data From One Column To Another?

Oct 12, 2011

coding that will select whatever data is entered in say Coulmn D & then copy it to the botom of another list in Column F.

The amount of rows with data in any of the colums may vary.

View 8 Replies View Related

Add New Data Without Overwriting Old Data When Importing From Web?

Jan 30, 2013

I'm linking my excel document to a table on the web. The source only ever shows the last 50 orders but I would like to retain the old data when refreshing so I can see further than just the last 50 transactions. Is there any way for excel to insert rows for any new data? All the options when linking to the source seem to clear the old data.

The table looks something like this:

Timestamp OrderID Description Filled

View 1 Replies View Related

Move Row Data To A Sheet If Column Contains Word

Feb 6, 2014

I have a sheet called 'TimeRecorded' which will contain lots of rows of data.

If a row contains 'invoice' in column H, then the data in that row, preferably as far as column H, should be moved to the next blank row in a sheet called 'Archived'.

I would like the macro to move every row that contains 'Invoice' in column H to be moved.

View 1 Replies View Related

Move Column Data To Row Then Delete Those Rows

Jul 23, 2007

We have a client that provided us with a text file that we imported into
Excel. Rather than have the entire record in one row, they have the record
in 4 rows.

What I need a macro or something to do is move award 2 award 3 and award 4 into the same row and after doing this delete the other rows.

Below is an idea how this looks.
1JohnSmithstreetcitystateZIPaward 1
2JohnSmithstreetcitystateZIPaward 2
3JohnSmithstreetcitystateZIPaward 3
4JohnSmithstreetcitystateZIPaward 4
5BillJonesstreet2city2state2ZIP2award 1
6BillJonesstreet2city2state2ZIP2award 2
7BillJonesstreet2city2state2ZIP2award 3
8BillJonesstreet2city2state2ZIP2award 4

What we need for our data to work is:
1JohnSmithstreetcitystateZIPaward 1award 2award 3award 4
2BillJonesstreet2city2state2ZIP2award 1award 2award 3award 4

View 9 Replies View Related

Move Blocks Of Data In 1 Column To Rows

Nov 15, 2006

Moving Data And Deleting Blank Rows. I am a complete newbie to excel VBA and require assistance (if at all possible). I have data in the following format in an excel sheet (I have a lot more rows but give an example for two rows)... in 1 column but I wish to separate it (i.e. move data along onto the first row in other columns) and delete blank rows.

For Example:

Col1
AAAA
BBBB
CCCC
DDDD
EEEE
AAAA
BBBB
CCCC
DDDD...............................

View 9 Replies View Related

Move Text Data To Next Empty Row In Column

Mar 15, 2007

I am importing a 20 character text string (from a barcode scanner) to H2. I need to send that data to the next unused row in Column A (after insuring that no matching text currently exists in Column A-no action taken if matching data is found). I can provide a copy of the sheet, along with a description of the project.

View 2 Replies View Related







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