LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default counting Sundays between two dates

Given A1= 1/5/05 and A2=1/20/05
and range C1:C5 is a list of holiday dates, what can I do to calculate the
duration of the two dates, minus sundays and the holidays?

I've gotten as far as

=A2-A1+1-(COUNTIF(C1:C5,"="&A1)-COUNTIF(C1:C5,""&A2))

A2-A1+1 calculates the duration between the two dates inclusive;
COUNTIF(C1:C5,"="&A1)-COUNTIF(C1:C5,""&A2) calculates the number of
holidays which fall within the dates

I have not figured out a way to count sundays.. anyone with any suggestions?

 
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
Counting calendar Days - not including Sundays KenCanuck Excel Discussion (Misc queries) 3 April 28th 09 05:46 PM
Number of sundays between two dates Carianne72 Excel Worksheet Functions 4 August 9th 06 02:58 AM
how do i sum day of the week without counting sats and sundays? Simon DR Excel Worksheet Functions 2 December 28th 05 02:20 PM
calculation sundays between two dates jeff thinkin Excel Discussion (Misc queries) 3 September 15th 05 02:07 AM
calculate how many sundays between two dates in excel jeff thinkin Excel Discussion (Misc queries) 2 September 14th 05 03:33 PM


All times are GMT +1. The time now is 06:25 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"