kodr
Programmer
- Dec 4, 2003
- 368
I'm trying to create line graphs from some data being generated by another organization.
Say for instance I have the following data:
What I've done is to feed my graph generating code the 'allowed' range (say A2:S7) for the first and (A10:S16) for the second.
I end up with extra items in the legend that I assume are the unused rows in my source data (A5 thru A7 and A14 thru A16)
Can anyone suggest better way of passing the exact range I want to use? Keep in mind the sample data above is just for one city, there are currently over 30 cities and the number is growing constantly, so I'm trying to make this as dynamic as possible.
I will always know the starting location of the next set of data, but will not always know the number of processors (or rows of data) As this will change if someone slaps in a new card, or pulls one out. The limit is 5 per processor type though, so that makes it easier.
Is there anyway to give a starting position (A10) and get the 'usedrange' from there?
Say for instance I have the following data:
Code:
Processor Type1
20-August 21-August (continues for 30 days)
city1-proc1 20% 25% etc...
city1-proc2 34% 20% etc...
city1-proc3 10% 14% etc...
Processor Type2
20-August 21-August (continues for 30 days)
city1-proc1 50% 75% etc...
city1-proc2 84% 90% etc...
city1-proc3 30% 16% etc...
What I've done is to feed my graph generating code the 'allowed' range (say A2:S7) for the first and (A10:S16) for the second.
I end up with extra items in the legend that I assume are the unused rows in my source data (A5 thru A7 and A14 thru A16)
Can anyone suggest better way of passing the exact range I want to use? Keep in mind the sample data above is just for one city, there are currently over 30 cities and the number is growing constantly, so I'm trying to make this as dynamic as possible.
I will always know the starting location of the next set of data, but will not always know the number of processors (or rows of data) As this will change if someone slaps in a new card, or pulls one out. The limit is 5 per processor type though, so that makes it easier.
Is there anyway to give a starting position (A10) and get the 'usedrange' from there?