Hi,
I'm wondering how I could go about finding the number of a specific weekdays in a specific month. For example I would input Tuesdays in February 2005 and the result would be 4.
Thanks.
Hi,
I'm wondering how I could go about finding the number of a specific weekdays in a specific month. For example I would input Tuesdays in February 2005 and the result would be 4.
Thanks.
Try the following...
=SUMPRODUCT(--(TEXT(ROW(INDIRECT(A1&":"&DATE(YEAR(A1),MONTH(A1)+1,1)-1)),"dddd")=B1))
...where A1 contains the month and year of interest (in the format February 2005) and B1 contains the weekday of interest (in the format Tuesday).
Hope this helps!
Originally Posted by pjonathan
Last edited by Domenic; 02-05-2005 at 06:58 PM.
Thanks alot for your help, it works perfectly.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks