Excel VBA AVERAGEIFS range with variables -
i want put in variable in code:
sheets("sheet1").range("p1").value = _ "=averageifs(b1:b1101, b1:b1101,"">0"",b1:b1101,""<200"")"
some thing like:
sheets("sheet1").range("p1").value = _ "=averageifs(b1:b" & mylastrow & ", b1:b1101,"">0"",b1:b1101,""<200"")"
what correct syntax?
Comments
Post a Comment