Hi guys,
I need a correction for my formula, I want to calculate averages for given dates,
gives error.
and ccording to top question is it possible to not giving first and last date with manual, can be choosen from a dropbox,for example,
months from 4 to 10, 4 = April, 10 = October,
If choose 5 from drop box, first date will become 01/05/2017 last date become 31/05/2017?
thank you for your helps.
I need a correction for my formula, I want to calculate averages for given dates,
Code:
Dim FirstDate As Date
Dim LastDate As Date
FirstDate= Application.InputBox("First Date")
LastDate = Application.InputBox("Last Date")
Range(Cells(3, anay), Cells(3, anay)).Formula = "=IFERROR(AVERAGEIFS(All!I:I,All!B:B,>=" & FirstDate& ",All!B:B,<=" & LastDate & ",All!A:A,A3),"")"
gives error.
and ccording to top question is it possible to not giving first and last date with manual, can be choosen from a dropbox,for example,
months from 4 to 10, 4 = April, 10 = October,
If choose 5 from drop box, first date will become 01/05/2017 last date become 31/05/2017?
thank you for your helps.