Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
Jon Jon is offline
external usenet poster
 
Posts: 183
Default How do I set end-of-range to #rows from beginning

Specifically, I am creating a chart that will have a breadth (# data points)
based on a variable (value of a cell). Start point is always the same. For
instance, a table is created based on a formula. The chart should stop when
values in the table reach a certain value, but this could be 20 or 200
datapoints (20-200 rows). I know how many datapoints should be included, but
not how to terminate the graph based on this number. I would prefer to do
this without VBA, as I am not particularly proficient, but will if the only
way.
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 3,346
Default How do I set end-of-range to #rows from beginning

Hi,

It would be nice to see some sample data, with an explanation of what you
want based on that. For example what defines end of range?

Probably the solution should be something like this:

Use dynamic range names

1. Plot your chart using the entire range, lets say A1:B50.
2. Choose Insert, Name, Define and in the Names in workbook line enter X
3. On the Refert to line enter the formula:
=OFFSET(Sheet1!$A$1,COUNTA(Sheet1!$A$2:$A$1000),,-24)
4. On the Names in Workbook line enter Y
5. Edit the formula in the Refers to line to read: (change the first
reference from A to B)
=OFFSET(Sheet1!$B$1,COUNTA(Sheet1!$A$2:$A$1000),,-24)
4. Click OK.
5. Select the series on the chart and on the formula bar change formula from
=SERIES(Sheet1!$B$1,Sheet1!$A$2:$A$50,Sheet1!$B$2: $B$50,1)
to
=SERIES(Sheet1!$B$1,Sheet1!X,Sheet1!Y,1)
and press Enter.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Jon" wrote:

Specifically, I am creating a chart that will have a breadth (# data points)
based on a variable (value of a cell). Start point is always the same. For
instance, a table is created based on a formula. The chart should stop when
values in the table reach a certain value, but this could be 20 or 200
datapoints (20-200 rows). I know how many datapoints should be included, but
not how to terminate the graph based on this number. I would prefer to do
this without VBA, as I am not particularly proficient, but will if the only
way.

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
How can change range to select active rows instead of :=Range("S10 ldiaz Excel Discussion (Misc queries) 7 August 29th 08 03:52 PM
Find the beginning Cell of a Range J@Y Excel Discussion (Misc queries) 3 June 15th 07 05:43 PM
Select always same Rows range Nauj Solrac Excel Discussion (Misc queries) 2 April 26th 07 08:10 PM
formula to sort a range so that it matches the exact rows of a column that is outside that range? steveo Excel Discussion (Misc queries) 1 June 18th 06 02:05 AM
Sorting By a range of rows JSolesky Excel Discussion (Misc queries) 1 December 6th 05 06:26 PM


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