Dates - gaps between

G

gecko123

I need to find gaps between the end date and start of the data.

Unfortunately my dates are in different columns and are grouped.

Example:

I need to check the gaps for the dates that go with each address number.
compare Effective Thru with the next rows Effective From. But do not
compare it to the next row if the address number is differerent.


Address Number Effective From Effective Thru
16436503 06/29/2007 10/31/2007
16436503 11/01/2007 12/31/2007
16436503 01/01/2008 07/21/2008
16436503 07/22/2008 07/31/2009
16452378 09/03/2007 12/31/2040
16459465 07/05/2007 10/31/2007
16459465 11/01/2007 12/31/2007
16459465 01/01/2008 12/31/2040
 
P

Pete_UK

Try this in D2:

=IF(A2<>A3,"end",B3-C2-1)

It will give you the length of the gap, or the word "end" for the
final address number in a sequence. You might like to change this to
"" in the formula.

Hope this helps.

Pete
 
G

gecko123

Perfect!

Thank you

Pete_UK said:
Try this in D2:

=IF(A2<>A3,"end",B3-C2-1)

It will give you the length of the gap, or the word "end" for the
final address number in a sequence. You might like to change this to
"" in the formula.

Hope this helps.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top