Calculating average value with specific conditions

FM1

Board Regular
Joined
Jan 1, 2008
Messages
62
Office Version
  1. 365
Column A - 'Date Received' - contains date values
Column B - 'Status' - contains 'In Progress', 'Unassigned' and 'Closed' values
Column C - 'Product' - contains 'Product A', 'Product B', 'Product C', 'Product D' values
Cell D1 = Today's Date

I need two formulas, where the calculation will return an average value for time unassigned from the point the entry was received for the following two cases:

1. Total average time unassigned (Column B = "Unassigned) for ALL products in column C
2. Total average time unassigned, broken down by product (Column C = "Product A/B/C/D")
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
It's easy if you use a "helper" column (eg column F) which calculates the difference between today's date and the date received. Then you can use the AVERAGEIFS function as follows:

1. AVERAGEIFS($F:$F,$B:$B,"Unassigned")
2. AVERAGEIFS($F:$F,$B:$B,"Unassigned",$C:$C,"Product A")
 
Upvote 0
It's easy if you use a "helper" column (eg column F) which calculates the difference between today's date and the date received. Then you can use the AVERAGEIFS function as follows:

1. AVERAGEIFS($F:$F,$B:$B,"Unassigned")
2. AVERAGEIFS($F:$F,$B:$B,"Unassigned",$C:$C,"Product A")

I did have this in mind but was trying to avoid it since the worksheet is already very data heavy.
 
Upvote 0
I did have this in mind but was trying to avoid it since the worksheet is already very data heavy.
Perhaps an array formula then (using CTRL-SHIFT-ENTER when entering the formula):

1. ={SUMPRODUCT($D$1-$A$2:$A$1000,--($B$2:$B$1000="Unassigned"))/COUNTIFS($B$2:$B$1000,"Unassigned")}

2. ={SUMPRODUCT($D$1-$A$2:$A$1000,--($B$2:$B$1000="Unassigned"),--($C$2:$C$1000="Product A"))/COUNTIFS($B$2:$B$1000,"Unassigned",$C$2:$C$1000,"Product A")}
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

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