Hi All,
I need an Excel function (or VBA code) that will average including first 0's and only including 1 of that last 0s. For instance,
0
0
2
0
4
0
0
0
Would average out to 1, since (0+0+2+0+4+0)/6 = 1.
The problem is there may be multiple zeros between two positive numbers.
Honestly, I have thought about this for sometime (and started a similar thread for a related problem), but I haven't had much luck.
Any help would be fantastic!
Thanks!
p.s. I am using Excel 2003.
I need an Excel function (or VBA code) that will average including first 0's and only including 1 of that last 0s. For instance,
0
0
2
0
4
0
0
0
Would average out to 1, since (0+0+2+0+4+0)/6 = 1.
The problem is there may be multiple zeros between two positive numbers.
Honestly, I have thought about this for sometime (and started a similar thread for a related problem), but I haven't had much luck.
Any help would be fantastic!
Thanks!
p.s. I am using Excel 2003.