Merging Data From Multiple Non-standardized Workbooks Into One Summary Worksheet

Jun 11, 2014

I am attempting to write code for a macro that can cycle through about 30 excel workbooks and merge the data. getting the raw data on one sheet is not a problem, but I also need to sort similar data into corresponding columns while merging such that all data from the workbooks with a certain column heading will be in a single column with a single heading on the summary sheet. The problem is that the column headings on the source workbooks are not always standardized, i.e. "F high", "high F". Each sheet has several columns that look like the one below, with a header at the top and a series of numbers. (please ignore the dashes, I just used them to line up the columns in this post, in excel each value is in a different cell)

F Low---F High---V Low
721-----999---804
721-----999---0
721-----999---0
711-----720---786
711-----720---713

My vba skills are very basic, so I have been approaching this problem with a mountain of if..else and InStr commands, which doesn't seem like the best method and isn't working.

View 3 Replies


ADVERTISEMENT

Merging 1 Worksheet From Multiple Workbooks Into Master Workbook?

Apr 8, 2014

I'm trying to take a single worksheet from a workbook and merge them all into one workbook. In that master workbook I'm looking to have each of the worksheets on different tabs and the tab names as the original workbook name.

So if I have Workbook1, Workbook2, Workbook3, Workbook4 in a folder. I want to open a new spreadsheet, run this macro, select the folder with the Workbooks in, and have it take the range selected from the worksheet 'other' from each of the workbooks and generate a 'master' Spreasheet where each tab would be called Workbook1, Workbook2, Workbook3, Workbook4 and the contents would be from the 'other' tab

I found some of Ron de Bruin's code online which I've tried to customise.

Currently this takes a range from the tab specified, puts it into an array and then pastes it all into different columns on one worksheet. change this so that it creates a new worksheet for each original workbook, and names it after that workbook.

View 4 Replies View Related

Produce Summary Workbook Sheet With Data From Multiple Workbooks

Mar 26, 2013

I have created a template workbook for individuals who work on different sites. The spreadsheets used by each individual have the same headers. The sheets all sit in the same folder in dropbox.

I am wanting to produce a summary workbook within the dropbox folder that automatically populates when an individual updates their workbook.

I have attached mock example of the individuals worksheet for your information.

The questions that I have are as follows:

1. Is it better within an individuals workbook that they record their activity all on one sheet as opposed to having a spreadsheet per months activity? It seems tidier to have a sheet per month but does this make it more difficult to produce a summary workbook?

2. The individual is required to record a patients individual drugs on separate lines but they need to record a unique identifier, age, *** and month worked. Do they need to record all this for each line of drug or is there an easier way?

3. How should the summary sheet be produced - pivot table or sheet with formulas linked to the individuals workbooks?

View 3 Replies View Related

Excel 2010 :: Merging Data From Multiple Workbooks To Single Master Book?

Feb 16, 2012

We have a master worksheet, and I cant let staff see it, but I want them to update 'their bits' themselves, rather than email the admin staff and let them update the master sheet..

every job is on its own row and contains a unique ID.

is there a way i can merge their data in to the correct row and column(s) on the master sheet?

i've been playing with datasources etc

Excel 2010

View 2 Replies View Related

Excel 2010 :: Merging Multiple Worksheets Into One All Data Worksheet?

May 29, 2013

I know there are many ways to create an "All Data" worksheet. Copy & Paste is the most obvious or pasting named ranges into the new worksheet. I have a workbook with 48 tabs with up to 1000 rows of data per sheet. I need to merge each tab into one main "All Data" worksheet.

How to combine these 48 sheets in an easier way than the two options I already know (Copy/Past or Paste Named Range). Any Add-In's to Excel that can possibly do this? I am using Excel 2010.

How to make this "All Data" worksheet combining data from each sheet of the 48 tabs would be most useful.

View 2 Replies View Related

Merging Multiple Workbooks

Oct 25, 2009

I have a series of duplicate workbooks to allow for distribution to multiple users. The workbooks have a userform which allows the user to save records into a worksheet. I would like to have a standalone workbook which is a merge of all of the worksheets.

Since data will be contiuosly entered, I want the master workbook to have a "constant" link and alway but current without need to run anything.

View 2 Replies View Related

Summary Worksheet - Join Several Workbooks Into One?

