If you change "" to NA() in the formula, you will get something that looks
like this:
data time1 #N/A
data time1 #N/A
data time1 #N/A
data #N/A time2
data #N/A time2
data #N/A time2
The #N/A errors look ugly, but they are omitted in a line or XY chart
(rather than plotting as a zero).
- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______
> No, essentially what I have is the following:
>
[quoted text clipped - 48 lines]
>> > Thanks!
>> > <3 Matt
Matt S - 29 May 2008 14:08 GMT
That would work... I guess what I was looking for was to define variables as
the rows that time1/2 starts and ends. Then I can use those variables to
define the ranges of the charts.
Is there an easy way to define these variables?
> If you change "" to NA() in the formula, you will get something that looks
> like this:
[quoted text clipped - 68 lines]
> >> > Thanks!
> >> > <3 Matt
Matt S - 29 May 2008 14:25 GMT
Actually, adding #N/A messes up all my other calculations. :(
> If you change "" to NA() in the formula, you will get something that looks
> like this:
[quoted text clipped - 68 lines]
> >> > Thanks!
> >> > <3 Matt
Jon Peltier - 29 May 2008 22:55 GMT
Worksheet columns are cheap. Keep the original table as is, and use it for
display and for subsequent calculations. Then create another range that uses
formulas like =IF(LEN(B2)=0,NA(),B2), and use these columns for chart source
data.
- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______
> Actually, adding #N/A messes up all my other calculations. :(
>
[quoted text clipped - 78 lines]
>> >> > Thanks!
>> >> > <3 Matt
Matt S - 29 May 2008 15:10 GMT
I think I got it Jon... it will run slow, but it will work. Any way to speed
up this code?
Dim FirstData As Long
Dim LastData As Long
Range("AQ15").Select
Do Until Not ActiveCell = ""
Selection.Offset(1, 0).Select
Loop
FirstData = ActiveCell.Row
Do Until ActiveCell = ""
Selection.Offset(1, 0).Select
Loop
LastData = ActiveCell.Row - 1
Then I will use First and Last data variable to define my rows in the graphs.
> If you change "" to NA() in the formula, you will get something that looks
> like this:
[quoted text clipped - 68 lines]
> >> > Thanks!
> >> > <3 Matt