Hi all,
Haven't been able to figure this out or find an answer. Any help would be greatly appreciated!
I have three columns: NAME, START, and END. I'm trying to find a formula/process that will combine any date ranges that are consecutive or overlap (but only for the same person). There are three ways that the END of one date range and the START of the next could be consecutive:
1.) The END might be the same as the next START.
2.) The END might be the day before the next START.
3.) The END might be before the next START (there might be an overlap).
Of course, if the ranges aren't consecutive or overlapping, nothing should be done.
For example, if I start with:
This is what I'm trying to get as the result:
Does anyone have any ideas? Thanks!
Haven't been able to figure this out or find an answer. Any help would be greatly appreciated!
I have three columns: NAME, START, and END. I'm trying to find a formula/process that will combine any date ranges that are consecutive or overlap (but only for the same person). There are three ways that the END of one date range and the START of the next could be consecutive:
1.) The END might be the same as the next START.
2.) The END might be the day before the next START.
3.) The END might be before the next START (there might be an overlap).
Of course, if the ranges aren't consecutive or overlapping, nothing should be done.
For example, if I start with:
Code:
NAME START END
JOHN DOE 7/3/2008 7/10/2008
JOHN DOE 7/10/2008 7/14/2008
JOHN DOE 8/9/2008 8/20/2008
BOB SMITH 2/4/2002 2/18/2002
BOB SMITH 2/19/2002 2/21/2002
BOB SMITH 2/22/2002 3/1/2002
BILL JOHNSON 11/3/2005 11/9/2005
BILL JOHNSON 11/7/2005 11/11/2005
BILL JOHNSON 11/10/2005 11/20/2005
JANE WILLIAMS 11/21/2005 12/1/2005
This is what I'm trying to get as the result:
Code:
NAME START END
JOHN DOE 7/3/2008 7/14/2008
JOHN DOE 8/9/2008 8/20/2008
BOB SMITH 2/4/2002 3/1/2002
BILL JOHNSON 11/3/2005 11/20/2005
JANE WILLIAMS 11/21/2005 12/1/2005
Does anyone have any ideas? Thanks!