Hello,
I have data in the following form
WeekNumber - Station1 - Station2 - Station3
I've got a Visual Basic code that fills up the weeknumbers up to the current week. I then use an if sentence that displays some result for Station 1-3 only if there is a weeknumber present in the same line. Otherwise it displays nothing. I copied the if sentence down through the 52 possible weeks. So far, so good.
But now I wan't to graph my data, and I use the offset function in order to obtain the data I want like this
Offset(B2,0,0,counta($B:$B)-1,1)
My problem is that the function 'counta' counts all the "empty" cells as well since they include an if sentence, even though said if sentence returns a "".
How can I get around this ?
Please let me know if anything is unclear, and thanks for your help.
I have data in the following form
WeekNumber - Station1 - Station2 - Station3
I've got a Visual Basic code that fills up the weeknumbers up to the current week. I then use an if sentence that displays some result for Station 1-3 only if there is a weeknumber present in the same line. Otherwise it displays nothing. I copied the if sentence down through the 52 possible weeks. So far, so good.
But now I wan't to graph my data, and I use the offset function in order to obtain the data I want like this
Offset(B2,0,0,counta($B:$B)-1,1)
My problem is that the function 'counta' counts all the "empty" cells as well since they include an if sentence, even though said if sentence returns a "".
How can I get around this ?
Please let me know if anything is unclear, and thanks for your help.