Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JAS
 
Posts: n/a
Default Combining like worksheets into a single worksheet

I have a single XL file with multiple worksheets that have the same format
(column headers). How do I combine all of the individual worksheets into a
single cumulative worksheet?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Richard O. Neville
 
Posts: n/a
Default Combining like worksheets into a single worksheet

Assume you have three sheets, A, B, and C, that you want to summarize in a
fourth, D. Copy A and rename it as D; it will become your master sheet.
Delete all the data from D, but preserve the column headers.

In cell A2 of D, construct a cross reference to A, B, and C. Type =; switch
to sheet B and click on A2, type +, switch to sheet C and click on A2, type
+ again, switch to sheet C and click on A2, then hit Enter (no + after the
last entry).

To spread the formula, click on A2 in sheet D. Move the mouse to the lower
right corner of the cell and manipulate it until a black + appears. Then
hold down the left mouse button and drag down Column A so you capture all
the data in sheets A, B, and C. Let's say you stop at A25. Select cells
A2-A25 (they should already be selected when you drag down). Get the black +
to appear again, and this time drag to the right to fill columns B and C.

"JAS" wrote in message
...
I have a single XL file with multiple worksheets that have the same format
(column headers). How do I combine all of the individual worksheets into
a
single cumulative worksheet?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Combining like worksheets into a single worksheet

You might be able to use MS Query to consolidate Excel ranges from your
multiple wkshts, as long as you don't mind formulas being converted to
static values in the consolidation area.

This example uses 5 named ranges which can be in the same or different
worksheets of the same workbook.

Assumptions:
The data in each wksht is structured like a table:
---Col headings (Dept, PartNum, Desc, Price, ...etc)
---Columns are in the same order.

The data in each wksht must be in named ranges.
---I used rng1111Data for dept 1111's data, rng2222Data for dept 2222, etc
---You can re-use the same range name if it is in different wkbks.
Save the wkbk after creating the names so Excel can find it with the names.

(Note: In the next steps, MS Query may display warnings about it's ability
to show the query ...ignore them and proceed.)

Starting with an empty worksheet:
1)Select the cell where you want the consolidated data to start

2)DataImport External DataNew Database Query
Databases: Excel Files


Browse to one of The files, pick ONE data range to import.
---Accept defaults until the next step.

At The last screen select The View data/Edit The Query option.

Click the [SQL] button

Replace the displayed SQL code with an adapted version of this:

SELECT * FROM `C:\MyWkbk`.rng1111Data
UNION ALL
SELECT * FROM `C:\MyWkbk`.rng2222Data
UNION ALL
SELECT * FROM `C:\MyWkbk`.rng3333Data
UNION ALL
SELECT * FROM `C:\MyWkbk`.rng4444Data
UNION ALL
SELECT * FROM `C:\MyWkbk`.rng5555Data

(Note: the apostrophes in the SQL code ( ` )are located on the same key as
the tilde (~) )

Return the data to Excel.

Once that is done....to get the latest data just click in the data range
then DataRefresh Data.
(You can edit the query at any time to add/remove data sources and/or fields.)

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"JAS" wrote:

I have a single XL file with multiple worksheets that have the same format
(column headers). How do I combine all of the individual worksheets into a
single cumulative worksheet?

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
Combining Worksheets into one ~C Excel Worksheet Functions 2 February 2nd 06 03:29 PM
Search multiple values & return single value - seperate worksheets JANA Excel Worksheet Functions 4 October 27th 05 08:43 PM
Copy from different workbook's worksheet into a single worksheet... [email protected] Excel Discussion (Misc queries) 1 October 27th 05 07:27 PM
Converting multiple worksheet to a single page worksheet [email protected] Excel Discussion (Misc queries) 0 July 4th 05 06:26 PM
how do i link a number of worksheets to one master worksheet? Rusty Excel Worksheet Functions 0 January 24th 05 08:49 AM


All times are GMT +1. The time now is 04:49 PM.

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

About Us

"It's about Microsoft Excel"