Here's how I did it...
| B | C | D | E | F | G | H | I | J |
---|
Data | | | | | | | | | |
| | | | | | | | | |
Name | Start Date | End Date | Day Count | Date 1 | Date 2 | Date 3 | Date 4 | Date 5 | |
Mark | | | | | | | | | |
Craig | | | | | | | | | |
David | | | | | | | | | |
<tbody>
[TD="align: center"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]3[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]17/01/2015[/TD]
[TD="align: right"]19/01/2015[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]17/01/2015[/TD]
[TD="align: right"]18/01/2015[/TD]
[TD="align: right"]19/01/2015[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]18/01/2015[/TD]
[TD="align: right"]22/01/2015[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]18/01/2015[/TD]
[TD="align: right"]19/01/2015[/TD]
[TD="align: right"]20/01/2015[/TD]
[TD="align: right"]21/01/2015[/TD]
[TD="align: right"]22/01/2015[/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]20/01/2015[/TD]
[TD="align: right"]23/01/2015[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]20/01/2015[/TD]
[TD="align: right"]21/01/2015[/TD]
[TD="align: right"]22/01/2015[/TD]
[TD="align: right"]23/01/2015[/TD]
[TD="align: right"][/TD]
</tbody>
| B | C | D | E | F |
---|
Calculation | | | | | |
| | | | | |
Date Count | Date List | Unique Dates | Unique Date Count | Unique Date Count (2) | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
<tbody>
[TD="align: center"]9[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]10[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]11[/TD]
[TD="align: center"]12[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]17/01/2015[/TD]
[TD="align: right"]17/01/2015[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]7[/TD]
[TD="align: center"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]18/01/2015[/TD]
[TD="align: right"]18/01/2015[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]18/01/2015[/TD]
[TD="align: right"]19/01/2015[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]15[/TD]
[TD="align: right"][/TD]
[TD="align: right"]19/01/2015[/TD]
[TD="align: right"]20/01/2015[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]16[/TD]
[TD="align: right"][/TD]
[TD="align: right"]19/01/2015[/TD]
[TD="align: right"]21/01/2015[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]17[/TD]
[TD="align: right"][/TD]
[TD="align: right"]20/01/2015[/TD]
[TD="align: right"]22/01/2015[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]18[/TD]
[TD="align: right"][/TD]
[TD="align: right"]20/01/2015[/TD]
[TD="align: right"]23/01/2015[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]19[/TD]
[TD="align: right"][/TD]
[TD="align: right"]21/01/2015[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]20[/TD]
[TD="align: right"][/TD]
[TD="align: right"]21/01/2015[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]21[/TD]
[TD="align: right"][/TD]
[TD="align: right"]22/01/2015[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]22[/TD]
[TD="align: right"][/TD]
[TD="align: right"]22/01/2015[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]23[/TD]
[TD="align: right"][/TD]
[TD="align: right"]23/01/2015[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]24[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]25[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]26[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]27[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]28[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]29[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]30[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]31[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
</tbody>
If you want to avoid the formula used in D12:D31 (it will be quite slow on a big data set), then use the following formula to skip this step:
Committed with CTRL+SHIFT+ENTER (the result is shown in F12).
I'm sure they'll be a way of doing this 'in memory' with a single formula, but I can't figure out how to get the matrix of dates into a single array in order to calculate the unique count. I'm hoping someone else sees this and can enlighten us on how to do it.
Hope this helps.