Apr 8, 2014

Im currently working on making a workbook as a summary/join of several workbooks. All cells are formatted in the same way, and only Row 1 is the same in all workbooks.

How to combine several excel files into one file?

My issue is that when i run this macro, the rows are overwritten for every workbook runned through.

I end up with only the contents of the last copied workbook.

I guess my EndRow is wrong, or the copy function, since the offset is not set properly.

Code:
Sub ExtractData()Dim basebook As Workbook
Dim mybook As Workbook
Dim FNames As String
Dim MyPath As String
Dim SaveDriveDir As String
Dim Cnum As Integer

[code].....

View 1 Replies View Related

Merging Multiple Workbooks With Macro

Sep 14, 2009

I have multiple files with data in that I need to merge, basically append the data from various files to an existing file. Does anyone know of a macro that can be written to do this?

View 10 Replies View Related

Merging One Sheet From Multiple Workbooks Into One Master

Apr 9, 2013

I will have about 100 files to merge together that are in one directory. Is it possible to merge all workSHEETS named "Bob" from each workBOOK and end up with just one master file?

I found this code on this web site (no proper reference!). It doesn't work for me. Yes, I changed the directory and it still didn't work. I will have 12 columns (A:L) and differing # of rows in each "Bob" worksheet.

VB:
Sub g_CombineMultWB_AllXLSFiles() ' This Will combine all EMALL XLS files located in the
' S:DMSMSPOMSMaster POMS NIIN DataMaster EMALL Data FilesEMALL Excel Folder
' into a single worksheet in a newly created (or previously existing) workbook

[Code]....

View 3 Replies View Related

Extracting Columns From Multiple Workbooks Into 1 Summary

Aug 14, 2009

I have a set of workbooks, with multiple sheets within each which I receive each month from field units. The formats are identical.

What I want to do is to extract data from one column on one specific sheet within each workbook to a summary sheet on a new workbook. In the snapshot below, I would like to collect data from the "Actual" column (in yellow) and then paste it on a summary sheet.

Monthly reportingEntity 13. Risk reportingJanuaryMarket Risks - LoansJanuaryTargetActualVarNumber of competitors 110%Market share 1%1%0%Ranking in market 110%Concentration of portfolio – region-wise (number)1%1%0%Concentration of portfolio – region-wise (value)1%1%0%Market growth rate 1%1%0%Inflation rate 1%1%0%

This would appear in a new summary worksheet as below: (the cell labelled "Entity 1" would then appear as the column header in the summary sheet.)

Monthly reporting - summary sheet3. Risk reportingTarget rangeEntity 1Entity 2Entity 3Market Risks - LoansActualActualActualNumber of competitors 1Market share 1%Ranking in market 1Concentration of portfolio – region-wise (number)1%Concentration of portfolio – region-wise (value)1%Market growth rate 1%Inflation rate 1%

The steps I imagine are:
1. Open all workbooks in a specified folder (folder name upon prompt)
2. Search each workbook for a sheet titled "Risk Reporting"
3. Copy the specified cell (for the column header) and the specified column into a new sheet in a new workbook
4. Move on to fill up the next column, and so on ...

Also is there a way to order the copying so that the columns always line up in a specified order? (e.g. Entity 1, followed by 2, followed by 3 ...). One way I guess is to fix the column headers in my summary sheet, and then fetch the data from the corresponding worksheet, by matching the names.

View 9 Replies View Related

Merging Data From Two Workbooks Into One?

Aug 1, 2014

I have an excel spreadsheet supplied by a client, let's call this the master sheet, with about 500 URLs and I've been asked to gather information from Google Analytics and place in a spreadsheet. This spreadsheet can't be changed as it goes into their CRM system.

On the master sheet, we have a list of URLS, what I need to do is go through each URL and place the number of visits to each URL on a weekly basis.

Google Analytics excel spreadsheet, will spit out a list of URLs and the page visit numbers.

My question is:

If I have both spreadsheets open, the master spreadsheet and the information from Google Analytics spreadsheet. Is there a way of having both sheets open and doing an exact match on the URLs between both spreadsheets, so we can copy and paste the information directly.

Or even a formula that says something like:

If the master sheet spread has the same URL in the Google Analytics spreadsheet, paste the relevant information into the correct cells?

