Data Copy
Jan 28, 2010
I have a spreadsheet (Attached) that has 2 sheets. Sheet 1 has column A "Product Code" and Column B "Text".
We then have sheet 2 which has column A "SKU" and column C "Text".
I want to go to sheet 1 A2 find the value (In this case 000006) then go to sheet 2 and find that value in column A. Lets say the value was found in A7 then take the value from C7 (This is the text from the same row that the value is found) and paste it into sheet 1 B2.
Once that is done then we move down to sheet 1 A3 then A4 and so on until every row has been completed.
The process i have explained above takes perhaps 5-10 seconds to do by hand but obviously with 10000 rows it will take a while.
View 6 Replies
ADVERTISEMENT
Jul 4, 2012
I have a workbook that includes 4 seperate sheets that are used to record time and expenses for 4 members of staff. I want to write a macro to select the data I need from each sheet and colaberate together in a 'data' sheet so I can combine all the info to run time and expense reports per client showing combination of all time and expense incurred from all 4 staff.
I have named cell ranges in each of the 4 time-sheets. I proceed to record a macro, select the first named range, copy and paste into my data sheet, do a control home then control down arrow, then one more down arrow to get to the first blank cell and repeat the process for all four time-sheets.
This works until I add a new line and then the data will only appear for the last time-sheet (last row of data).
View 2 Replies
View Related
Sep 18, 2009
I have two sheets, a data sheet with all our customers by ref, name and spend; and a presentation sheet.
In the presentation sheet I want to display the ref, name and spend of the Top 50 customers by spend, price high to low.
The workaround:
Copy all data from data sheet, sequence top down by spend, manually delete all after 50.
My only issue is that each month the data sheet will update and I want the Top 50 to auto update, without performing the workaround above.
Is there a way to do this without VBA i.e. pivot tables etc
View 10 Replies
View Related
Oct 7, 2013
I have an excel WS1 set up as DB; I want to keep this sheet for data revision. WS2,3, 4, & 5 will be data that is filtered and sorted, using WS1 as source so I want to auto copy the WS1 data. Can I just auto copy WS1 (how do I do that?) then filter and sort in each WS?
View 3 Replies
View Related
Mar 8, 2014
We have folders of daily cash collections stored in such a manner, yearmonth. In every month, we will have worksheets sent by the end user to the finance dept, naming it using mmdd. (The folder in the drive will reads: C:Daily Cash Collection2013), (C:Daily Cash Collection2013 0104.xlxs), (C:Daily Cash Collection2013 0115.xlxs). I intend to put the master list outside the year folder, meaning, in the Daily Cash Collection folder (C:Daily Cash CollectionDCC_2013.xlsm). When I have a new folder for year 2014, my master list will be here (C:Daily Cash CollectionDCC_2014.xlsm)
I am looking to automate this opening of all the daily worksheets, select all data except the header row, and copy it into a master list (which will be data for the whole year, with 3 months of the previous year data).
The data in the daily sheets, it will have collections of the same Debit Note number from the file sent earlier. Meaning, if the file was sent on 0104, there is a DN0114-0002, collection of $50. In another daily sheets 0115, it will also have a collection of DN0114-0002 of $20. This 2nd information of $20 will also need to be captured as the payment in 0301 is partial and incomplete.
I will need to copy the daily sheets into the master list every now and then. Is there a way to check and copy the daily sheets and not repeating it and missed out one?
In another words, if I had already copied Jan sheets into the master list, will it look for the next worksheet that I had not copy and copy according the DN number? (it will be in running number but sometimes will have DN of the previous month due to the partial payment ealier).
Alternatively, if this is too complicated, how to insert a macro to copy all cells except the header (will be in fixed column and the first row will be fixed) from an open daily sheet, find the last row in the master list and copy it to the master list, and after copying, unclear the selection of the daily sheet and close the daily? Where can I put this macro as the daily sheet is from the end user. I can only put it into my master list, but my problem is, the file name of the daily sheet is not fixed, it depends on the day the end user saved and email the data to Finance Dept.
DCC foler.jpg
View 10 Replies
View Related
Jun 15, 2014
I am trying to create a macro to copy a set of datas in a row , paste into another workbook (specific sheet),then save it as one of the datas that was copied over.
Workbook1
Ticket#
Description
Name
12345
Test 1
David
32145
Test 2
Steve
Workbook2 - sheet (ABC)
Copy row 2 from Workbook1, paste to row 1 in Workbook2 sheet(ABC)12345
Test 1
David
Saveas Workbook2 - ABC - "12345" - Ticket #
Copy row 3 from Workbook1, paste to row 1 in Workbook2 sheet(ABC)
And so on. I will have a set of data to trasfer to Workbook2, each row different workbook.
View 4 Replies
View Related
Mar 7, 2008
I have a excel worksheet with the following columns: First name, Last Name, Email address, domain of email, product type, date registered. The list consists of about 50,000 entries. I want to sort the list by the domain of email(which I am able to do already) Once this is done, I want to find all instances of where a domain appears at least 10 times on the list(such as webmessenger.com appears 40 times, so I want to get that data).
For those instances where the domain appears at least 10 times, I want to pull those rows out of the intial list and put them in a new list(the new list will be sorted by domain and will only have people who have a domain which appears at least 10 times). To make this a bit more clear, The initial list I have is a list of people who registered to use the software my employer makes. We are trying to locate companies which may have many people using our consumer version of the software. When there is a large amount of people in the same organization using our software, it would benefit them to upgrade to the enterprise version due to enhanced managment features. By running this filter, I can see which companies have at least 10 users registered to use our software. Of course I will remove any Gmail/yahoo mail/msn/hotmail... pretty much any public email domains and just leave the ones that are obviously corporate emails.
So far, I think it probably has to be done with a pivot table... I was able to get a table that tells me how many instances occur from each domain, but I cannot get it to display the actual data(it just says IE. company.com 200, yahoo 120, etc... I need it to show me the 200 rows of company.com emails and extract them to a new sheet so that I can then follow up with company.com and see if they are interested in the corporate version.)
View 2 Replies
View Related
Oct 18, 2013
I have been working on a macro that compares a existing list of data to an updated list of data and then either moves any data not on the new list over to a completed tab (followed by deleting the record on the existing sheet), and then adds any items not on the existing sheet, but which appear on the new list, to the existing list.
I have come across a stumbling block, i have managed to identify on the existing list the rows of data that have been removed from the new list and therefore need to be moved over to the completed tab, but when i select the data it selects the header row aswell (which will always remain the same row). Obviously this then pastes the header row aswell, and also i can't seem to get it to paste in the new sheet to the next available row (i.e this will be used daily and i don't won't to overwrite the infor already in the completed tab). the next issue i have is then when i go back to existing sheet to delete the data i just copied across, as the header was initially select this also gets deleted.
The code below, is the complete code, including filtering, copying some forumals etc. The area i am getting stuck on is highlighted in red:
Sub Update()
Dim bottomrow As Long
Dim My_Range As Range
bottomrow = Cells(Rows.Count, "C").End(xlUp).Row
Set My_Range = Range("A1:Y" & bottomrow)
[Code] .....
View 6 Replies
View Related
Dec 9, 2008
I have a time card report which will record the time spent on work for each employee. Each month, i have to generate the time card report and copy the data to my master file. Is there any code that can auto copy the time card entry directly to the master file? I only need some of the entry on the time card report, some of the column can be ignored.
I was thinking of creating a macro that will prompt me to choose the file to import as there are different file for different individual. Attach here with the master list (Demo.xls) & the time card for one individual (Nov-KTTHAM.xls) for reference.
I want to copy the data on column B of the time card to the column A of the master list, column C to column B, column D to column C, column E to column D, column F to column E and column G to column G.
View 4 Replies
View Related
Mar 27, 2014
I have a column in two different worksheets that contain the same information that I want to match.
Raw Data - worksheet 1
Data - Worksheet 2
Column A - ShopperID
Same data is in both worksheets, column named the same in both worksheets
Raw Data worksheet contains email addresses in Column J that i want to extract and copy to column I in Data worksheet if there is a match on Column A.
View 3 Replies
View Related
Oct 17, 2012
I have a workbook with 3 sheets
Sheet1 - TeamList - Column A is a list of all the team leaders which is used to create a new worksheet for every team. Col B is blank. Column C, D, E are the team lists where teams can consist of anywhere from 10-25 employees.
For example
Column A
Column B
Column C
Column D
Column E
Team Leaders
Team Leader
Employee
Pin
TL 1
TL 1
Emp 1
10001
[Code] ......
Sheet2 "RawHours" A raw data sheet that contains employee hours information
For Example
Employee #
PIN
NAME
Reg
OT
TRN
Stat
Sick
Vac
Berv
2000100
10001
Emp 1
24.00
0.00
[Code] .......
Sheet3 - Template
Basically what I want to be able to do is create a sheet for every team leader and copy and paste there team into the appropriate sheet.
I have the sheet create done by simply copying the template and renaming each sheet using the Team Leaders list from column A from the TeamList sheet. And then I copy the page setup information using the template as well but when it comes to pulling over the appropriate team members in to the appropriate sheet I can not seem to wrap my head around it.
Below is the current code I am using:
Code:
Option Explicit
Sub CreateSheet()
Dim LR, i As Long
Dim shCount As Integer
Dim Sh As Worksheet
Dim Cell As Range
Dim CpySht As PageSetup
[Code] ........
View 3 Replies
View Related
Feb 15, 2010
Got an issue that I can only seem to do with things like the program Hotkey and making physical macros. I'm sure it is easy but I'm lost.
I have data in one book that looks like this (Call it Book1)
Date: Service
ProviderReason for callCRM
SR #DM
SR #WO #Device #Serial #Issue15/02/2010DATE: 03/02/10
TIME: 11:29
BUS: 1234AO
ISSUE DETAILS: Issue with Console
and data in another book that looks like this (Call it Book2)
DeviceSerial NumberNameTerminal PositionTerminal Group Location DescriptionTerminal IDDescription Service Provider 104012343030123456ConsoleDriver Console1234AO90401234Service Provider Name found Here
I need to find the BUS: 1234AO from the cell in Book1 then look that Bus up in Book2 and then from Book2 copy the Device, Serial Number, and Service Provider into the cells into Book1 and repeat this infintely often. The problem I have is the the bus can have 1 Console and 1-5 Readers and I need to find that data also. So for example I need to find BUS 1234AO and get the Console details and past that into one issue and the next issue will have the same bus number 1234AO but I need the details for Reader2 (that detail is in the Name field as shown above.) The issue details will always have the Console text and Reader# text in it.
The problem I have is that the Reason for call cell has ALT-ENTER characters in it and the details are not always in the same spot but the details are almost always in the format ####AO (four numbers and the letters AO)
View 19 Replies
View Related
Apr 13, 2009
look for a certain value in worksheet A and copy that row of data to Worksheet B.
However, it seems to be only copying the row in worksheet A and pasting it. Is there something that a noob VBA scripter has missed out?
PHP Private Sub GetInfo_Click()
Dim r As Long, LastRow As Long, Status As Integer
Dim Message As String, Title As String, Default As String, MyValue As String
Application.ScreenUpdating = False
MyValue = Range("A4").Value
Workbooks("invoice.xls").Worksheets("A").Activate
LastRow = Range("C65536").End(xlUp).Row
For r = LastRow To 1 Step -1
If Cells(r, 1).Value = MyValue Then
Rows(r).EntireRow.Copy
Workbooks("invoice.xls").Worksheets("B").Activate
Rows("8").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Status = 1
Workbooks("invoice.xls").Worksheets("A").Activate
Rows(r).EntireRow.Delete
Exit For
End If
Next r
Application.ScreenUpdating = True
View 2 Replies
View Related
Jun 1, 2013
I have a main "ControlSheet" with a list of client and info in Columns A,B,C and E
In Column D of this "ControlSheet" I enter the Staff member who the client has been allocated to (e.g "Staff1")
A B C D E
1 Ref Data1 Data2 Staff Date Client Allocated
2 102 1000 10001 Staff1 01.06.2013
Each staff member (there are 7) has their own tab set up (e.g Staff1, Staff2, Staff3 etc)What I would like to achieve is when I choose the relevant staff member in column D of the "ControlSheet" (Lets say D2) I would like the Data from A2,B2,C2 and E2 of the "ControlSheet" to be copied to the next available/empty row of the Staff members own tab.
So in this example (above) A2-E2 would be copied to the "Staff1" tab as that is the staff member chosen If I was subsequently to change the Staff member chosen on the control sheet from say "Staff1" to "Staff2" I would then like the Data or Row to be removed from the "Staff1" Tab and added to the next row of "Staff2" Tab.
View 2 Replies
View Related
Mar 16, 2007
I would need Excel to compare rows between two worksheets (A & B), and if there are any:
(1) new rows in A, to copy across the new rows onto B.
(2) updated rows in A, to copy the updated data onto B replacing existing B values.
This in itself would be simple. Only thing is, worksheet B would be subtotaled and sorted by the subtotal and this is something I wonder if Excel can cope with. BTW I wouldnt mind it if subtotals in B has to be undone before the data gets updated, so long if Macro automates it for me. Is this possible or am I asking for too much? A representative excel file is as attached.
View 5 Replies
View Related
Jul 30, 2014
See attached. test.xlsm‎
Copy data from one row to another?
View 6 Replies
View Related
Nov 3, 2008
I have used this code below which copies a range of data from one workbook to another, which works fine. I want to take this to another level. How can I copy data from a workbook to another workbook, but not knowing where the last row is
View 14 Replies
View Related
Dec 15, 2008
I have a bit of code below which i am trying to use to copy a row of data
View 2 Replies
View Related
Sep 29, 2011
I'm looking for a macro that will move the numbers in column F
If a 10 digit number is found in COLUMN E, then the macro should go to PREVIOUS ROW and then to COULUMN F OF THAT ROW and copy that number 1 ROW BELOW.
View 6 Replies
View Related
Jan 2, 2013
Column A contains 5 or 6 digit account number (unique field) in Sheet 1.
If Column A is = 6 digits, I want to copy the whole row data into sheet 2.
How can I do it?
View 1 Replies
View Related
Jun 11, 2013
I have a worksheet with a few different tables on. I want to create a macro that will copy the data down from the last row in my first table. There are empty rows between each table but it seems to count these when i am trying to set a rule for what is the last row, resulting in it selecting all the tables on the sheet and copying them.
View 1 Replies
View Related
Oct 13, 2013
What I would like to do is copy the data in each corresponding row only if there is a "W" or a "P" in column AU3:AU12.
So if AU12 has a "W" then all the data in row AW12:BI12 is copied to M3:Y3 same sheet,
and if AU3 has a "P" then all the data in row AW3:BI3 is copied to AA3:AM3 same sheet.
The next day whatever place (AU3:AU12) the "W" and "P" are, the corresponding rows will be copied one row down as M4:Y4 for "W" criteria, and one row down as AA4:AM4 for the "P" criteria.
View 9 Replies
View Related
Feb 4, 2014
I am after a code that will copy data from last row to next row and then clear data from the copied row between Col A-K.
So in the below test data, copy row 2 to row 3 then clear data from A3 to K3.
note Col A will have data validation list, so the code will need to paste validation as well
Sheet1 ABCDEFGHIJKLM
1Header1Header2Header3Header4Header5Header6Header
7Header8Header9Header10Header11Header12Header13
2Test1Test2Test3Test4Test5Test6Test7Test8Test9022Test1
3Spreadsheet FormulasCellFormulaL2=K2+J2
View 9 Replies
View Related
Nov 25, 2007
i have 2 colume data in excel col A , with G1, G2 , G3 , and empty cell.
i need to a macro to search for Col A , those empty cell, and fill the value from col B.
before :-
C1 C2
1 G1
2
3 G3
1
2
2 G2
2 G2
After
C1 C2
1 G1
2 2
3 G3
1 1
2 2
2 G2
2 G2
View 9 Replies
View Related
Jun 14, 2009
I am trying to copy following date to Sheet2 with some criterias by using advance filter but I do not understand that how should I write a code(for required qty) to say that I need Series of Region SS, Group 1,3,6 and another criteria where I put my required count for example I need only 7 (not all of group 1,3,6) sereis of Region SS in Group 1,3,6 then codes copy only 7 series with region and group ....
View 9 Replies
View Related
Sep 3, 2009
I need to use VBA to copy and paste special the data from the current region ( which will change each month) to the next free row.
I then need this to re-do this for 5 times.
So, what i'd like to end up with is... what i currently have in Columns A and B in rows 2-10, duplicated in 11-20, 21-30, 31-40, 41-50.
Range("A2").CurrentRegion.Select
Selection.Offset(1).Resize(Selection.Rows.Count - 1).Select
Range("A", "B").Copy
Range("A", "B").End(xlDown).Offset(1).Row
Range("A", "B").PasteSpecial Paste:=xlPasteValues
End Sub
View 9 Replies
View Related
Apr 11, 2007
I need to be able to highlight all cells before the first one starting with a tab (the square symbol anyways, I dont know if there is a difference). I would like the macro to highlight all cells in the column (the data is all in one column) before (and not including) the cell with the tab mark, cut them, and paste them in a new sheet. I also need the macro to repeat this process again and again until there is no more data to cut and paste anymore. My data looks something like this...
"bla bla
x
y
x
x
x
"tab square" d;lfkjs;dlfj"
View 7 Replies
View Related
Dec 8, 2008
I have a workbook with four sheet. in Sheet1, column A, there are about 80 entries. I wish to copy these 80 entries to another Sheet, say sheet 2 in Column C.
View 3 Replies
View Related
Feb 25, 2014
I have an excel file that has 2 sheets:
Sheet1 has 3 columns: item (column A), quantity(column B), details (column C)
Sheet 2 has 2 columns: item (column A), details (column B)
I want to copy the data from sheet1 to sheet2 like this:
If item x has a quantity of y in sheet1, then I want to copy the item x and paste it y times in sheet2.
When pasting the item x in sheet2, y amounts of times, i don't want to include the quantity column.
See the attached image : Pic.png
View 1 Replies
View Related
Jan 3, 2007
I am trying to automate a process that I do manually today. I have a specific folder that contains 4 .csv files. We will call them:
sheet1.csv
sheet2.csv
sheet3.csv
sheet4.csv
They are the only format that ARS Remedy can export in. I wish to copy the contents of these four .csv files to unique tabs in an Excel workbook. The name of each tab should match the name of the .csv file that provided the data. For exmple sheet1 would contain all the data from sheet1.csv and so on... I'm just learning the ropes to VBA and I am running out of time to play around with this.
View 12 Replies
View Related