Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Many Workbooks into one spreadsheet

Is it possible to do the following?

I have 12 separate spreadsheets in 12 workbooks that contain data in.
Some column names are common to all 12 (PLANT COUNTRY INDUSTRY TYPE
SURVEY RESPONDENT), other column names (different data) are only common
in some of the 12 and there are few column names not common but just in
one sheet.

Want to be able to merge the data from the 12 workbooks into one.


Appreciate your help on this.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Many Workbooks into one spreadsheet

Hi Ezrael,

See Ron de Bruin's sample code at:

http://www.rondebruin.nl/copy3.htm


---
Regards,
Norman


"ezrael" wrote in message
ups.com...
Is it possible to do the following?

I have 12 separate spreadsheets in 12 workbooks that contain data in.
Some column names are common to all 12 (PLANT COUNTRY INDUSTRY TYPE
SURVEY RESPONDENT), other column names (different data) are only common
in some of the 12 and there are few column names not common but just in
one sheet.

Want to be able to merge the data from the 12 workbooks into one.


Appreciate your help on this.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 145
Default Many Workbooks into one spreadsheet

We would do it in two steps:

1
Labels
copy header rows from each spreadsheet into column A of final worksheet
(fws)
sort,
delete duplicates 'this ensures no misspell label is missed out
put in row1 as label

This can be automated but does not worth the effort.

2
Now read next available row number in fws
read each column label in worksheet in each workbook
use HLookUp to match column in fws
tug data of this column accordingly
read next column label
increment row number
do for next workbook

Cheers

"ezrael" wrote in message
ups.com...
Is it possible to do the following?

I have 12 separate spreadsheets in 12 workbooks that contain data in.
Some column names are common to all 12 (PLANT COUNTRY INDUSTRY TYPE
SURVEY RESPONDENT), other column names (different data) are only common
in some of the 12 and there are few column names not common but just in
one sheet.

Want to be able to merge the data from the 12 workbooks into one.


Appreciate your help on this.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Many Workbooks into one spreadsheet

Thanks, but this is kind of what I have in my data from 3 of the 12
workbooks:

workbook 1, sheet 1:

PL COU IND TYP SUR R CA CB
101 Usa Car Int Lab 1 2 2
102 Usa Elec Nat Lab 1 3 3
201 canada mach Int Lab 1 4 5 workbook 2, sheet 2:
PL COU IND TYP SUR R CA CC
101 Usa Car Int Man 1 3 5
101 Usa Car Int Man 2 4 5
102 Usa Elec Nat Man 1 3 4
102 Usa Elec Nat Man 2 4 2
201 canada mach Int Man 1 3 4
201 canada mach Int Man 2 5
workbook 3, sheet 3
PL COU IND TYP SUR R CA CB CD
101 usa car int Sup 1 3 4
102 usa elec nat Sup 1 2 4 4
201 canada mach int Sup 1 3 2


And I would like to have, not just these 3 but all others, merge in a
workbook as:

PL COU IND TYP SUR R CA CB CC CD
101 usa car int Lab 1 2 2
101 usa car int Man 1 3 5
101 usa car int Man 2 4 5
....
201canada mach int Sup 1 3 2

Thanks in advance,
PY & Associates wrote:
We would do it in two steps:

1
Labels
copy header rows from each spreadsheet into column A of final worksheet
(fws)
sort,
delete duplicates 'this ensures no misspell label is missed out
put in row1 as label

This can be automated but does not worth the effort.

2
Now read next available row number in fws
read each column label in worksheet in each workbook
use HLookUp to match column in fws
tug data of this column accordingly
read next column label
increment row number
do for next workbook

Cheers

"ezrael" wrote in message
ups.com...
Is it possible to do the following?

I have 12 separate spreadsheets in 12 workbooks that contain data in.
Some column names are common to all 12 (PLANT COUNTRY INDUSTRY TYPE
SURVEY RESPONDENT), other column names (different data) are only common
in some of the 12 and there are few column names not common but just in
one sheet.

Want to be able to merge the data from the 12 workbooks into one.


Appreciate your help on this.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 145
Default Many Workbooks into one spreadsheet

We do not understand why you restrict your self with 3 (?) workbooks. Step 2
can be repeated until all your workbooks have been exhausted please.