As you can see, doing this manually will take a long time. I'm just looking for a productive method to save time.

View 2 Replies View Related

Extract Data From Multiple Workbooks Into One Worksheet

Apr 15, 2008

I have a folder with an unlimited number of Excel Workbooks. Data within workbooks are in same format - 3 columns of data. I would like to extract the Data in the range (B55:B70) for every workbook, transpose the data and append by rows into one worksheet.

To be clear - I want to take data range B55:B70 from first workbook,transpose and put on first row - take data range from second workbook, transpose and put on second row, repeating for unlimited number of times...

View 8 Replies View Related

Combining/merging Multiple Rows From One Worksheet Into One Cell In Another Worksheet

Jan 28, 2010

I'm trying to create a macro to merge multiple rows into one cell and display in a new worksheet.

This seems really simple but I've tried to re-work some other examples I've found online but none seem to do exactly what I need. I'm also pretty new to VBA , so it's highly possible i've missed something.

I need to display each set of Notes for each DonorNo in one row - with each note separated by a space.

I've attached a sample of the data and what I need for the output. In the actually file I have around 70,000 records so the prospect manually merging the rows is horrifying.

View 12 Replies View Related

Summary Sheet Of Data From Other Workbooks

Nov 14, 2008

A) Is this even possible to do in Excel? I've seen similar ideas in foums, Excel help, etc., but they are all limited to worksheets within a single workbook.

B) My front half logic will work if I can do the back half. But if that's not possible, is there another way to accomplish this?

View 5 Replies View Related

Excel 2007 :: Generate Multiple Workbooks With Worksheet Data Source

Jan 17, 2012

I am looking for macro where it can generate multiple workbooks with a single worksheet data source. I have this worksheet with data which is look like this:

[IMG][/IMG]

This data will be places in 1 workbook for each of line with given file name as page number above those workbooks generated will have same information for each line but at different cell position such as: take this example at line 3

and

Microsoft Excel 2007
Window 7Pro 64bit

This line could be up to 50 lines of data. I try google search but found most about consolidate multiple workbooks to single worksheet. I do have VBA reference that I refer to from [URL] ......

How to put the information from the worksheet into specific position in the workbooks.

View 1 Replies View Related

Copying Multiple Columns From Multiple Worksheets To Summary Worksheet

Jul 28, 2013

I'm making a Excel list for trading cards (MTG) and I've divided it into different worksheets in order to sort it by the color of the cards (not really important I guess).

The issue I have is that I want it to copy certain columns (in this case C3:C1000, F3:F1000, G3:1000 ) from almost all of the worksheets into a new worksheet where it should paste them into column A, B and C.

In two of the worksheets it's also different (C3:C1000 , G3:G:1000, H3:H1000).

I've seen many where you copy one range from multiple worksheets, and that would've been okay I guess if not those two worksheets were different. I'd prefer not to change them, and I'd also prefer if I could've gotten just the information I needed also. Is this possible to do?

View 5 Replies View Related

Merging Results Into Summary?

Oct 13, 2011

I have been asked if I can create a solution to take data from an accounts sheet where 2 columns of data are used to record dates and values and then make a master summary of each account into a separate sheet.

Shown below is an extract of the Main Accnt sheet, and then a copy of what is requried as an end result, there are more accounts to consider in the real sheet. but will be 2 columns only and an account identifier

Main Accnt

ABCD1Account CodeWse12Account CodeESS 122 3DatesAmountDatesAmount402/09/201134501/10/2011453503/09/201136702/10/2011678604/09/201138903/10/2011903705/09/201141104/10/20111128806/09/201143305/10/20111353907/09/201145506/10/201115781008/09/201147707/10/201118031109/09/201149908/10/201120281210/09/201152109/10/201122531311/09/201154310/10/201124781412/09/201156511/10/201127031513/09/201158712/10/201129281614/09/201160913/10/2011315317 14/10/2011337818 15/10/2011360319 16/10/2011382820 17/10/2011405321 18/10/2011427822 19/10/20114503

An indication of the Master Summary is shown here. I have coloured the account code only as an example that isn't required.

Master Sum

