PC Review


Reply
Thread Tools Rate Thread

How to calculate the difference between two dates, excluding Sund.

 
 
gwatt
Guest
Posts: n/a
 
      7th Dec 2007
Using Excel, need to calculate the difference between two dates, excluding
Sundays .
 
Reply With Quote
 
 
 
 
Jim Thomlinson
Guest
Posts: n/a
 
      7th Dec 2007
Take a look at this link. Specificaly there is a funciton for counting the
number of Mondays in an interval (you can change it for Sunday). Then it is
just a matter of subtracting the number of sundays from the total number of
days...
--
HTH...

Jim Thomlinson


"gwatt" wrote:

> Using Excel, need to calculate the difference between two dates, excluding
> Sundays .

 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      7th Dec 2007
One way:

A1 = start date
A2 = end date

=A2-A1-SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&A2)))=1))

--
Biff
Microsoft Excel MVP


"gwatt" <(E-Mail Removed)> wrote in message
news:BA8F1E2E-B45B-41A4-893C-(E-Mail Removed)...
> Using Excel, need to calculate the difference between two dates, excluding
> Sundays .



 
Reply With Quote
 
gwatt
Guest
Posts: n/a
 
      7th Dec 2007
Jim, thanks for responding. the function sounds like it will work.
however, I do not see the "link" ? where do I find this function?
Thanks.



"Jim Thomlinson" wrote:

> Take a look at this link. Specificaly there is a funciton for counting the
> number of Mondays in an interval (you can change it for Sunday). Then it is
> just a matter of subtracting the number of sundays from the total number of
> days...
> --
> HTH...
>
> Jim Thomlinson
>
>
> "gwatt" wrote:
>
> > Using Excel, need to calculate the difference between two dates, excluding
> > Sundays .

 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      7th Dec 2007
Or, you could just count all the days that *aren't* Sundays then subtract 1:

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&A2)),2)<7))-1

--
Biff
Microsoft Excel MVP


"T. Valko" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> One way:
>
> A1 = start date
> A2 = end date
>
> =A2-A1-SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&A2)))=1))
>
> --
> Biff
> Microsoft Excel MVP
>
>
> "gwatt" <(E-Mail Removed)> wrote in message
> news:BA8F1E2E-B45B-41A4-893C-(E-Mail Removed)...
>> Using Excel, need to calculate the difference between two dates,
>> excluding
>> Sundays .

>
>



 
Reply With Quote
 
Narasimha
Guest
Posts: n/a
 
      8th Dec 2007
Try this "daddylonglegs" formula
A1 = start date
B1 = end date

=SUM(INT((WEEKDAY(A1-{2,3,4,5,6,7})+B1-A1)/7))



"gwatt" wrote:

> Using Excel, need to calculate the difference between two dates, excluding
> Sundays .

 
Reply With Quote
 
gwatt
Guest
Posts: n/a
 
      10th Dec 2007
Great, Thanks. I subtracted one to get the actual day's lapsed.

"Narasimha" wrote:

> Try this "daddylonglegs" formula
> A1 = start date
> B1 = end date
>
> =SUM(INT((WEEKDAY(A1-{2,3,4,5,6,7})+B1-A1)/7))
>
>
>
> "gwatt" wrote:
>
> > Using Excel, need to calculate the difference between two dates, excluding
> > Sundays .

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CALCULATE BETWEEN TWO DATES EXCLUDING WEEKENDS CYNTHIA Microsoft Excel Worksheet Functions 3 4th Dec 2009 02:15 AM
difference between two dates & time by excluding holidays & weeken Rohit Microsoft Excel Programming 1 20th Feb 2009 12:02 PM
Calculate the time difference excluding weekends and out of businesshours ( i.e. 8AM - 5 PM) joshi.sadanand@gmail.com Microsoft Excel Worksheet Functions 3 28th Jul 2008 12:40 PM
How do I calculate the number of days between two dates, excluding =?Utf-8?B?Z2lsbHQ5Nw==?= Microsoft Access 6 11th Jan 2005 07:18 PM
Calculate Days from Dates excluding weekends Faio Microsoft Access 1 17th Aug 2004 09:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:35 PM.