weighted average
Posted by mcarter973 on January 30, 2002 3:36 PM
here's the example
a1 1,000 b1 200
a2 2,500 b2 100
a3 5,000 b3 0
a4 10,000 b4 0
a5 15,000 b5 0
if b1>0 then use a1
if b5>0 then use a5, but if b5=0 then don't use a4, use the last "a" value where the corresponding "b" value was >0.
i hope this makes sense.
thanks.