Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Phil Osman
 
Posts: n/a
Default Consolidating multiple sheets

I have over 70 sheets with the exact same layout which I want to consolidate.

There is a list of all the sheet names on my summary page in Cells L6:L77. I
tried using:
=SUM(INDIRECT("'"&L6:L77&"'!AV32"))
with AV32 being the first cell on each sheet I want to summarise.

But it only returns the amount from the first sheet.

Any ideas?

--
http://www.redbrick.dcu.ie/~pele
  #2   Report Post  
Earl Kiosterud
 
Posts: n/a
Default

Phil,

Look at Data - Consolidate.
--
Earl Kiosterud
www.smokeylake.com/
-------------------------------------------

"Phil Osman" wrote in message
...
I have over 70 sheets with the exact same layout which I want to
consolidate.

There is a list of all the sheet names on my summary page in Cells L6:L77.
I
tried using:
=SUM(INDIRECT("'"&L6:L77&"'!AV32"))
with AV32 being the first cell on each sheet I want to summarise.

But it only returns the amount from the first sheet.

Any ideas?

--
http://www.redbrick.dcu.ie/~pele



  #3   Report Post  
Phil Osman
 
Posts: n/a
Default

Which means adding each sheet reference 1 at a time....DOH !
I suppose I'll have to go with this if there's no formula that will do it.

Thanks.

--
http://www.redbrick.dcu.ie/~pele


"Earl Kiosterud" wrote:

Phil,

Look at Data - Consolidate.
--
Earl Kiosterud
www.smokeylake.com/
-------------------------------------------

"Phil Osman" wrote in message
...
I have over 70 sheets with the exact same layout which I want to
consolidate.

There is a list of all the sheet names on my summary page in Cells L6:L77.
I
tried using:
=SUM(INDIRECT("'"&L6:L77&"'!AV32"))
with AV32 being the first cell on each sheet I want to summarise.

But it only returns the amount from the first sheet.

Any ideas?

--
http://www.redbrick.dcu.ie/~pele




  #4   Report Post  
Ron Coderre
 
Posts: n/a
Default

While not my favorite technique, sometimes this approach saves me some time:

You might be able to use MS Query to consolidate Excel ranges from your
multiple wkbks/wkshts:

In my example, ranges named rngNameAmt1 (the ranges contain 2 columns: Name
and Amount) are consolidated from 4 Excel workbooks into the one
workbook.

Assumptions:
-The data in each wkbk is structured like a table:
---Col headings (PmtAmt, DatePaid, etc),
---Col Headings in different ranges can be in any order, but must contain
similar data.

-The data in each wkbk is in named ranges.
---You may use the same range name in different wkbks.

(Note: At various points in the below process, 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 the data range and columns 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 Name, Amount FROM `C:\Analysis\Wkbk1`.rngNameAmt1 1stWkbk
UNION ALL SELECT Name, Amount FROM `C:\Analysis\Wkbk2`.rngNameAmt1 2ndWkbk
UNION ALL SELECT Name, Amount FROM `C:\Analysis\Wkbk3`.rngNameAmt1 3rdWkbk
UNION ALL SELECT Name, Amount FROM `C:\Analysis\Wkbk4`.rngNameAmt1 4thWkbk

(Note: you can create the above SQL codes in Excel by using formulas and
just paste the sQL range into MS Query's SQL window.)

Return the data to Excel.

Once that is done....all you need to do to get the latest data is click in
the data range then DataRefresh Data.

You can edit the query at any time to add/remove data sources and/or fields.

Is that something you can work with?

Ron


  #5   Report Post  
Phil Osman
 
Posts: n/a
Default

That's quite an interesting approach actually which I could use elsewhere,
but........ the data in my case is in the same workbook so I can't use a
common named range.

I have come up with a workaround in the meantime though. It's a little
inefficient but it'll do the job !

--
http://www.redbrick.dcu.ie/~pele


"Ron Coderre" wrote:

While not my favorite technique, sometimes this approach saves me some time:

You might be able to use MS Query to consolidate Excel ranges from your
multiple wkbks/wkshts:

In my example, ranges named rngNameAmt1 (the ranges contain 2 columns: Name
and Amount) are consolidated from 4 Excel workbooks into the one
workbook.

Assumptions:
-The data in each wkbk is structured like a table:
---Col headings (PmtAmt, DatePaid, etc),
---Col Headings in different ranges can be in any order, but must contain
similar data.

-The data in each wkbk is in named ranges.
---You may use the same range name in different wkbks.

(Note: At various points in the below process, 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 the data range and columns 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 Name, Amount FROM `C:\Analysis\Wkbk1`.rngNameAmt1 1stWkbk
UNION ALL SELECT Name, Amount FROM `C:\Analysis\Wkbk2`.rngNameAmt1 2ndWkbk
UNION ALL SELECT Name, Amount FROM `C:\Analysis\Wkbk3`.rngNameAmt1 3rdWkbk
UNION ALL SELECT Name, Amount FROM `C:\Analysis\Wkbk4`.rngNameAmt1 4thWkbk

(Note: you can create the above SQL codes in Excel by using formulas and
just paste the sQL range into MS Query's SQL window.)

Return the data to Excel.

Once that is done....all you need to do to get the latest data is click in
the data range then DataRefresh Data.

You can edit the query at any time to add/remove data sources and/or fields.

Is that something you can work with?

Ron



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
Calculations crossing multiple sheets Stephen McArthu Excel Discussion (Misc queries) 4 June 6th 05 04:35 PM
Copying multiple sheets from one book 2 another and undertake spec Pank Mehta Excel Discussion (Misc queries) 14 March 16th 05 04:41 PM
Multiple sheets selected twa14 Excel Discussion (Misc queries) 2 December 21st 04 11:15 AM
linking multiple sheets to a summary sheet greg g Excel Discussion (Misc queries) 1 December 16th 04 07:43 AM
CountIF across multiple sheets in a workbook Al Excel Worksheet Functions 1 October 29th 04 01:15 PM


All times are GMT +1. The time now is 07:21 PM.

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"