nmgmarques
Board Regular
- Joined
- Mar 1, 2011
- Messages
- 133
- Office Version
- 365
- Platform
- Windows
Hi all.
Imagine range A1:A1000 with varying dates from 2020 to 2022 (short form 16-08-2021).
Range B1:B1000 has number value for the corresponding date.
In cell C1, show average of all values from current year (today()) -1. So in this case, effectively, return the average of all values from 2021 only.
I have tried an AverageIF and AverageIFS to no avail. Suspect it has something to do with the year.
=AVERAGEIF(A2:A1000;YEAR(TODAY())-1;B2:B1000)
Imagine range A1:A1000 with varying dates from 2020 to 2022 (short form 16-08-2021).
Range B1:B1000 has number value for the corresponding date.
In cell C1, show average of all values from current year (today()) -1. So in this case, effectively, return the average of all values from 2021 only.
I have tried an AverageIF and AverageIFS to no avail. Suspect it has something to do with the year.
=AVERAGEIF(A2:A1000;YEAR(TODAY())-1;B2:B1000)