EnergyGuy123
New Member
- Joined
- Sep 4, 2018
- Messages
- 2
I have weather data for a year that I am trying to average based on the hour. My averageifs function keeps giving me a #DIV/0! error and I can't figure out why. Any help is appreciated.
Equation: =AVERAGEIFS($C$2:$C$11085,$I$2:$I$11085,"="&R2,$K$2:$K$11085,"<="&S1,$K$2:$K$11085,">"&R1)
C2:C11085 - contains integer values that represent amount of degrees
I2:I11085 - contains date temperature was taken in MM/DD/YYYY format
R2 - The date I want the average for in MM/DD/YYYY
K2:K11085 - contains the time of day the temperature reading was taken in 24:00 format
S1 - hour of the day I want the temperatures averaged over in 24:00 format
R1 - previous hour in 24:00 format
Equation: =AVERAGEIFS($C$2:$C$11085,$I$2:$I$11085,"="&R2,$K$2:$K$11085,"<="&S1,$K$2:$K$11085,">"&R1)
C2:C11085 - contains integer values that represent amount of degrees
I2:I11085 - contains date temperature was taken in MM/DD/YYYY format
R2 - The date I want the average for in MM/DD/YYYY
K2:K11085 - contains the time of day the temperature reading was taken in 24:00 format
S1 - hour of the day I want the temperatures averaged over in 24:00 format
R1 - previous hour in 24:00 format