Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 17
Default Dynamic Chart Error

Hello,

I've read the dynamic column chart example on http://peltiertech.com/Excel/Charts/Dynamics.html
but keep running into the same error:

"A formula in this worksheet contains one or more invalid references.
Verify that your formulas contain a valid path, workbook, range....etc"

This error appears when I try to change the Series formula to the
range names ChartValues and ChartLabels.

I've gone to the length of even copying formulas for the range names
from the Peltiertech example and still no luck. I've checked my range
names just in a formula. For example, I've typed "=ChartValues" and
when I open (F2) and hit F9, I see the array of data I want. Same with
"=ChartLabels" the array I want with labels. Both have the same number
of items so it's not like one has 15 and the other 16.

Any suggestions as to what I am missing???

Below are my ranges:

ChartLabels
=OFFSET(Sheet1!ChartValues,0,-1)
={"P1";"P2";"P3";"P4";"P5";"P6";"P7";"P8";"P9";"P1 0";"P11";"P12";"P13";"P14";"P15"}

ChartValues
=OFFSET(Sheet1!$B$1,1,0,COUNTA(Sheet1!$B:$B)-1,1)
={25;26;23;22;19;26;27;25;28;31;30;45;24;28;29}
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 17
Default Dynamic Chart Error

A bit more info....

Here is the formula I tried to enter into the Series:

=SERIES(Sheet1!$B$1,ChartLabels,ChartValues,1)

Also, interestingly, when I tried to add the Sheet1 reference, when I
hit the Enter key nothing would happen:

=SERIES(Sheet1!$B$1,Sheet1!ChartLabels,Sheet1!Char tValues,1) and then
pressed [Enter] nothing happens.
  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 235
Default Dynamic Chart Error

I believe your problem might be in your sheet reference. This is starting
from the beginning so bear with me and step through the following:

First, create an empty workbook. Save it with the file name "Test.xls".

Add the following data to Sheet1 - Range A1:B16:

Labels Data
P1 25
P2 26
P3 23
P4 22
P5 19
P6 26
P7 27
P8 25
P9 28
P10 31
P11 30
P12 45
P13 24
P14 28
P15 29

Note that the word "Labels" should appear in cell A1 and the word "Data" in
cell B1. The actual X-Axis labels are placed in the range A2:A16 and the
data is placed in the range B2:B16.

Go to Insert - Name - Define. You should be in the named range dialog box.

First, enter the following formula in the named range dialog box and name it
"ChartValues".

=OFFSET(Sheet1!$B$1,1,0,COUNTA(Sheet1!$B:$B)-1,1)

Second, enter the following formula in the named range dialog box and name
it "ChartLabels".

=OFFSET(Test.xls!ChartValues,0,-1)

You should now have two named ranges in the dialog box . . . "ChartLabels"
and "ChartValues". Exit the named range dialog box.

Now, click once on your embedded chart to activate it.

Go to Chart - Source Data - Series Tab

In the values input for your first series, enter the formula:

=Test.xls!ChartValues

In the Category (X) axis labels input, enter the formula:

=Test.xls!ChartLabels

At this point your chart should automatically update as you add more data.

--
John Mansfield
http://cellmatrix.net





"Native" wrote:

A bit more info....

Here is the formula I tried to enter into the Series:

=SERIES(Sheet1!$B$1,ChartLabels,ChartValues,1)

Also, interestingly, when I tried to add the Sheet1 reference, when I
hit the Enter key nothing would happen:

=SERIES(Sheet1!$B$1,Sheet1!ChartLabels,Sheet1!Char tValues,1) and then
pressed [Enter] nothing happens.

  #4   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 17
Default Dynamic Chart Error

John!!!! Bingo! that was it! I needed to put the workbook reference in
the Series function.

eg - =Test.xls!ChartValues vs. simply =ChartValues
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
#value! error trying to create a simple dynamic named range Janis Excel Discussion (Misc queries) 1 August 3rd 07 07:20 PM
Dynamic Chart Mark Allen Charts and Charting in Excel 4 August 3rd 07 12:19 AM
Dynamic chart generation: Run time Error '1004: Method 'Cells' of object'_Global' fai Ajay_N Charts and Charting in Excel 1 August 15th 06 03:54 AM
dynamic end on chart Donna YaWanna Charts and Charting in Excel 1 June 17th 05 04:50 PM
Dynamic chart JC Excel Discussion (Misc queries) 1 March 29th 05 01:28 PM


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