I have a long list of processes that all have start and end dates. I would like to be able to find how many processes, that have run for more than a day, are running on a given date, and the average time since start. In the end I want to make a plot showing the average process time over time. What I am having trouble with is not identifying which processes are running on a give date, but averaging the time since start for all processes that running on a given date.
Desired Results ('Data' sheet):

To get the number of processes running on a given day, I used the following:
=COUNTIFS(raw!B:B, "<" & data!A2, raw!C:C, ">" & data!A2) + COUNTIFS(raw!B:B, "<" & data!A2, raw!C:C, "=" & "")
Long description of above tables.: If I have a process that started on 1-1-20, and only that process is running on 1-1-20, then the 'Average Days Since Process Start' is 0 as it has been running less then a day. On 2-1-20, if still that is the only process running, then the 'Average Days Since Process Start' is 1 since that single process has been running for 1 day.
If I start a new process on 4-1-20, though there are two processes running yet the process with less than 1 day of operation is not be counted. So the average will be 3/1=3. Then on 5-1-20 the 'Average Days Since Process Start' is 2.5 as the first process has been running 4 days, and the second 1 day. (1+4)/2 = 2.5
If I start yet another process on 10-1-20, but stopped the first process on 9-1-20, then on 11-1-20 the 'Average Days Since Process Start' is 4, as the second process has been running for 7 days, and the third process for 1. (1+7)/2 = 4












