PC Review


Reply
Thread Tools Rate Thread

Chart with variable cell range

 
 
skelhorne
Guest
Posts: n/a
 
      2nd Apr 2004
I am looking to have a cell value as part of the range that is plotte
in a chart, for example

=SERIES(,Sheet1!$A*$1*:$A$10,Sheet1!$B*$1*:$B$10,1)

I would like to replace *$1* (for both A and B with a value that i
entered in another cell (say D15). The value in D15 would be tied to
scroll bar.

Any help would be appreciated

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
 
 
 
Frank Kabel
Guest
Posts: n/a
 
      2nd Apr 2004
Hi
have a look at the INDIRECT function. You may also have a look at
=SERIES(,INDIRECT("Sheet1!$A$" & D15 & ":$A$10"),INDIRECT("Sheet1!$B$"
& D15 & ":$B$10"),1)




--
Regards
Frank Kabel
Frankfurt, Germany


> I am looking to have a cell value as part of the range that is

plotted
> in a chart, for example
>
> =SERIES(,Sheet1!$A*$1*:$A$10,Sheet1!$B*$1*:$B$10,1)
>
> I would like to replace *$1* (for both A and B with a value that is
> entered in another cell (say D15). The value in D15 would be tied to
> a scroll bar.
>
> Any help would be appreciated.
>
>
> ---
> Message posted from http://www.ExcelForum.com/


 
Reply With Quote
 
skelhorne
Guest
Posts: n/a
 
      2nd Apr 2004
Thanks for the quick response.

Now I am getting a
"That function is not valid" error

When I click OK it highlights the first INDIRECT

=SERIES(,*INDIRECT*("Sheet1!$A$" & D15
":$A$10"),INDIRECT("Sheet1!$B$"
& D15 & ":$B$10"),1

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
yusoon
Guest
Posts: n/a
 
      5th Apr 2004
consider add a scrollbar from 'Control Toolbox' right click it to inser
this code:

Private Sub ScrollBar1_Change()
Worksheets("Sheet1").Range("D1").Value = ScrollBar1.Value
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.SeriesCollection(1).Values = "=Sheet1!R1C1:R"
Worksheets("Sheet1").Range("D1").Value & "C1"
ActiveChart.SeriesCollection(2).Values = "=Sheet1!R1C2:R"
Worksheets("Sheet1").Range("D1").Value & "C2"
End Sub




skelhorne wrote:
> *I am looking to have a cell value as part of the range that i
> plotted in a chart, for example
>
> =SERIES(,Sheet1!$A[B]$1*:$A$10,Sheet1!$B*$1*:$B$10,1)
>
> I would like to replace *$1* (for both A and B with a value that i
> entered in another cell (say D15). The value in D15 would be tied t
> a scroll bar but I don’t know the syntax or if this is eve
> possible.
>
> Any help would be appreciated. [/B


--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      13th Apr 2004
Frank -

Unfortunately one cannot embed any functions within the SERIES formula.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______


Frank Kabel wrote:

> Hi
> have a look at the INDIRECT function. You may also have a look at
> =SERIES(,INDIRECT("Sheet1!$A$" & D15 & ":$A$10"),INDIRECT("Sheet1!$B$"
> & D15 & ":$B$10"),1)
>
>
>
>
> --
> Regards
> Frank Kabel
> Frankfurt, Germany
>
>
>
>>I am looking to have a cell value as part of the range that is

>
> plotted
>
>>in a chart, for example
>>
>>=SERIES(,Sheet1!$A*$1*:$A$10,Sheet1!$B*$1*:$B$10,1)
>>
>>I would like to replace *$1* (for both A and B with a value that is
>>entered in another cell (say D15). The value in D15 would be tied to
>>a scroll bar.
>>
>>Any help would be appreciated.
>>
>>
>>---
>>Message posted from http://www.ExcelForum.com/

>
>


 
Reply With Quote
 
skelhorne
Guest
Posts: n/a
 
      13th Apr 2004
Thanks Jon. That's not the answer I wanted to hear but at least I ca
stop wasting my time trying to figure it out

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      13th Apr 2004
Don't discount "yusoon"'s answer. I have a more detailed description in
this article:

http://pubs.logicalexpressions.com/P...cle.asp?ID=246

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______

skelhorne < wrote:

> Thanks Jon. That's not the answer I wanted to hear but at least I can
> stop wasting my time trying to figure it out.
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modifying chart source range using variable Carl Microsoft Excel Programming 9 4th Dec 2007 07:30 PM
Variable Range to be used in a chart =?Utf-8?B?SmVmZg==?= Microsoft Excel Worksheet Functions 1 9th Feb 2007 03:22 AM
Variable Range to Create Chart From =?Utf-8?B?VG9tbXkgTg==?= Microsoft Excel Programming 0 14th Nov 2006 09:48 PM
Variable range chart Nikki Microsoft Excel Misc 5 24th Oct 2006 07:20 PM
Variable Range/chart =?Utf-8?B?YmFsbHli?= Microsoft Excel Programming 1 12th Jun 2006 06:55 PM


Features
 

Advertising
 

Newsgroups
 


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