+ Reply to Thread
Results 1 to 3 of 3

Days in a Month

  1. #1
    Registered User
    Join Date
    02-05-2005
    Posts
    4

    Days in a Month

    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.

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    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!

    Quote Originally Posted by pjonathan
    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.
    Last edited by Domenic; 02-05-2005 at 06:58 PM.

  3. #3
    Registered User
    Join Date
    02-05-2005
    Posts
    4
    Thanks alot for your help, it works perfectly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1