Cheers

"ezrael" wrote in message
ups.com...
Thanks, but this is kind of what I have in my data from 3 of the 12
workbooks:

workbook 1, sheet 1:

PL COU IND TYP SUR R CA CB
101 Usa Car Int Lab 1 2 2
102 Usa Elec Nat Lab 1 3 3
201 canada mach Int Lab 1 4 5 workbook 2, sheet 2:
PL COU IND TYP SUR R CA CC
101 Usa Car Int Man 1 3 5
101 Usa Car Int Man 2 4 5
102 Usa Elec Nat Man 1 3 4
102 Usa Elec Nat Man 2 4 2
201 canada mach Int Man 1 3 4
201 canada mach Int Man 2 5
workbook 3, sheet 3
PL COU IND TYP SUR R CA CB CD
101 usa car int Sup 1 3 4
102 usa elec nat Sup 1 2 4 4
201 canada mach int Sup 1 3 2


And I would like to have, not just these 3 but all others, merge in a
workbook as:

PL COU IND TYP SUR R CA CB CC CD
101 usa car int Lab 1 2 2
101 usa car int Man 1 3 5
101 usa car int Man 2 4 5
...
201canada mach int Sup 1 3 2

Thanks in advance,
PY & Associates wrote:
We would do it in two steps:

1
Labels
copy header rows from each spreadsheet into column A of final worksheet
(fws)
sort,
delete duplicates 'this ensures no misspell label is missed out
put in row1 as label

This can be automated but does not worth the effort.

2
Now read next available row number in fws
read each column label in worksheet in each workbook
use HLookUp to match column in fws
tug data of this column accordingly
read next column label
increment row number
do for next workbook

Cheers

"ezrael" wrote in message
ups.com...
Is it possible to do the following?

I have 12 separate spreadsheets in 12 workbooks that contain data in.
Some column names are common to all 12 (PLANT COUNTRY INDUSTRY TYPE
SURVEY RESPONDENT), other column names (different data) are only

common
in some of the 12 and there are few column names not common but just

in
one sheet.

Want to be able to merge the data from the 12 workbooks into one.


Appreciate your help on this.






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Many Workbooks into one spreadsheet

As you may see in the data sample, there are no header rows. The first
column contains the data of the plant code and it will repeat many
times since many of the data comes from different subjects from the
same source (same plant from same country). On top of this I donīt
know much of VBA

Thanks
PY & Associates wrote:
We do not understand why you restrict your self with 3 (?) workbooks. Step 2
can be repeated until all your workbooks have been exhausted please.

Cheers

"ezrael" wrote in message
ups.com...
Thanks, but this is kind of what I have in my data from 3 of the 12
workbooks:

workbook 1, sheet 1:

PL COU IND TYP SUR R CA CB
101 Usa Car Int Lab 1 2 2
102 Usa Elec Nat Lab 1 3 3
201 canada mach Int Lab 1 4 5 workbook 2, sheet 2:
PL COU IND TYP SUR R CA CC
101 Usa Car Int Man 1 3 5
101 Usa Car Int Man 2 4 5
102 Usa Elec Nat Man 1 3 4
102 Usa Elec Nat Man 2 4 2
201 canada mach Int Man 1 3 4
201 canada mach Int Man 2 5
workbook 3, sheet 3
PL COU IND TYP SUR R CA CB CD
101 usa car int Sup 1 3 4
102 usa elec nat Sup 1 2 4 4
201 canada mach int Sup 1 3 2


And I would like to have, not just these 3 but all others, merge in a
workbook as:

PL COU IND TYP SUR R CA CB CC CD
101 usa car int Lab 1 2 2
101 usa car int Man 1 3 5
101 usa car int Man 2 4 5
...
201canada mach int Sup 1 3 2

Thanks in advance,
PY & Associates wrote:
We would do it in two steps:

1
Labels
copy header rows from each spreadsheet into column A of final worksheet
(fws)
sort,
delete duplicates 'this ensures no misspell label is missed out
put in row1 as label

This can be automated but does not worth the effort.

2
Now read next available row number in fws
read each column label in worksheet in each workbook
use HLookUp to match column in fws
tug data of this column accordingly
read next column label
increment row number
do for next workbook

Cheers

