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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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,224,827
Messages
6,181,198
Members
453,022
Latest member
RobertV1609

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