Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1
Default Generate Chart Based on Cell Values

Hi,
I've written a macro to import data points from nearly a hundred workbooks
based on inserting cell values into a filename reference. Now, I'd like to
take the data points and generate a chart based on 2 criteria (possibly more
in the future). The first criteria can be chosen from a list in cell A2. This
criteria is a reference to a specific worksheet. The second criteria, which
can be chosen from a list in A4, refers to a specific column in a worksheet.
So, in essence, i'd like to take two cells, one referring to a worksheet, and
another referring to a column and enter the data into a chart in a seperate
worksheet. Ideally, entering in new values into the reference cells will
update the chart, and not generate a new one. Any suggestions would be
appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 6,582
Default Generate Chart Based on Cell Values

I have made a sample that does this. In a master sheet in the workbook, I
have two listboxes, one to select a worksheet (Sheet1 through Sheet10)
within the workbook and one to select a column (Series A through Series H)
in the chosen sheet. A chart displays data from columns A and B of the
master sheet. Based on the listbox selections, INDIRECT functions in the
chart source range look up the data in the selected column of the selected
sheet. When the listbox selections are changed, the chart automatically
responds.

The marginally documented workbook is posted on my web site:
http://peltiertech.com/Excel/Zips/ChartByListBox.zip

Similar examples are described on this page:
http://peltiertech.com/Excel/Charts/ChartByControl.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"K.Call" wrote in message
...
Hi,
I've written a macro to import data points from nearly a hundred
workbooks
based on inserting cell values into a filename reference. Now, I'd like to
take the data points and generate a chart based on 2 criteria (possibly
more
in the future). The first criteria can be chosen from a list in cell A2.
This
criteria is a reference to a specific worksheet. The second criteria,
which
can be chosen from a list in A4, refers to a specific column in a
worksheet.
So, in essence, i'd like to take two cells, one referring to a worksheet,
and
another referring to a column and enter the data into a chart in a
seperate
worksheet. Ideally, entering in new values into the reference cells will
update the chart, and not generate a new one. Any suggestions would be
appreciated.



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
Insert a value in a cell based upon a comparison of cell values in 2 separate worksheets Doctorjones_md Excel Discussion (Misc queries) 7 June 8th 07 09:32 PM
Making a Bubble Chart based on n-values matrix Haydar Charts and Charting in Excel 1 August 8th 05 11:16 PM
generate multiple rows based on cell value Theresa Excel Worksheet Functions 0 May 25th 05 11:18 PM
How can I generate number based on two measurements? Columbo Excel Worksheet Functions 5 April 3rd 05 07:23 PM
HOW TO: Plot a Team Name on a chart based on two values Kevin McCartney Charts and Charting in Excel 1 November 30th 04 05:26 PM


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