Hi all
I am having trouble with the below formula and referencing the last row:
Range("E16").Formula = "=AVERAGEIFS($H$22:$H$" & lastrow & ", $W$22:$W$" & lastrow & "=1,$H$22:$H$" & lastrow & ","">=""&E12,$H$22:$H$" & lastrow & ",""<=""&F12)"
I get 'Application-defined or object-defined error. Does anyone know where I'm going wrong?
Thanks
Bookmarks