Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jeff
 
Posts: n/a
Default dynamic range / offset

Guys,
I have a spreadsheet with timestamps on col A, then Col B contains the
values correspond to timestamps in ColA (Col C thru Col M are similar to Col
B as well). I am trying to build a chart in function of time (meaning
Values for the X axis would be B2..M2, and Y axis would be B3..M3 for the 1
series, then B3..M3 for the values in x-axis, and B4..M4 for Y axis, so
on...).
Number of rows is subject to change (time stamps), and I am only
interested for the last 21 entries (if there is less than 21 entries, plot
them all, otherwise, only plot the last 21 entries).
Can someone please help me with the equation (offset?) in name definition?

Thanks
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

This formula works as a worksheet formula. Whether it
works as a source for a chart, I don't know but you can
give it a try:

=IF(COUNTA(A:A)21,OFFSET(A1,COUNTA(A:A)-1,0,-21,1),OFFSET
(A1,0,0,COUNTA(A:A),1))

As a worksheet formula this would be entered as an array.
Don't do too much (hardly any) charting but I do a lot of
formula creation.

Biff

-----Original Message-----
Guys,
I have a spreadsheet with timestamps on col A, then

Col B contains the
values correspond to timestamps in ColA (Col C thru Col M

are similar to Col
B as well). I am trying to build a chart in function of

time (meaning
Values for the X axis would be B2..M2, and Y axis would

be B3..M3 for the 1
series, then B3..M3 for the values in x-axis, and B4..M4

for Y axis, so
on...).
Number of rows is subject to change (time stamps), and

I am only
interested for the last 21 entries (if there is less than

21 entries, plot
them all, otherwise, only plot the last 21 entries).
Can someone please help me with the equation (offset?)

in name definition?

Thanks
.

  #3   Report Post  
Jeff
 
Posts: n/a
Default

Thanks for trying Biff, but the formula contains error.

"Biff" wrote:

Hi!

This formula works as a worksheet formula. Whether it
works as a source for a chart, I don't know but you can
give it a try:

=IF(COUNTA(A:A)21,OFFSET(A1,COUNTA(A:A)-1,0,-21,1),OFFSET
(A1,0,0,COUNTA(A:A),1))

As a worksheet formula this would be entered as an array.
Don't do too much (hardly any) charting but I do a lot of
formula creation.

Biff

-----Original Message-----
Guys,
I have a spreadsheet with timestamps on col A, then

Col B contains the
values correspond to timestamps in ColA (Col C thru Col M

are similar to Col
B as well). I am trying to build a chart in function of

time (meaning
Values for the X axis would be B2..M2, and Y axis would

be B3..M3 for the 1
series, then B3..M3 for the values in x-axis, and B4..M4

for Y axis, so
on...).
Number of rows is subject to change (time stamps), and

I am only
interested for the last 21 entries (if there is less than

21 entries, plot
them all, otherwise, only plot the last 21 entries).
Can someone please help me with the equation (offset?)

in name definition?

Thanks
.


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
Dynamic Print Range Help waxwing Excel Worksheet Functions 2 February 21st 05 03:47 PM
Add up a Dynamic Range with 2 Variables John Excel Worksheet Functions 1 January 15th 05 02:23 PM
Add up a Dynamic Range with 2 Variables John Excel Worksheet Functions 0 January 15th 05 02:00 PM
Dynamic Range Problem [email protected] Excel Discussion (Misc queries) 4 January 4th 05 06:55 PM
Add a Dynamic Range with 2 Conditions Q John Excel Worksheet Functions 7 December 23rd 04 02:58 PM


All times are GMT +1. The time now is 07:13 AM.

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"