Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / July 2007

Tip: Looking for answers? Try searching our database.

Comparing 4 dates and getting 1 headache

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sdogma - 30 Jul 2007 16:14 GMT
Hi everyone,
   I have a problem hopefully some one can help me out with.  
I have the following 4 dates…

Beginning Date of Service
Ending Date of Service
Eligible Beginning Date of Service
Eligible Ending Date of Service

I need a formula that will compare the Beginning Date of Service to the
Eligible Beginning Date of Service, if the Eligible date is later it will
take that if is earlier then it will take the Beginning Date of Service and
compare it to the Ending Date of Service if the Eligible Ending Date of
Service
is later then the Ending Date of Service or the Ending Date of Service if
it is later then the Eligible Ending Date of Service

In other words I need a count of the number of days that fall in both groups.

Ideas?

Thanks!
Roger Govier - 30 Jul 2007 16:35 GMT
Hi

Try
=MAX(BDS,EBDS)-MIN(DBS,EBDS)
and
=MAX(EDS,EEDS)-MIN(EDS,EEDS)
Signature

Regards
Roger Govier

> Hi everyone,
>    I have a problem hopefully some one can help me out with.
[quoted text clipped - 20 lines]
>
> Thanks!
Ed from AZ - 30 Jul 2007 16:44 GMT
First, take a deep breath and slow down.
Next, break this into small bites.

Let's assume
> Beginning Date of Service - Col A
> Ending Date of Service - Col B
> Eligible Beginning Date of Service - Col C
> Eligible Ending Date of Service - Col D

In Col E, try
=IF(A1>B1, A1, B1)
In Col F, try
=IF(C1>D1, C1, D1)
In Col G, try
=DATEDIF(E1, F1, "d")

Cols A-F should be formatted as DATE, Col G should be formatted as
NUMBER.

For mare on the DATEDIF function, see
http://www.cpearson.com/excel/datedif.htm

HTH
Ed

> Hi everyone,
>     I have a problem hopefully some one can help me out with.  
[quoted text clipped - 18 lines]
>
> Thanks!

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.