Counting unique number of days in a data set

Copper Contributor

I would be very grateful for any ideas or advice on the following conundrum:

 

I have approx. 600 line items of activities for a construction gantt chart, with Start and Finish dates.

. I am trying to count only the total number of "unique dates" (i.e. no overlaps) using a formula.

. Calculating the '23' in the below example is easy - simple SUM.

. Trying to also calculate the '19' in the below example which I can't solve...

 

Many thanks in advance!

George 

 

activitystartfinishdurationoverlap  
      
Act-0011 May 202110 May 202110  
Act-0027 May 202115 May 202194(bec/ these already exist above)
Act-00320 May 202123 May 20214  
   23  
    19unique days 

 

3 Replies

@George145 Perhaps you can use the formulae demonstrated in the attached file. It calculates overlap as the duration between end dates for subsequent activities, only if the start date of the latest activity lays before the end data of the first. Otherwise, it returns zero.

@Riny_van_Eekelen Thank you, but I don't think it will work if the start date on activities in the subsequent rows is earlier than the start date on activities in the preceding rows. Thoughts? 

 

activitystartfinishdurationoverlapunique
      
Act-0011-May-2111-May-2111011
Act-0024-Apr-218-May-2135-439
Act-0039-May-2123-May-2115015
   61-465
Sorry - I just reread the remainder of your note and you had already stated this constraint.