I have a column of dates for gas receipts and colums for Litres, Price/Litre, and Cost. I’d like to average the columns only if the date in the first column has a year of, say, 2016. So:
=AVERAGEIF(A2:A1000,YEAR()="2016",E2:E1000
I know this won’t work, but it gives an idea of what I want to do.
=AVERAGEIF(A2:A1000,"=2016"&YEAR(A2:A1000),E2:E1000)
is maybe closer? Is this even possible?