Forum Discussion

BryanW155's avatar
BryanW155
Copper Contributor
Sep 24, 2024
Solved

Using AVERAGEIF with =TODAY

I have an AVERAGEIF formula that searches the data for a given hour, across an entire year. Works great. I would like that formula to also tell me the average across the last two months, and I would ...
  • JKPieterse's avatar
    JKPieterse
    Sep 24, 2024
    Have a look at the INDIRECT worksheet function. If I understand your setup, it might look like this:

    =AVERAGEIF(INDIRECT($H$31&"34"):INDIRECT($F$31&"34"),A12,INDIRECT($H$31&"40"):INDIRECT($F$31&"40"))

Resources