Averageif Problem - Incorrect Average

jws

Board Regular
Joined
Jan 10, 2008
Messages
69
Hello,

I have a bunch of cities that I am tracking weather for and I thought I could handle this with an “averageif” statement. Basically I want to make a weekly summary by week number (1, 2, 3, etc) and have the 7 day average of the temperature for a go-forward basis. I tried the code below and for some reason my averages are not coming out correct. I have pictures of both tabs and if any other information is need please let me know.

Cities 2011
Nstxt.png


Formula in Cell D4 on tab “Cities Weekly Summary”
=AVERAGEIF('Cities 2011'!$A$3:$E$365, 'Cities Weekly Summary'!A4, 'Cities 2011'!$E$3:$E$365)

Cities Weekly Summary
zhSzJ.jpg
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Try this in Sheet 'Cities Weekly Summary' D4

=AVERAGEIF('Cities 2011'!$A$4:$A$365, 'Cities Weekly Summary'!A4, 'Cities 2011'!$E$4:$E$365)
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,735
Members
452,939
Latest member
WCrawford

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