Update Master Table
Jul 20, 2009
I'm new to Excel Macros and have hit a brick wall on what I would consider
to be my primary workhorse macro! I'm embarrassed to admit that I haven't
mastered coding for movement of data around the spreadsheet much beyond
the macro recorder. I need something tight, efficient, and (instructively commented)!
I've got a spreadsheet consisting of a Master table with 42 rows, (2 rows
per record), and 14 columns of information. To the left of that is another
table consisting of live data from the process. It has anywhere from 1 to
24 rows with 10 columns representing Current/Live/Pre-processed information,
pulled in from the company web location.
Both tables start with an indexing column of 2 character alphanumeric IDs.
They are as follows: C2, D3, D4, E3, E4, F3, F4, G3, G4, H3, H4, I2, I3,
I4, J2, J3, J4, K1, K2, K3, K4.
MASTER TABLE Index Column is B4 to B44 (2 rows per record, in A->Z order)
UPDATE TABLE Index Column is Y4 to Y24 (Could be from 1 to 21 rows (Max),
1 per record, normally in A-Z order.
What I need to do is Key on the Master index column for a particular ID,
against the UPDATE index column. When there's a match I need to take the
updated values from the UPDATE table and assign them to the appropriate
cells locations in the MASTER table.
Example:
Starting with ID "C2" in the MASTER table, check to see if "C2" exists in
the UPDATE Table Index. If there's a match the following cell value
transfers must occur. Z4 -> E4, AB4 -> J4, AC4 -> J5, AD4 -> H4,
AE4 -> K4 and AG4 -> I4. If "C2 is not found in the UPDATE Table then skip
to next ID, (D3).
If ID D3 is found, another cell value transfer must occur. Z5 -> E6,
AB5 -> J6, AC5 -> J7, AD5 -> H6, AE5 -> K6, and AG5 -> I6. If "D3 has no
updates then skip to next ID and so on. Continue checking IDs and updating
until all IDs have been checked.
I'm having difficulty crafting a macro to search 2 columns against one nother,
specify the correct ActiveCell, than offset appropriately to place the desired
value in the correct location.
View 10 Replies
ADVERTISEMENT
Aug 22, 2007
I have one "master" spreadsheet I utilize per month. Each month my "master" spreadsheet is updated twice a week (so, for a four week month I update my "master" spreadsheet a total of eight times).
To update my "master" spreadsheet I compare it to an "update" spreadsheet that contains the same column headings as my "master" spreadsheet.
What I need updated:
I need to compare account numbers (column A) between the two spreadsheets, once I find a match I need to update each of the costs for the 5 products (columns B thru F) from the "update" spreadsheet to the "master" spreadsheet. I currently have a simple SUM(IF) statement that completes this for the first update.
I am lost at how I can have my "master" continually update for the next seven updates without losing each of the previous updates.Any help on this would be greatly appreciated.
I am attaching two sample spreadsheets - "master" and "update".
View 9 Replies
View Related
Apr 22, 2013
How to get updated data from connected 3 XL workbooks.(files)
1= ODBC connection ( This brings data from a Basis Query) it will updated 1 or max 2 times a day.
2= Manuel input ( It will update after inserting new data, many times a day) Password protected
3= This One is my master file which brings data in 2 different sheets from above mentioned files. Password protected
My problem is started when i want to see latest updates from file 1 & 2 in my Master file then i have to re-open my Master file, Is it any option which fulfill my requirement that i will keep my main file update just by clicking <save> & I will not re-open file at all times ?
I can't have a shared file. & my all these 3 files are in the same folder.
simple Formula used to bring results are =[Book1]Sheet1!$A1
View 2 Replies
View Related
Feb 11, 2014
I have master file (workbook) and 20 workbooks for 20 employes. All have the same columns excepte the master have the column (employe name),i want update master file from all 20 workbooks.
Master file
Column 1 = Employes name column 2 = Requisition number column 3 = amount of the requisition
Employee workbooks
column 1 = Requisition number column 2 = amount of the requisition
View 5 Replies
View Related
Nov 11, 2008
I'm currently working on a form to fill out in a study on different analyzers; the master form has gone through several revisions. To keep things looking neat, all the "children" forms have had to be altered, too. The amount of data is getting large and having to do this is getting annoying.
Is there a way to create a master form that is modifyable where the changes are spread through the children? i.e. if I insert a row with new information, I'd like the change to occur on multiple sheets. If I move a row to a different spot, similarly, I'd want all my forms with data to move around to follow suit.
View 4 Replies
View Related
Dec 10, 2009
I have a workbook that links out to numerous other workbooks for current data. After one of the supporting workbooks gets up dated, I return to the master workbook.
Here, I need to see the updated results. The only way that I can find a way of updating the master is to close and save it and then re-open.
Is there a way of updating the master workbook using a macro?
View 14 Replies
View Related
Feb 12, 2007
I have a workbook with 6 worksheets inside; One of the sheets is a master list; it's simply the other 5 sheets compiled into 1 big one. I need to set it up so that any new data entered into the 5 separate department sheets is automatically entered onto the master sheet, in the first blank row.
The columns are the same across all the sheets. Hopefully this will be easier for the pros here than it's been for me, I've been banging my head against the wall on this one. I'll be checking this thread religiously, so if you need any more information just let me know...
View 5 Replies
View Related
Jun 10, 2008
i have facing a big problem nowadays.problem is that, i have to regularly update manually(copy & paste) "oil filling", " stock" & "meter reading", coming from every day by the supervisors of our company for verious sites spreading accross the our state, nearly 1305 site. i have attached the master file(which should be updated) with the reports coming from the supervisors(Rosan & Jhon) in another sheets. the master file is same form as i given. is their any way of automatic update by any macro.
View 2 Replies
View Related
Apr 7, 2011
I have multiple sheets all of which are identical except for the number of rows containing data. I have been trying to create a macro to update these sheets into one 'Master' sheet but I'm having great difficulties due to me needing to leave Column A and Row 1 blank.
I have uploaded example data of what I am after, sheets 2 - 6 need to be automatically updated to the 'Master' sheet when the macro is run.
View 6 Replies
View Related
Dec 19, 2012
consolidating data from 3 worksheets which contain same data fields but each representing 1 brand. I like to have a summary/mastersheet to contain data from all 3 worksheets and then when the data in each worksheet is added or updated, the summary worksheet should reflect the changes (adding new data to the last row).
Project Submissions.xlsx
View 2 Replies
View Related
May 16, 2014
So, I'm setting up an accounting book. There's a master sheet that needs to pull from the other sheets that are made. The problem is, with each new sheet that is made, I have to update the formulas on the master. I would like that if I made a new sheet, the master would automatically pull from it.
Example:
Master pulls renter fee info from May 3rd, May 7th
I create sheet (May 15th)
Master pulls renter info from May 3rd, May 7th, May 15th
View 1 Replies
View Related
May 16, 2007
Here is a project I can’t seem to do on my own if you can point me in the right direction I would be grateful! here is the best suedo code to describe the needs of the script:
In the open workbook named MASTER, on Worksheet named -MASTER- ( Let’s refer to this all as just MASTER)
(In production, the name of this workbook will be an account #_ date, and the worksheet will be a date)
For each numeric value in row 6 (we’ll call these values AD###) of MASTER
'*****Part one of routine*****
Search directory "H:AccountingAdvertising Accounts" for workbook named AD### AX.xls
(Note the AX suffix of the file name)
If match is found open workbook and proceed to Part two
If match is not found, goto Private Sub AD_MISSING
'*****Part two of routine*****
View 10 Replies
View Related
Jun 12, 2013
I have created a table in Excel 2010 (pls see attached table named post.xlsx).
Then copied the above table into PowerPoint 2010, using "paste link" (I tried to attach the PowerPoint file but the system says "invalid file type" and I cannot attach it).
Question:
I have received income data for another month - the new month is 13 and the corresponding new income is 100.
I typed 13 and 100 into the Excel table post.xlsx and thus extended the table by another column.
Then I went back to PowerPoint slide, then right clicked on the table there, then clicked "update link".
Specific Question:
The newly-typed column in Excel table is not get updated in PowerPoint table.
View 2 Replies
View Related
May 12, 2013
I am working on a project and would like to see if there is a solution for it. i have a workbook that has data entry that is summarized at a master level but I need to automatically use a formula to update another sheet after clicking an udpate button. The data from the data entry sheet needs to be allocated to all the lines that has the same master item based on the formula. A test workbook is attached ...
View 1 Replies
View Related
May 3, 2006
I have 9 identicle spreadsheets, one for each user on a shared workbook.
I want to create one master table linked to the 9 spreadsheets which will automatically update including when new records are added.
With this in place I can then create a pivot table
View 3 Replies
View Related
Mar 19, 2013
I have a Master Worksheet that I am using to populate other worksheets using the Table function. I would like to keep the format the same as the Master worksheet even if lines get added or deleted. I have seen that others group the sheets together when making the changes but I can not really us that options. I will be giving the Budget to someone else to fill out and they will not know how to do that.
View 1 Replies
View Related
Apr 10, 2014
I have 10 workbooks that each contain a table of data. Each table is consistent in format and headings.
I need to group all 10 tables into one big table. I do not want to merge or combine data just simply have all the data in one master table.
Previously I have used named ranges and arrays to copy them in but this seems cumbersome and thought there must be an easier way to do it.
View 4 Replies
View Related
May 27, 2014
I have a macro that enables me to split my master table into separate tabs based on the first column. However, the column widths and the header format is not retained. Is there something I can add to the macro below to keep the formatting?
Code:
Sub DispatchTimeSeriesToSheets() Dim ws As Worksheet
Set ws = Sheets("MasterList")
Dim LastRow As Long
LastRow = Range("A" & ws.Rows.Count).End(xlUp).Row
[Code] ......
View 4 Replies
View Related
Aug 24, 2009
I am tracking my sales interactions and am trying to link cells so when I update on one sheet it updates my last "customer touch" on a master sheet. Current formula-
On "sheet1" I selected a cell and used this formula... =sheet2!$b$7
The problem is that I want to keep a history of what was in that sheet 2 B7 cell so i insert a row (making B7 move down and become B8) and enter new info into the new b7. if I go back to sheet1 the formula in the selected cell becomes =sheet2!$b$8 I want it to stay to =sheet2!$b$7 no matter what I do... insert rows, delete rows etc...
in short what i am trying to do is have a cell in sheet1 show my last interaction with the customer and keep a history of in sheet2-infiniti.... with the caveat that my last interaction on sheet 2 etc... is listed first (thus the insert row)
View 2 Replies
View Related
Apr 10, 2008
I have a master workbook the needs to be updated from another workbook. I have adapted the following code that I found hidden away in this font of knowledge.
Sub test1()
Dim wb1 As Workbook
Dim wb2 As Workbook
Dim OldLastCell As Range
Dim lookRng As Range
Dim foundRng As Range
Dim iCel As Range
Dim loopRng As Range
If IsWbOpen("Update") Then
Set wb2 = Update
Else
Set wb2 = Workbooks.Open("C:Documents and SettingsCompaq_OwnerDesktopAreaUpdate.xls")
End If
Set wb1 = Workbooks("Original.xls")
With wb2. Sheets("Sheet1")...................
View 6 Replies
View Related
Jan 7, 2013
I'm trying to update a query table in excel, but it keeps giving me the error 1004
Worksheets("Data-All").Range("A4").QueryTable.Refresh BackgroundQuery:=False
Cell a4 is in my query table.
View 2 Replies
View Related
Sep 11, 2013
I have a table recording details of attendees of courses. There are common and variable entries columns) for each attendee (row)
Common: Venue, Date, Teacher, Course.
Variable ( and specific to attendee): Role, Place of work,
So if there are 40 attendees then currently I have to enter the common fields for all attendees 40 times !!
Is there a way of having input boxes/ user form which asks for the common fields and then automatically updates the table?
View 3 Replies
View Related
Jun 24, 2014
When I tried to Refresh the Pivot Table, the message I got was: The PivotTable field name is not valid. To create a PivotTable report, you must use data that is organized as a list with labeled columns. if you are changing the name of a PivotTable field, you must type a new name for the field. I did go in a check that all the columns are named though.
View 1 Replies
View Related
Sep 11, 2008
I've created a pivot table that summarizes sales and gross profit on a quarterly basis and YTD basis by Market and store. I have a drop down in my source data file which changes the month. I go to update the pivot table and it no longer recognizes the data fields because the headings change to the subsequent month. Is there a way to not have to recreate the pivot table every time a run a new period? See below. Once I run August and then refresh the data it will not recognize these fields any longer.
View 9 Replies
View Related
Dec 21, 2006
Cell A10 is set up to autocomplete based on the cells above it. Cells B10 and C10 are set up to use VLOOKUP to gather information from the table above based on the name in A10. What I would like is for C10 to autopopulate with the information in the table which corresponds to the name entered in A10, which it already does. What I would like to do after that is be able to change the data displayed in C10, and have it update in the cell in column C which corresponds to the name entered in A10. What I'm trying to do is create a customer manager. The customer's names will be hidden, as well as all their information, but I want my sales guys to be able to pull up an individual customer's information, then enter notes on that customer (column C). Vlookup won't allow you to enter information, as changing information erases the vlookup formula in the cell. This is very difficult to explain without direct visuals. Is there any way to do this?
View 9 Replies
View Related
Feb 21, 2009
I am wanting this work book to do is have a table of categories update automatically when a category is selected in the "category column". The 3rd cell to the left of the category column "Gross column" is where the data is which needs to be sent to the corresponding category in the table and utomatically update. I have attached a sample workbook.
View 4 Replies
View Related
Oct 13, 2009
I have a spreadsheet with 3 tables (all side-by-side). Table one has 8 rows of data; table two has 2 rows of data; table three has 3 rows of data. I am looking for assistance on how to sort each table in desceding order (by sales). Basically I want to do a sort everytime there is a change of values in any of the tables. I have attached a sample spreadsheet to clarify the table layout and the manner in which the values change within each table.
View 2 Replies
View Related
Sep 30, 2008
I have a data table that looks somewhat like this a number of rows of "Date", "ID#" and other extraneous fields.
I have a pivot table that simply lists the total count by date, then i grouped it by month and then by quarter:
Date4 Date2 Date Count of ID 2008-Q4 76 October 2008 29
10/1/08 8
10/15/08 19
10/21/08 1
10/31/08 1
November 2008 25
11/1/08 2
11/15/08 19
11/21/08 1
11/29/08 2
11/30/08 1
December 2008 22
12/1/08 1
12/15/08 19
12/21/08 1
12/31/08 1
My problem is, when i add a new row to the main table, say with a date of "December 20, 2008", and refresh the pivot table, the information ends up clear at the bottom (in this case, after the year 2014).
I figured the pivot refresh would place the data among the other December 2008 rows in the pivot table.
View 9 Replies
View Related
Jun 13, 2007
I have a pivot table on a hidden sheet and a combo box the user picks from. I would like a macro or formula that could change my pivot table Page Value to that which is chosen from the combo box. Then update the pivot table. I can then use my report to look up values from this pivot as needed.
View 3 Replies
View Related
Dec 15, 2013
I created a Pivot Table with employees summarized or total hours, which also totals up their billable charges. I would like to "read" the pivot table & break it down to the employees weekly or monthly hours & billable.
I was going to use the following function, but can't use because there is not a column that finds the employee's name several times:
=SUMPRODUCT(--($B$7:$B$4995>=AN3),--($B$7:$B$4995<=AN4),--($B$7:$B$4995=$G$7),--($D$7:$D$4995))
From Pivot Table:
Employee A 56 $7,280.00
XX 56 $7,280.00
07/17/2013 3 $390.00
07/18/2013 9 $1,170.00
07/19/2013 4 $520.00
07/22/2013 9 $1,170.00
07/23/2013 4 $520.00
07/29/2013 7 $910.00
07/30/2013 4 $520.00
07/31/2013 3 $390.00
08/07/2013 9 $1,170.00
08/08/2013 4 $520.00
Also, I was going to upload an example & removed some confidential content from the original log file in which the pivot table(s) came from but don't see the pivot tables updating or giving error messages from lost data.
How does that pivot table update then? I hope I don't have to re-create it again.
View 7 Replies
View Related