"ezrael" wrote in message
ups.com...
Is it possible to do the following?

I have 12 separate spreadsheets in 12 workbooks that contain data in.
Some column names are common to all 12 (PLANT COUNTRY INDUSTRY TYPE
SURVEY RESPONDENT), other column names (different data) are only

common
in some of the 12 and there are few column names not common but just

in
one sheet.

Want to be able to merge the data from the 12 workbooks into one.


Appreciate your help on this.



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 145
Default Many Workbooks into one spreadsheet

You mentioned that there are no header rows, but your sample clearly showed:
workbook 1, sheet 1:

PL COU IND TYP SUR R CA CB


workbook 2, sheet 2:
PL COU IND TYP SUR R CA CC


workbook 3, sheet 3
PL COU IND TYP SUR R CA CB CD


Also you indicated that you are not familiar with VBA.

We suggest you pass our notes to your service provider and we believe he
would be able to do it for you at minimal cost.

Cheers

"ezrael" wrote in message
ups.com...
As you may see in the data sample, there are no header rows. The first
column contains the data of the plant code and it will repeat many
times since many of the data comes from different subjects from the
same source (same plant from same country). On top of this I donīt
know much of VBA

Thanks
PY & Associates wrote:
We do not understand why you restrict your self with 3 (?) workbooks. Step

2
can be repeated until all your workbooks have been exhausted please.

Cheers

"ezrael" wrote in message
ups.com...
Thanks, but this is kind of what I have in my data from 3 of the 12
workbooks:

workbook 1, sheet 1:

PL COU IND TYP SUR R CA CB
101 Usa Car Int Lab 1 2 2
102 Usa Elec Nat Lab 1 3 3
201 canada mach Int Lab 1 4 5 workbook 2, sheet 2:
PL COU IND TYP SUR R CA CC
101 Usa Car Int Man 1 3 5
101 Usa Car Int Man 2 4 5
102 Usa Elec Nat Man 1 3 4
102 Usa Elec Nat Man 2 4 2
201 canada mach Int Man 1 3 4
201 canada mach Int Man 2 5
workbook 3, sheet 3
PL COU IND TYP SUR R CA CB CD
101 usa car int Sup 1 3 4
102 usa elec nat Sup 1 2 4 4
201 canada mach int Sup 1 3 2


And I would like to have, not just these 3 but all others, merge in a
workbook as:

PL COU IND TYP SUR R CA CB CC CD
101 usa car int Lab 1 2 2
101 usa car int Man 1 3 5
101 usa car int Man 2 4 5
...
201canada mach int Sup 1 3 2

Thanks in advance,
PY & Associates wrote:
We would do it in two steps:

1
Labels
copy header rows from each spreadsheet into column A of final

worksheet
(fws)
sort,
delete duplicates 'this ensures no misspell label is missed out
put in row1 as label

This can be automated but does not worth the effort.

2
Now read next available row number in fws
read each column label in worksheet in each workbook
use HLookUp to match column in fws
tug data of this column accordingly
read next column label
increment row number
do for next workbook

Cheers

"ezrael" wrote in message
ups.com...
Is it possible to do the following?

I have 12 separate spreadsheets in 12 workbooks that contain data

in.
Some column names are common to all 12 (PLANT COUNTRY INDUSTRY TYPE
SURVEY RESPONDENT), other column names (different data) are only

common
in some of the 12 and there are few column names not common but just

in
one sheet.

Want to be able to merge the data from the 12 workbooks into one.


Appreciate your help on this.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding duplicate data between 2 spreadsheet workbooks? jonathan182 Excel Discussion (Misc queries) 4 April 19th 07 11:52 AM
Protecting Page Set in spreadsheet / workbooks JS Excel Worksheet Functions 0 September 2nd 06 01:45 PM
How can I create a master spreadsheet from different workbooks Dawn Williams Excel Discussion (Misc queries) 1 May 3rd 06 12:10 PM
Copy Workbooks and Paste into same spreadsheet lcannon Excel Programming 1 June 13th 05 08:38 PM
Adding a row in all workbooks within a spreadsheet ndpocohantas Excel Discussion (Misc queries) 3 April 22nd 05 09:23 AM


All times are GMT +1. The time now is 05:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Đ2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"