Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Working Days excluding Sundays

I have to calculate the no of days between 2 dates and exclude only sundays
in my count of days. I have tried NETWORKDAYS but it seems to exclude
saturdays and sundays. I only need to exclude sundays. Can somebody help me?

Thanks
Danielle
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Working Days excluding Sundays

=SUMPRODUCT(--(WEEKDAY(A2:A20)<1))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"danh" wrote in message
...
I have to calculate the no of days between 2 dates and exclude only sundays
in my count of days. I have tried NETWORKDAYS but it seems to exclude
saturdays and sundays. I only need to exclude sundays. Can somebody help
me?

Thanks
Danielle



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Working Days excluding Sundays

If you want to plug the dates into cells and use those in the formula, use

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(start_date&":"&end_date)))< 1))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"danh" wrote in message
...
I have to calculate the no of days between 2 dates and exclude only sundays
in my count of days. I have tried NETWORKDAYS but it seems to exclude
saturdays and sundays. I only need to exclude sundays. Can somebody help
me?

Thanks
Danielle



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Working Days excluding Sundays

Hi Bob,

Thanks for your help. I tried it but I think I am not using it correctly.
If I have 2 dates for example the 3 April 07 and 30 March 07 and I have to
find out the no. of working days between these 2 dates excluding sundays. My
answer should be 4 which is 3 April - 30 March = 5 days - 1 sunday = 4
working days.

Can you explain to me how I should use SUMPRODUCT with my example.

Thanks,
Danielle

"Bob Phillips" wrote:

=SUMPRODUCT(--(WEEKDAY(A2:A20)<1))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"danh" wrote in message
...
I have to calculate the no of days between 2 dates and exclude only sundays
in my count of days. I have tried NETWORKDAYS but it seems to exclude
saturdays and sundays. I only need to exclude sundays. Can somebody help
me?

Thanks
Danielle




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Working Days excluding Sundays

Did you see my second post?

Using this, either put 30 March 07 in one cell and 3 April 07 in another and
reference those like so

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

or cut the dates into the forumla directly

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(--"2007-03-30"&":"&--"2007-04-03")))<1))


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"danh" wrote in message
...
Hi Bob,

Thanks for your help. I tried it but I think I am not using it correctly.
If I have 2 dates for example the 3 April 07 and 30 March 07 and I have
to
find out the no. of working days between these 2 dates excluding sundays.
My
answer should be 4 which is 3 April - 30 March = 5 days - 1 sunday = 4
working days.

Can you explain to me how I should use SUMPRODUCT with my example.

Thanks,
Danielle

"Bob Phillips" wrote:

=SUMPRODUCT(--(WEEKDAY(A2:A20)<1))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"danh" wrote in message
...
I have to calculate the no of days between 2 dates and exclude only
sundays
in my count of days. I have tried NETWORKDAYS but it seems to exclude
saturdays and sundays. I only need to exclude sundays. Can somebody
help
me?

Thanks
Danielle








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Working Days excluding Sundays

Thank you so much for your help. I will try these.

"Bob Phillips" wrote:

If you want to plug the dates into cells and use those in the formula, use

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(start_date&":"&end_date)))< 1))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"danh" wrote in message
...
I have to calculate the no of days between 2 dates and exclude only sundays
in my count of days. I have tried NETWORKDAYS but it seems to exclude
saturdays and sundays. I only need to exclude sundays. Can somebody help
me?

Thanks
Danielle




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 287
Default Working Days excluding Sundays

With start date in A1 and end date in B1 this formula will give you the
number of non-Sundays between those dates

=B1-A1-INT((1-WEEKDAY(B1)+B1-A1)/7)

format as general


"danh" wrote:

Thank you so much for your help. I will try these.

"Bob Phillips" wrote:

If you want to plug the dates into cells and use those in the formula, use

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(start_date&":"&end_date)))< 1))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"danh" wrote in message
...
I have to calculate the no of days between 2 dates and exclude only sundays
in my count of days. I have tried NETWORKDAYS but it seems to exclude
saturdays and sundays. I only need to exclude sundays. Can somebody help
me?

Thanks
Danielle




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
count work days excluding Fridays and Saturdays ??? Excel Dubai Excel Worksheet Functions 3 February 17th 07 11:38 AM
Due date excluding weekend days Jfilbig Excel Worksheet Functions 5 February 5th 06 06:45 PM
Excel - list days of a month, excluding Sundays John Excel Discussion (Misc queries) 1 January 3rd 06 04:43 PM
How do you count work days excluding weekends and holidays? Hausma Excel Discussion (Misc queries) 2 April 8th 05 07:39 PM
Count Days excluding Sundays KENNY Excel Worksheet Functions 3 November 11th 04 05:26 PM


All times are GMT +1. The time now is 12:43 PM.

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"