Hi there,
I'm calculating the average acceleration of a vehicle every 10 seconds as it travels along. However sometimes no acceleration occurs in that 10 second time period and hence the #DIV/0! error is returned to the cell.
How can I make it leave the cell blank instead of returning #DIV/0! because it is effecting subsequent work.
Thank you
I'm calculating the average acceleration of a vehicle every 10 seconds as it travels along. However sometimes no acceleration occurs in that 10 second time period and hence the #DIV/0! error is returned to the cell.
How can I make it leave the cell blank instead of returning #DIV/0! because it is effecting subsequent work.
Thank you
Code:
Aavg = Application.Subtotal(1, Worksheets("raw").Range(Cells(sp, 7), Cells(ep, 7)))
Worksheets("kinematic").Activate
ActiveCell.Offset(0, 9).Value = Aavg
Last edited: