SUMPRODUCT and AVERAGE together

aiwnjoo

Well-known Member
Joined
Jul 30, 2009
Messages
598
Hello, i am using this formula;

=SUMPRODUCT(--('Jun-18'!$L:$L>=$B$2), --('Jun-18'!$L:$L<=$C$2),--('Jun-18'!$L:$L<="Open"))

which returns a number of tickets closed between two date periods (dd/mm/yyyy hh:mm:ss) and works, i want to now add to this formula and of those 458 results i want to average column D in Jun-18 which has the individual hh:mm:ss for duration between the two dates.

Thanks
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Managed to solve it with;

=AVERAGEIFS('Jun-18'!$J:$J,'Jun-18'!$E:$E,">="&$B2,'Jun-18'!$G:$G,"<="&$C2)

E:E is the range of From dates
G:G is the range of To dates
B2 and C2 are From and To dates in a column for a particular month (i.e. 01/06/2018 to 30/06/2018), J is the range of times I want to average.

Seems to work well, I then use custom filter to display the result as dd "Days", hh "Hours", mm "Minutes" which adds a random leading space but not to worry.

Thanks
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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