ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   calculate how many sundays between two dates in excel (https://www.excelbanter.com/excel-discussion-misc-queries/45336-calculate-how-many-sundays-between-two-dates-excel.html)

jeff thinkin

calculate how many sundays between two dates in excel
 
a formular to give the number of times sundays occurs between a starting date
and a finishing date...

Niek Otten

http://www.cpearson.com/excel/DateTimeWS.htm

Somewhat beneath the middle of the page

--
Kind regards,

Niek Otten

Microsoft MVP - Excel

"jeff thinkin" <jeff wrote in message
...
a formular to give the number of times sundays occurs between a starting
date
and a finishing date...




Don Guillett

try this
=SUMPRODUCT((D2:D22=E1)*(D2:D22<E2)*(WEEKDAY(D2:D 22)=1))

--
Don Guillett
SalesAid Software

"jeff thinkin" <jeff
wrote in message
...
a formular to give the number of times sundays occurs between a starting

date
and a finishing date...





All times are GMT +1. The time now is 06:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com