Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Calculating date overlapping

If I have two group of dates and need to calculate the
ovelapping period;
i.e
group 1 start date 12/12/2003 and finish date 1/May/2004
group 2 start date 1/1/2004 and finish date is 1/Feb/2004
so the overlapping is from 1/1/2004 until 1/Feb/2004
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Calculating date overlapping

Salam,

See http://www.cpearson.com/excel/DateIntervals.htm for some
example formulas.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Salam" wrote in message
...
If I have two group of dates and need to calculate the
ovelapping period;
i.e
group 1 start date 12/12/2003 and finish date 1/May/2004
group 2 start date 1/1/2004 and finish date is 1/Feb/2004
so the overlapping is from 1/1/2004 until 1/Feb/2004



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Calculating date overlapping

Hi Salam,

=IF(OR(IDate2<RDate1,IDate1RDate2),0,
(MIN(IDate2,RDate2)-MAX(IDate1,RDate1)+1))


Another way (of removing negative results):

=MAX(0,1+MIN(IDate2,RDate2)-MAX(IDate1,RDate1))

Regards,

Daniel M.

"Chip Pearson" wrote in message
...
Salam,

See http://www.cpearson.com/excel/DateIntervals.htm for some
example formulas.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Salam" wrote in message
...
If I have two group of dates and need to calculate the
ovelapping period;
i.e
group 1 start date 12/12/2003 and finish date 1/May/2004
group 2 start date 1/1/2004 and finish date is 1/Feb/2004
so the overlapping is from 1/1/2004 until 1/Feb/2004





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
overlapping date ranges kalchakra Excel Discussion (Misc queries) 2 March 3rd 11 09:54 PM
Calculating overlapping time periods Arlette Excel Worksheet Functions 1 December 9th 06 02:14 AM
Calculating overlapping time periods Arlette Excel Worksheet Functions 1 December 9th 06 12:31 AM
Calculating overlapping time periods Arlette Excel Worksheet Functions 0 December 8th 06 09:35 PM
Overlapping or Duplicate Date & Time Mike Excel Worksheet Functions 1 August 17th 05 10:22 PM


All times are GMT +1. The time now is 12:46 AM.

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

About Us

"It's about Microsoft Excel"