Macro for collating data from multiple sheets to one table

Johndinho

Board Regular
Joined
Mar 21, 2013
Messages
90
Hi,

Newly registered but a long-time big fan of the help given out on this forum and confident someone will be able to help with this.

I have seen several threads on here with VBA to collate information to one sheet but I can't seem to get one to work.

I have 1186 files (All on my C Drive in the same folder) containing information in 86 different cells; i want to create a table using the information in each of the cells.

Help!! I don't want to have to type out 86000 pieces of data!!

Thanks,

Johndinho
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

hiker95

Well-known Member
Joined
Apr 8, 2009
Messages
17,649
Johndinho,

What version of Excel are you using?

What is the full path to the 1,186 files?

What is the file extension for the 1,186 files?

What is the worksheet name, in the 1,186 files, that contains the 86 cells.

Are the 86 cells in the same row, or column?

Or, are the 86 cells in the same range?


Can we have a screenshot of the master/consolidated workbook/worksheet where you want to create a table using the information in each of the cells?

Can we have a screenshot of two of the 86 workbooks/worksheets that contain the 86 cells?

To post your data, you can download and install one of the following two programs:
Excel Jeanie
MrExcel HTML Maker


Even better:

You can upload your master/consolidated workbook with the consolidated worksheet (manually formatted by you) from two additional worksheets that reflect the data in two of the 1186 files, to Box Net,
sensitive data scrubbed/removed/changed
mark the workbook for sharing
and provide us with a link to your workbook.
 
Upvote 0

Johndinho

Board Regular
Joined
Mar 21, 2013
Messages
90
HI Hiker,

What version of Excel are you using?
Excel 2010

What is the full path to the 1,186 files?
Both are listed on my Desktop as
C:\Test\TTTest.xlsx (master table)
C:\TestResults\*.xls (individual reports)

What is the file extension for the 1,186 files?
.xls

What is the worksheet name, in the 1,186 files, that contains the 86 cells.
Results

Are the 86 cells in the same row, or column?
No, some are in C and others in D.

Or, are the 86 cells in the same range?
No, spread out over 200 rows

Can we have a screenshot of the master/consolidated workbook/worksheet where you want to create a table using the information in each of the cells?
Can we have a screenshot of two of the 86 workbooks/worksheets that contain the 86 cells?

https://www.box.com/s/y5ln7fctximh09ce9oa9

This has got the table headers in and the cell references of where to collect the data from. (Thanks for the tip about Box Net :) )

Thanks for this - I think this is everything you asked for; let me know if you want anything else..
 
Upvote 0

hiker95

Well-known Member
Joined
Apr 8, 2009
Messages
17,649
ADVERTISEMENT
Johndinho,

Thanks for the workbook. But, it only contains one worksheet, Sheet2, with the reference cells to pull in.

Please attach another workbook, containing Sheet2, and three additional worksheets.

Each of the three additional worksheets will contain the raw data from three of the workbooks in C:\TestResults\*.xls (individual reports).
 
Upvote 0

hiker95

Well-known Member
Joined
Apr 8, 2009
Messages
17,649
ADVERTISEMENT
Johndinho,

Thanks for the latest workbook.

Is this an accurate display of your master workbook, cells, rows, columns? And, is cell A6 the beginning of the data being copied/pulled in?


Excel 2007
ABCDEFG
11234567
2Clause No.5.1
3Preliminary Checks
4
5Unit Serial numberMain board Serial NumberMain board release numberRF module Serial numberRF Module Release numberVisual inspect & assembly checkPower ON and LED tests
6C11c12c13C14C15d57d59
Sheet2


What is this information for?


Excel 2007
CJCKCL
185
2
3
4Rework/Comments
5
6
7TRUA-0078-01 SN00781000.xls
8TRUA-0078-01 SN00781001.xls
9TRUA-0078-01 SN00781002.xls
10TRUA-0078-01 SN00781003 Eng.xls
Sheet2
 
Upvote 0

Johndinho

Board Regular
Joined
Mar 21, 2013
Messages
90
A7 will be the start. That's just a cell reference to know where the info is coming from.

The idea is that the master sheet will be merged with another sheet as a searchable record.
 
Upvote 0

hiker95

Well-known Member
Joined
Apr 8, 2009
Messages
17,649
Johndinho,

For each row of information in Sheet2, beginning in cell A7, do you need to record in the same row (what column???) the workbook name that the information came from?
 
Upvote 0

Forum statistics

Threads
1,195,848
Messages
6,011,948
Members
441,657
Latest member
Diupsy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top