Issue with AVERAGEIFS function

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
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
i think you dont need the quotes for the single equals sign

=AVERAGEIFS($C$2:$C$11085,$I$2:$I$11085,"="&R2,$K$2:$K$11085,"<="&S1,$K$2:$K$11085,">"&R1)

try this out

=AVERAGEIFS($C$2:$C$11085,$I$2:$I$11085,R2,$K$2:$K$11085,"<="&S1,$K$2:$K$11085,">"&R1)


 
Upvote 0
I actually was able to figure it out. the problem was that the column i thought i had updated to number format hadn't fully updated so it was still reading as text. If anyone has the same problem highlight the data and go to Data->Text to columns->Next->Deselect all delimiters->Next->Finish. Should fix the problem i had.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top