range - expected value in VBA -
trying figure out how loop through data in excel create expected value, i'm getting error in "for each cell in... "
for = 0 115 - age prob = 1 each cell in range(index(b:b,age+i): b115) prob = prob * cell.value next expectedvalue = prob * (age + i) next
Comments
Post a Comment