ABC1Account CodeDatesAmount2Wse1202/09/20113453Wse1203/09/20113674Wse1204/09/20113895Wse1205/09/20114116Wse1206/09/20114337Wse1207/09/20114558Wse1208/09/20114779Wse1209/09/201149910Wse1210/09/201152111Wse1211/09/201154312Wse1212/09/201156513Wse1213/09/201158714Wse1214/09/201160915ESS 1201/10/201145316ESS 1202/10/201167817ESS 1203/10/201190318ESS 1204/10/2011112819ESS 1205/10/2011135320ESS 1206/10/2011157821ESS 1207/10/2011180322ESS 1208/10/2011202823ESS 1209/10/2011225324ESS 1210/10/2011247825ESS 1211/10/2011270326ESS 1212/10/2011292827ESS 1213/10/2011315328ESS 1214/10/2011337829ESS 1215/10/2011360330ESS 1216/10/2011382831ESS 1217/10/2011405332ESS 1218/10/2011427833ESS 1219/10/20114503

View 3 Replies View Related

Find The Total Rows In Multiple Worksheets And Paste It To A Summary Worksheet

Aug 22, 2009

I am trying to find the total rows in multiple worksheets and to copy the row count to a summary sheet.

For Each ws In Workbooks("HR.xls").Worksheets
With ws
If ws.Name "Summary" Then
If ws.Name "Pivot" Then

View 9 Replies View Related

Copy Multiple Columns In Multiple Workbooks Into Separate Worksheet?

Feb 27, 2014

The following code won't let me copy from the first workbook. I get a run time 1004 error stating "That command cannot be used on multiple selections".

I would rather not have to copy this by column for each of the 4 workbooks

[Code].....

View 6 Replies View Related

Merging Multiple Rows Of Data

Mar 20, 2008

I have several worksheets in a single workbook.

I have the following

employee paymethod earningcode earningtype rate hours amount
jane doe H CR R 5.00 80 400.00
jane doe H CO O 7.50 2 15.00
jane doe H HL R 5.00 8 40.00
jane doe H SE R 10.00 10 100.00
john smith H CR R 6.00 10 60.00
...

I need to have

jane doe CR 5.00 80 CO 7.5 15.00 HL 5.00 8 SE 10.00 100.00

I will have multiple employees. Not all employees will have all 4 earning codes (some will only have one, some will have two, and some will have three).

View 9 Replies View Related

Merging Multiple Data Cells Into One Cell?

Oct 24, 2013

I have a spreadsheet where I am trying to add up codes and quantitys, after this I want the repeated info deleted. For example;

12.004RWHB 4 Row Wooden Handle Welders Brush
12.004RWHB 4 Row Wooden Handle Welders Brush
20.004RWHB 4 Row Wooden Handle Welders Brush
24.004RWHB 4 Row Wooden Handle Welders Brush
4.004RWHBSS4 Row Wooden Handle Welders Brush S/S
10.004RWHBSS4 Row Wooden Handle Welders Brush S/S
12.004RWHBSS4 Row Wooden Handle Welders Brush S/S

So what I want to do is add the numbers up so I can get one value. For example, 4RWHB I want to add them all up so that it totals 68 still shows the code and description but then only shows 68 4RWHB 4 Row Wooden Handle Welders Brush and not the same line repeated. I want to condense all the information down so where there is same model numbers I can add it up and it doesn't give me multiples but summarises it down into one line per model number.

View 1 Replies View Related

Moving Data From Single To Multiple Columns And Merging?

Dec 16, 2012

Current Data:
File 1:

Each set of data is listed in either two or three rows

Eg.,
ID
Date
Filename

ID
Date

ID
Date
Filename

The goal is to move them to separate columns (rows can be 3 or 2 for each data set, and may or may not be separated by space/additional row)

File 2:

Has a common field 'ID' as that of File1, does not have Date, and Filename, but has a new field 'Detail' (already in the expected format)

Eg.

ID Detail

The goal is to merge properly formatted data from File 1 to File 2

Eg

ID Date Filename Detail

View 14 Replies View Related

Summary Of Data From Multiple Worksheets

Jan 11, 2010

I have 9 sheets of sales data, some with over 50,000 records. I need a way to present this information in another worksheet so I can bring up just the data based on individual brands. I understand a pivot table is needed however I cannot see how to gather data from multiple worksheets.

For example:

I need to look at all the different sales for Product A, which appears in multiple worksheets. Product A is broken down to store-level, with records for number of sales in each store, one record for units and one for value (for the same store and product). Is there a way I can get the data for all of Product A in one worksheet so I can then easily add the totals across all stores by both units and value?

