W
wcmash
Can anyone help I need to know how to find out if a certain weekday fall
between 2 dates.
between 2 dates.

Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.


Norman Harker said:Hi wcmash!
Here's an excerpt from Chip Pearson's page on Weekday calculations:
Extract>>>
If you need to return the number of Monday's (or any other day) that
occur within an interval between two dates, use the following Array
Formula:
=SUM(IF(WEEKDAY(A2-1+ROW(INDIRECT("1:"&TRUNC(B2-A2)+1)))=C2,1,0))
This formula assumes the following:
A2 contains the beginning date of the interval
B2 contains the ending date of the interval
C2 contains the day-of-week number (1=Sunday, 2=Monday,...,7=Saturday)
<<End Extract
Note especially that this is an array formula entered by pressing and
holding down Ctrl and Shift and then pressing Enter.
For more Weekday formulas see:
http://www.cpearson.com/excel/DateTimeWS.htm
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
weekdaywcmash > said:Can anyone help I need to know how to find out if a certain

Frank Kabel said:Hi
do you also have specific business hours. that is count only houer
between 08:00 and 17:00 for a weekday??
Norman Harker said:Hi Frank!
Looks like you were wise to ask for more details
Think I'll wait for the answers to these follow throughs.

Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.