#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Dates - gaps between

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


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Dates - gaps between

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

On Aug 19, 4:33*pm, gecko123
wrote:
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


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Dates - gaps between

Perfect!

Thank you

"Pete_UK" wrote:

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

On Aug 19, 4:33 pm, gecko123
wrote:
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



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Dates - gaps between

You're welcome - thanks for feeding back.

Pete

On Aug 19, 6:14*pm, gecko123
wrote:
Perfect!

Thank you

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transpose Column With Gaps to Column With no gaps Vincent Excel Discussion (Misc queries) 9 October 1st 07 01:50 PM
Gaps In Bin Locations Tiziano Excel Worksheet Functions 4 August 22nd 06 02:48 AM
Gaps in a List anar_baku Excel Discussion (Misc queries) 3 May 13th 06 06:57 PM
Transpose Column With Gaps to Row With No Gaps? SteveC Excel Discussion (Misc queries) 5 June 18th 05 01:01 AM
Finding gaps mac_see Excel Worksheet Functions 1 March 2nd 05 08:58 PM


All times are GMT +1. The time now is 11:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"