+ Reply to Thread
Results 1 to 3 of 3

How to calculate days of the week in a given time frame

  1. #1
    Registered User
    Join Date
    10-28-2009
    Location
    San Jose, CA, USA
    MS-Off Ver
    Excel 2003
    Posts
    17

    How to calculate days of the week in a given time frame

    Hi,
    I'm trying to count how many Sundays, Mondays, Tuesdays, etc. are in a certain time frame. I would like to enter the time frame as a start date and end date.

    For example, how many Sundays, Mondays, Tuesdays, etc. are in the time frame of 1/2/11 - 1/26/11? The number of days would appear in a table below the time frame input.

    See my attachment for an example.

    Any ideas would be awesome!

    Thanks.
    -Franklin
    Attached Files Attached Files
    Last edited by fsoares22; 03-17-2011 at 12:22 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to calculate days of the week in a given time frame

    Try this in I6 dragged down

    =SUMPRODUCT(--($C$3:$C$367>=$H$3),--($C$3:$C$367<=$I$3),--($D$3:$D$367=$H6))

    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    10-28-2009
    Location
    San Jose, CA, USA
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: How to calculate days of the week in a given time frame

    Works like a charm! Thanks!

+ 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