Calculating the average handling time to complete a task

lorrry

New Member
Joined
Jun 6, 2019
Messages
2
Hi,

I'm stuck with a particular kind of formula in excel. I'm looking to calculate the average amount of days it takes for a transaction to be completed for each month. I have a sheet listing when all the expressions of interest and the date/time that this occurred and another listing when the transaction was completed with the date/time. Some expressions of interests never pan out, therefore don't appear in the completed transactions.

For example, I have the data

Expression of interest:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Business1[/TD]
[TD]4/4/2019[/TD]
[/TR]
[TR]
[TD]Business2[/TD]
[TD]4/16/2019[/TD]
[/TR]
[TR]
[TD]Business3[/TD]
[TD]4/25/2019[/TD]
[/TR]
[TR]
[TD]Business4[/TD]
[TD]5/1/2019[/TD]
[/TR]
[TR]
[TD]Business5[/TD]
[TD]5/3/2019[/TD]
[/TR]
</tbody>[/TABLE]

Completed transaction:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Business2[/TD]
[TD]4/20/2019[/TD]
[/TR]
[TR]
[TD]Business3[/TD]
[TD]4/27/2019
[/TD]
[/TR]
[TR]
[TD]Business4[/TD]
[TD]5/3/2019[/TD]
[/TR]
</tbody>[/TABLE]

Desired data:
[TABLE="width: 500"]
<tbody>[TR]
[TD]April 2019[/TD]
[TD]=Average days taken to complete transaction in April 2019[/TD]
[/TR]
[TR]
[TD]May 2019[/TD]
[TD]=Average days taken to complete transaction in May 2019[/TD]
[/TR]
</tbody>[/TABLE]


Does anyone have any guidance of how I should approach this?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
note that I'd swapped day/month from your data for testing


Book1
ABCDEFGH
1Expression of interest:Completed transaction:Average
2Business104/04/2019Business220/04/2019Apr-193
3Business216/04/2019Business327/04/2019May-192
4Business325/04/2019Business403/05/2019
5Business401/05/2019
6Business503/05/2019
Sheet2
Cell Formulas
RangeFormula
H2=(SUMPRODUCT($E$2:$E$4,--(MONTH($E$2:$E$4)&YEAR($E$2:$E$4)=MONTH($G2)&YEAR($G2)))-SUMPRODUCT($B$2:$B$6,--(ISNUMBER(MATCH($A$2:$A$6,D:D,0))),--(MONTH($B$2:$B$6)&YEAR($B$2:$B$6)=MONTH($G2)&YEAR($G2))))/SUMPRODUCT(--(MONTH($E$2:$E$4)&YEAR($E$2:$E$4)=MONTH($G2)&YEAR($G2)))
 
Upvote 0
I have just had a play around with this formula and it is a great way of going about the problem. However, I could not get it to calculate the days between if the EOI was the previous month to the completed transaction. E.g. EOI on 1/7/2019 and Completed Transaction on 1/8/2019. The formula will not calculate this.
 
Upvote 0
Wow!

Thanks so much for responding so quickly guys. Really appreciate your help. I'll apply both of these formulas and see what works best.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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