Hi All,
I am working with an excel file that shows daily whether an individual is checked into a shelter. The dates are often consecutive. I am trying to merge rows to reflect a true length of stay, not daily. here is what my data looks like:
First Last SSN DOB Entry Date Exit Date
Jane Doe 111111111 1/11/1111 4/1/2009 4/1/2009
Jane Doe 111111111 1/11/1111 4/2/2009 4/2/2009
Jane Doe 111111111 1/11/1111 4/3/2009 4/3/2009
Jane Doe 111111111 1/11/1111 4/4/2009 4/4/2009
Jane Doe 111111111 1/11/1111 4/5/2009 4/5/2009
Jane Doe 111111111 1/11/1111 4/6/2009 4/6/2009
Jane Doe 111111111 1/11/1111 4/7/2009 4/7/2009
Jane Doe 111111111 1/11/1111 4/8/2009 4/8/2009
Jane Doe 111111111 1/11/1111 4/9/2009 4/9/2009
Jane Doe 111111111 1/11/1111 4/10/2009 4/10/2009
Jane Doe 111111111 1/11/1111 4/12/2009 4/12/2009
Jane Doe 111111111 1/11/1111 4/13/2009 4/13/2009
Jane Doe 111111111 1/11/1111 4/14/2009 4/14/2009
Jane Doe 111111111 1/11/1111 4/15/2009 4/15/2009
Jane Doe 111111111 1/11/1111 4/16/2009 4/19/2009
Jane Doe 111111111 1/11/1111 4/21/2009 4/22/2009
Here is what I would like it to look like:
First Last SSN DOB Entry Date Exit Date
Jane Doe 111111111 1/11/1111 4/1/2009 4/10/2009
Jane Doe 111111111 1/11/1111 4/12/2009 4/19/2009
Jane Doe 111111111 1/11/1111 4/21/2009 4/22/2009
Does anyone have any suggestions on how I can accomplish this with a macro or otherwise so I don't have to manually go through a year's worth of data? Thanks for your help and time.
Sincerely,
Fred
I am working with an excel file that shows daily whether an individual is checked into a shelter. The dates are often consecutive. I am trying to merge rows to reflect a true length of stay, not daily. here is what my data looks like:
First Last SSN DOB Entry Date Exit Date
Jane Doe 111111111 1/11/1111 4/1/2009 4/1/2009
Jane Doe 111111111 1/11/1111 4/2/2009 4/2/2009
Jane Doe 111111111 1/11/1111 4/3/2009 4/3/2009
Jane Doe 111111111 1/11/1111 4/4/2009 4/4/2009
Jane Doe 111111111 1/11/1111 4/5/2009 4/5/2009
Jane Doe 111111111 1/11/1111 4/6/2009 4/6/2009
Jane Doe 111111111 1/11/1111 4/7/2009 4/7/2009
Jane Doe 111111111 1/11/1111 4/8/2009 4/8/2009
Jane Doe 111111111 1/11/1111 4/9/2009 4/9/2009
Jane Doe 111111111 1/11/1111 4/10/2009 4/10/2009
Jane Doe 111111111 1/11/1111 4/12/2009 4/12/2009
Jane Doe 111111111 1/11/1111 4/13/2009 4/13/2009
Jane Doe 111111111 1/11/1111 4/14/2009 4/14/2009
Jane Doe 111111111 1/11/1111 4/15/2009 4/15/2009
Jane Doe 111111111 1/11/1111 4/16/2009 4/19/2009
Jane Doe 111111111 1/11/1111 4/21/2009 4/22/2009
Here is what I would like it to look like:
First Last SSN DOB Entry Date Exit Date
Jane Doe 111111111 1/11/1111 4/1/2009 4/10/2009
Jane Doe 111111111 1/11/1111 4/12/2009 4/19/2009
Jane Doe 111111111 1/11/1111 4/21/2009 4/22/2009
Does anyone have any suggestions on how I can accomplish this with a macro or otherwise so I don't have to manually go through a year's worth of data? Thanks for your help and time.
Sincerely,
Fred