Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Pivot Table using dynamic worksheets

I have a workbook with several worksheets. Each sheet is a snapshot view of
data from any given day or time, and I want to be able to provide the
capability to view any day's data using the same pivot table. I don't want
to combine worksheet data, as each sheet is its own historical record. Each
sheet has the exact same layout -- headings and all. My pivot table is set
up to use columns A through AD ($A:$AD), and I can manually adjust the sheet
I'm querying against by changing the sheet name in the source range field.
However, I want to use a drop down list of all the worksheets in the workbook
to handle this automatically. I figured out - with the assistance of threads
here - how to get a list of all the worksheets, and I have named that range.
Is it possible to somehow use that named range in the source range field for
the pivot table?

Thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Pivot Table using dynamic worksheets

Hi

Assuming Sheet 1 is where you have your dropdown list of sheet names, and J1
is the cell with the dropdown.
InsertNameDefine
Name myData
Refers to =INDIRECT("'"&Sheet1!J1&"'!A:H")

Note the mix of double and single quotes, as shown below with spaces to
emphasize
=INDIRECT( " ' "& Sheet1!J1 & " '! A:H" )

Adjust Sheet1 and j1 to suit your case, remembering if Sheet1 has spaces,
enclose within single quotes 'Sheet 1'

On your PTright clickPT WizardBackSource =myDataFinish
--
Regards
Roger Govier

"flummoxed" wrote in message
...
I have a workbook with several worksheets. Each sheet is a snapshot view
of
data from any given day or time, and I want to be able to provide the
capability to view any day's data using the same pivot table. I don't
want
to combine worksheet data, as each sheet is its own historical record.
Each
sheet has the exact same layout -- headings and all. My pivot table is
set
up to use columns A through AD ($A:$AD), and I can manually adjust the
sheet
I'm querying against by changing the sheet name in the source range field.
However, I want to use a drop down list of all the worksheets in the
workbook
to handle this automatically. I figured out - with the assistance of
threads
here - how to get a list of all the worksheets, and I have named that
range.
Is it possible to somehow use that named range in the source range field
for
the pivot table?

Thanks in advance!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Pivot Table using dynamic worksheets

Hold your cards, we have a BINGO! Thanks a bunch, Roger!

"Roger Govier" wrote:

Hi

Assuming Sheet 1 is where you have your dropdown list of sheet names, and J1
is the cell with the dropdown.
InsertNameDefine
Name myData
Refers to =INDIRECT("'"&Sheet1!J1&"'!A:H")

Note the mix of double and single quotes, as shown below with spaces to
emphasize
=INDIRECT( " ' "& Sheet1!J1 & " '! A:H" )

Adjust Sheet1 and j1 to suit your case, remembering if Sheet1 has spaces,
enclose within single quotes 'Sheet 1'

On your PTright clickPT WizardBackSource =myDataFinish
--
Regards
Roger Govier

"flummoxed" wrote in message
...
I have a workbook with several worksheets. Each sheet is a snapshot view
of
data from any given day or time, and I want to be able to provide the
capability to view any day's data using the same pivot table. I don't
want
to combine worksheet data, as each sheet is its own historical record.
Each
sheet has the exact same layout -- headings and all. My pivot table is
set
up to use columns A through AD ($A:$AD), and I can manually adjust the
sheet
I'm querying against by changing the sheet name in the source range field.
However, I want to use a drop down list of all the worksheets in the
workbook
to handle this automatically. I figured out - with the assistance of
threads
here - how to get a list of all the worksheets, and I have named that
range.
Is it possible to somehow use that named range in the source range field
for
the pivot table?

Thanks in advance!



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
Dynamic pivot table Prem Kumar Excel Discussion (Misc queries) 1 July 1st 08 01:06 PM
Dynamic Pivot Table source Conan Kelly Excel Discussion (Misc queries) 3 November 22nd 07 08:25 AM
Pivot table dynamic Filter Avinash Excel Worksheet Functions 1 June 23rd 07 01:13 AM
Dynamic Range in a Pivot Table Chris C Excel Discussion (Misc queries) 0 June 27th 06 06:11 PM
Pivot Table - Dynamic Field carlyman Excel Discussion (Misc queries) 3 August 26th 05 12:05 AM


All times are GMT +1. The time now is 07:02 AM.

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"