E.g.
Store 1 - Product A - 10 units
Store 1 - Product A - £20
Store 2 - Product A - 7 units
Store 2 - Product A - £14

View 2 Replies View Related

Combine Multiple Workbooks Into One Worksheet

May 8, 2013

I have a set of excel files that I need to combine into one worksheet. The files have the same number of rows but the number of column will vary. The combined worksheet needs to have the data from each workbook appended to the last column.

Example:

FileA.xlsx

A
B
C
D

1
Question 1
1
10
20

2
Question 2
30
40
50

[Code] ........

View 5 Replies View Related

Copy A Worksheet From Multiple Workbooks

Feb 12, 2009

i have a group of workbooks all housed in the same folder 'ro24_ws' - who's path is -

C:UsersdavezDocumentseq
o24_ws

what i am looking for is some code to copy a worksheet named 'ro24' from each workbook within this folder into a single workbook

View 9 Replies View Related

Merging XLS Workbooks Into One Master Workbook?

Sep 15, 2014

Is it a good idea to merge xls workbooks in to one master workbook?

I have read online that some say it is ok and nothing will happen and others say it isn't a good idea because macros and formulas will not work right once merge in to one workbook.

So I have many workbooks with 2 - 4 worksheets in them. All have formulas as well as macro's and everything is working fine just as it is. But I would like to have 1 Master workbook with all workbook/worksheets combined in to 1, so that I can stop opening so many workbooks.

View 1 Replies View Related

Copying Filename While Merging Workbooks?

Jan 16, 2014

I have a few hundred workbooks that I am merging into a single file. I found the following vba code that performed this task very well.

Sub simpleXlsMerger()
Dim bookList As Workbook
Dim mergeObj As Object, dirObj As Object, filesObj As Object, everyObj As Object[code]....

After I merged the data, I realized that I needed to know the source file that each row of information comes from.

How can I modify the above script to copy the filename and add it as an additional column of information when each sheet is copied into the master file?

For Example:
Currently If I have 3 files:
File 1:
1 2 3
4 5 6
File 2:
a b c
d e f
File 3:
v w x
y a b

Running what I currently have will give me:
1 2 3
4 5 6
a b c
d e f
v w x
y a b

View 1 Replies View Related

Summing In One Summary Tab Data From Multiple Tabs?

Jan 14, 2014

I have a summary tab in which I am trying to sum data based on specific variables from 30 other tabs in the worksheet

- In the summary tab, I have months (one year worth) over the top row and consultant names in the first column
- Each other tab represents a project
- I want for consultant 1 in summary tab, to have:
For january, the sum of dollars spent in january in each project (so across all tabs)
Same for february to december.

I have attached an exemple Note that the consultant names will always have the same syntax but will not necessarily be in the same cell in each tab.

View 5 Replies View Related

To Find Summary On 2 Columns Multiple Data

May 22, 2014

I've a table and in the first column titled 'VALUES' (A1) I've entered values ranging from 1 to 100 (A2:A10). In the second column titled 'STATUS' (B1), 'closed' or 'NA' is entered (B2:B10). Now I need to find how many cells are there in the table with 'closed' status in the range 0-25, 26-50, 51-75 and 76-100.

VALUES STATUS
34 Closed
56 NA
44 Closed
98 Closed
18 NA
82 NA
23 Closed
40 NA
63 Closed
71 Closed

Closed Status Count
0 - 25 :
26 - 50 :
51 - 75 :
76 - 100 :

View 1 Replies View Related

Dividing Single Worksheet Into Multiple Workbooks

May 31, 2012

I have a worksheet in excel that has financial data for several departments and schools. The data is across 2 columns and 948 rows. I need to break the data down into multiple workbooks so I can use and existing email macro to send them to managers. There is a unique character that separates the data and I was able to use a previously written macro to enter page breaks which is below, but I'm having trouble using the same unique character (or page break) to put the data into separate workbooks.

Dim PBRange As Range, PB As Range
With ActiveSheet
Set PBRange = .Range("A1:A1000")
For Each PB In PBRange
If PB.Value = "***********" Then
.HPageBreaks.Add before:=PB
End If
Next
End With

View 3 Replies View Related







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