Hi!
After seeing Bernie's post I'm wondering if I understand the question!
To count specific weekdays between 2 dates (inclusive):
Where Monday = weekday 1 and Sunday = weekday 7
Start date in A1
End date in B1
=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&B1)),2)=weekday_numbe r))
To count more than 1 weekday like Mondays and Tuesdays:
=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&B1)),2)={1,2}))
Biff
"girlfriend in school" wrote
in message ...
I need to count the number of days between a start date and end date and
the
questions about this I found here don't seem to help (boggle me!) I need
a
universal formula that will cover variable days which are listed in a
separate column:
G (rows) = names of days; J (rows) = start date; K (rows) = end date. On
top of this, I am sometimes having to count more than one day (up to
three)
within a week (e.g., Mondays AND Fridays) which I'd be willing to put in
separate columns (i.e., columns G,H,I) if needed, but if only one column
has
a day listed, the formula needs to ignore the empty columns.
A knotty problem?
|