Hi,
I am trying to average an unknown number of values in the same column.
The data is the result from a race and so I have a column with the
number of the lap, then the number of the car, then the driver's name
then the lap times then a last column with the number of pit stop (1
for the first, 2 for the second of this car, etc)
So I want VBA to look for a specific car in my worksheet and then to
average the laptimes in between say pit stop 1 and the row before pit
stop 2 in another cell in another worksheet but I cannot manage to do
the average.
(Find the rows with the right car number i know how to do though).
Could you please help me?
Many thanks in advance
I am trying to average an unknown number of values in the same column.
The data is the result from a race and so I have a column with the
number of the lap, then the number of the car, then the driver's name
then the lap times then a last column with the number of pit stop (1
for the first, 2 for the second of this car, etc)
So I want VBA to look for a specific car in my worksheet and then to
average the laptimes in between say pit stop 1 and the row before pit
stop 2 in another cell in another worksheet but I cannot manage to do
the average.
(Find the rows with the right car number i know how to do though).
Could you please help me?
Many thanks in advance