I have a Google sheet-based simple CRM for leads from Facebook ads. When I import leads into the sheet, I assign them the status of Raw in a dropdown column for status. My team then contacts them and updates the status to any one of the 5 different ones available.
Now, I would like to calculate the average number of hours or days before the status of these leads is changed from 'Raw' to any other status.
I am a beginner and would really value assistance here. The script could basically calculate for individual rows and then average them or it could do it all in one go and give the result in a cell.
Here is the link to a sample sheet. In sheet2, is the cell for the result. https://docs.google.com/spreadsheets/d/1nYMGCO7UlH7dHOYzWXpAIMiKQKBUMuLpZov9Jh_blgg/edit?usp=sharing
If the result is specific to the individual Agent, that would be even great.
C
is set toRaw
, and another timestamp in a second column when columnC
is set to to another value. You can then calculate the time difference by simple subtraction. To insert timestamps, use a script. Search this site for the wordtimestamp
to find many examples.