# Excel Formula - Calculate average days between actions (frequency of actions) in terms of days

I have a data sample with days as columns (20180801, 20180802, etc) and IDs as rows. Whenever a certain ID performs an action on a certain day, a '1' is marked under the right cell (eg: if ID 200 performs an action on 20180920, a '1' will show under row(ID 200) and column(20180920).

I need to figure out the average days in between actions over a certain period X (variable, in # of days). So if X is 30, the formula would look at the average frequency of 'actions' (ie: in days) over the past 30 days. If X is 60, over the past 60 days, etc.

See sample under Additional Project Files. I'm looking to fill C10:C2033 with a formula that would check, over the last 30 days from a certain date (CELL B7) (eg: from 20180924,), the average days in between actions. So if someone performs an action on the 10th, 15th, and 20th then the average would be 5 days. However if someone performs it on the 11th, 12th, 13th, 14th, 15th and then stops the average days in between actions would be 1 day (takes the last action into account and not just the last day) - generally speaking, I would do this by adding an intermediary step that splits every client ID (eg: ID 3) and lists all of the actions (Action1, Action2, Action3) - gets the date difference between each order (Date(Action2) - Date(Action1), Date(Action3) - Date(Action2), etc.) and then calculates the Average Action Frequency for each ID.

Then I need to compare the date difference between the a certain date (eg: 20180924) and the ‘last’ date he completed an action. If this is greater than 2 times the avg order frequency, I want to categorize as it some “Greater than 2 times”. If between 1 and 2 times the average order frequency, categorize as “between 1 and 2”. And if less, categorize as “Less than 1”

Ικανότητες: Επεξεργασία Δεδομένων, Excel, Μαθηματικά, Visual Basic

Σχετικά με τον Εργοδότη:
( 4 αξιολογήσεις ) Zalka, Lebanon

Ταυτότητα Εργασίας: #17835879

## Ανατέθηκε στον:

ilkecokay

Hello sir, excel expert here. I have completed half of your project. Actually, the most important part of the project. I am attaching example excel file. Usage: please write an ID in the box, for example "11" works fi Περισσότερα

\$25 USD σε 0 μέρες
(14 Αξιολογήσεις)
3.9

## 12 freelancers κάνουν προσφορές κατά μέσο όρο \$40 για αυτή τη δουλειά

jaylancer43

Hello Sir, I am a full time freelancer and can work dedicated on this till completion. My name is Jay and I'm an Expert Excel and VBA programmer on freelancer.com and have been featured by the freelancer community ( Περισσότερα

\$40 USD σε 1 μέρα
(640 Αξιολογήσεις)
8.3
Khurramz

Hi Durman! Shouldn't it be like this: Work performed (No of times) divided by the days ? Please let me know via chat.

\$25 USD σε 1 μέρα
(355 Αξιολογήσεις)
7.4
TonmoyRoy111

\$50 USD σε 2 μέρες
(275 Αξιολογήσεις)
6.5
Vasilchenko

Hello. I can do this......................................................................................

\$25 USD σε 1 μέρα
(81 Αξιολογήσεις)
6.2
suyashdhoot

Hi I am a very experienced statistician, data scientist and academic writer. I have completed several PhD level thesis projects involving advanced statistical analysis of data. I have worked with data from several comp Περισσότερα

\$150 USD σε 1 μέρα
(61 Αξιολογήσεις)
6.5
archanaoswal

I can write the necessary formula to calculate average based on the first and last date the data was entered for I have excellent command on MS Excel formulas. I have completed complex projects in Excel before . For Περισσότερα

\$30 USD σε 1 μέρα
(78 Αξιολογήσεις)
5.8
ferozstk

Hello, After reading your project details I believe I'm suitable for this project. As I'm expert on this kind of project with more than 5 years experience. Please feel free to contact me. I am looking forward Περισσότερα

\$30 USD σε 1 μέρα
(37 Αξιολογήσεις)
5.6
aubrey03

I am an Excel specialist with a lot of experience in creating complex formulas and macros. You may check some of my projects here: [login to view URL]

\$30 USD σε 1 μέρα
(54 Αξιολογήσεις)
5.1
AhmedMarzoq

Hello sir Welcome in my profile appreciate if you contact me to see how can work on your project, I am expert in excel and appreciate to visit my profile and see reviews Thank

\$30 USD σε 1 μέρα
(21 Αξιολογήσεις)
4.9
ScareCrow01

I think i can do to

\$30 USD σε 3 μέρες
(19 Αξιολογήσεις)
4.2
paulodayto08

Hi Good Day! I can help you to complete your excel file formula in less than a day. I am a vba macro developer for over 8 years now and has strong knowledge with Ms Excel Formulas and Functions. I created differ Περισσότερα

\$20 USD σε 0 μέρες
(14 Αξιολογήσεις)
3.4