Hi
Here's the sample data:
Personid Start End
5 04/04/2000 15/04/2000
5 10/04/2000 01/05/2000
5 12/04/2000 01/05/2000
5 01/06/2000 10/06/2000
6 07/06/2000 12/06/2000
6 16/06/2000 23/06/2000
Here's the problem. I need to determine the net number of days the submission was out with each person for a report. The answer should be for 36 days for personid 5 and 12 days for personid 6.
My attempts using for next loops do not get the correct amount. I thought this would be relatively simple, but for me obviously not.
Any help appreciated.
Thanks
WTH




