AVERAGEIF and Total Sum Question

dmill8023

Board Regular
Joined
Aug 24, 2012
Messages
60
Hello All! I am looking for some assistance. I am looking to do an average for travel times based on a certain day of the week. For example I keep the number of travel days in range AI2:AI100. My days are indicated in column AM2:AM100. Currently my formula is =AVERAGEIF('Raw Data'!$AM$2:$AM$100,Dashboard!$C158,'Raw Data'!$AI$2:$AI$100) but I don't have and "Sunday" values in range AM2:AM100. Therefore my sum of all the days are returning #DIV/0! Can someone please help? If further information is needed please let me know.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Assuming Dashboard!$C158 contains the day you want the average for and that you are using Excel 2007 or a later version, maybe:
Code:
=IFERROR(AVERAGEIF('Raw Data'!$AM$2:$AM$100,Dashboard!$C158,'Raw Data'!$AI$2:$AI$100),0)
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,107
Members
452,302
Latest member
TaMere

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