Frequency analysis - number of days between each occurance

msin88

New Member
Joined
Feb 7, 2018
Messages
2
Hi,

I have list of data where I need to analyze the frequency of when my employees are buying mobile phones.

I have a list consisting of the following information:
- Employee
- Date of purchase

I want to find out how often each employee orders a new phone (number of days between each purchase) and also an average for the whole company.
I assume there is a "quick" solution to this, but somehow I cannot figure out how to do this the easiest way. I have put the data into a pivot table with the dates listed for each employee, but it does not solve my problem.

Hope someone can help me or at least guide me in the right direction.

Thanks!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
here is a simple way for you: sort your table first by column Employee and then by Date of purchase (oldest to newest). then apply these formulas


Excel 2010
ABCDEF
1EmpDate of PurchaseDAYSEMPAVG BY EMPLOYEE
2AAAA2/7/2018FALSEAAAA4
3AAAA2/12/20185BBB7
4AAAA2/15/20183
5BBB2/7/2018FALSE
6BBB2/14/20187
Sheet2
Cell Formulas
RangeFormula
F2=AVERAGEIF($A$2:$A$6,$E2,$C$2:$C$6)
F3=AVERAGEIF($A$2:$A$6,$E3,$C$2:$C$6)
C2=IF(COUNTIFS(A$2:A2,A2)=1,FALSE,B2-B1)
C3=IF(COUNTIFS(A$2:A3,A3)=1,FALSE,B3-B2)
C4=IF(COUNTIFS(A$2:A4,A4)=1,FALSE,B4-B3)
C5=IF(COUNTIFS(A$2:A5,A5)=1,FALSE,B5-B4)
C6=IF(COUNTIFS(A$2:A6,A6)=1,FALSE,B6-B5)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,583
Messages
6,131,553
Members
449,655
Latest member
Anil K Sonawane

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