Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default Data Selection for graph plotting

To all,

I have a workbook with multiple worksheets labelled data1, data2,
data3, and data4. I also have one sheet called 'graph'. On worksheet
labelled 'graph' I have a line graph that currently plots the data in
sheet 'data1'. however what I want to do is as follows:

Add a dropdown menu to sheet 'graph'

Use this dropdown menu so that I can select which data is displayed in
the graph. i.e. data from 'data1' or data from 'data2' etc. The format
of the data i.e. column headings and layout is the same for each
worksheet. The length of the data is not the same however.

Does anyone have any ideas/a fix for this?

Thanks in advance for your help.

Regards

Joseph Crabtree
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Data Selection for graph plotting

This is one way:

1) Set data validation with the sheet names included in it.
2) Set up a named range for your "Generic Chart_Labels" and your
"GenericValues"
3) Set up named ranges for the ChartLabel and Values for each worksheet
4) Create a worksheet change event for your "Graph" sheet so that when the
data validation cell is changed, the "Generic Chart_Labels" and "Generic
Values" used in the master chart are changed.

I know this is fairly high level, so if you need assistance, let us know.
--
HTH,
Barb Reinhardt



"joecrabtree" wrote:

To all,

I have a workbook with multiple worksheets labelled data1, data2,
data3, and data4. I also have one sheet called 'graph'. On worksheet
labelled 'graph' I have a line graph that currently plots the data in
sheet 'data1'. however what I want to do is as follows:

Add a dropdown menu to sheet 'graph'

Use this dropdown menu so that I can select which data is displayed in
the graph. i.e. data from 'data1' or data from 'data2' etc. The format
of the data i.e. column headings and layout is the same for each
worksheet. The length of the data is not the same however.

Does anyone have any ideas/a fix for this?

Thanks in advance for your help.

Regards

Joseph Crabtree

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default Data Selection for graph plotting

Thanks for your respose.

Would you be able to give me a more detailed explanation please?

Thanks

Barb Reinhardt wrote:
This is one way:

1) Set data validation with the sheet names included in it.
2) Set up a named range for your "Generic Chart_Labels" and your
"GenericValues"
3) Set up named ranges for the ChartLabel and Values for each worksheet
4) Create a worksheet change event for your "Graph" sheet so that when the
data validation cell is changed, the "Generic Chart_Labels" and "Generic
Values" used in the master chart are changed.

I know this is fairly high level, so if you need assistance, let us know.
--
HTH,
Barb Reinhardt



"joecrabtree" wrote:

To all,

I have a workbook with multiple worksheets labelled data1, data2,
data3, and data4. I also have one sheet called 'graph'. On worksheet
labelled 'graph' I have a line graph that currently plots the data in
sheet 'data1'. however what I want to do is as follows:

Add a dropdown menu to sheet 'graph'

Use this dropdown menu so that I can select which data is displayed in
the graph. i.e. data from 'data1' or data from 'data2' etc. The format
of the data i.e. column headings and layout is the same for each
worksheet. The length of the data is not the same however.

Does anyone have any ideas/a fix for this?

Thanks in advance for your help.

Regards

Joseph Crabtree

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Data Selection for graph plotting

I think I'd do something like this

http://office.microsoft.com/en-us/ex...098011033.aspx

When you name your ranges (similar to Date and Price) in the example. It
would be best to have the names the "same" on each sheet. When you define a
sheet level named range for date, you enter Sheet1!Date in the name cell
instead of just Date. If the sheet name has spaces, you'll need 'Sheet
1'!Date.
--
HTH,
Barb Reinhardt



"joecrabtree" wrote:

Thanks for your respose.

Would you be able to give me a more detailed explanation please?

Thanks

Barb Reinhardt wrote:
This is one way:

1) Set data validation with the sheet names included in it.
2) Set up a named range for your "Generic Chart_Labels" and your
"GenericValues"
3) Set up named ranges for the ChartLabel and Values for each worksheet
4) Create a worksheet change event for your "Graph" sheet so that when the
data validation cell is changed, the "Generic Chart_Labels" and "Generic
Values" used in the master chart are changed.

I know this is fairly high level, so if you need assistance, let us know.
--
HTH,
Barb Reinhardt



"joecrabtree" wrote:

To all,

I have a workbook with multiple worksheets labelled data1, data2,
data3, and data4. I also have one sheet called 'graph'. On worksheet
labelled 'graph' I have a line graph that currently plots the data in
sheet 'data1'. however what I want to do is as follows:

Add a dropdown menu to sheet 'graph'

Use this dropdown menu so that I can select which data is displayed in
the graph. i.e. data from 'data1' or data from 'data2' etc. The format
of the data i.e. column headings and layout is the same for each
worksheet. The length of the data is not the same however.

Does anyone have any ideas/a fix for this?

Thanks in advance for your help.

Regards

Joseph Crabtree


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
Selection of data for plotting graphs joecrabtree Charts and Charting in Excel 5 November 20th 07 04:48 PM
Help needed for sorting the data and plotting graph SPV New Users to Excel 1 June 26th 07 09:01 PM
Help needed for sorting the data and plotting graph SPV Excel Discussion (Misc queries) 0 June 25th 07 08:28 AM
Plotting Cummulative Data In A Line Graph tkeith Charts and Charting in Excel 2 August 11th 06 01:36 AM
Plotting Line Graph of Dynamic Data sslack Charts and Charting in Excel 1 June 6th 05 03:29 AM


All times are GMT +1. The time now is 06:21 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"