+ Reply to Thread
Results 1 to 4 of 4

calculation sundays between two dates

  1. #1
    jeff thinkin
    Guest

    calculation sundays between two dates

    cell A1 has start date (eg) 12/08/05
    cell A2 has end date (eg) 25/08/05

    and cell A3 has the formular that displays a the number of sundays occured
    (in this example the result is 2)

  2. #2
    Valued Forum Contributor
    Join Date
    06-30-2005
    Location
    Verwood, Dorset, England
    MS-Off Ver
    Excel 2000
    Posts
    479
    Quote Originally Posted by jeff thinkin
    cell A1 has start date (eg) 12/08/05
    cell A2 has end date (eg) 25/08/05

    and cell A3 has the formular that displays a the number of sundays occured
    (in this example the result is 2)
    Hi jeff

    Try this >
    =SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A14&":"&B14)))=1))

    Where the red 1 indicates a Sunday, 2 would be Monday etc
    Paul

  3. #3
    Niek Otten
    Guest

    Re: calculation sundays between two dates

    You had several answers already to your previous post

    --
    Kind regards,

    Niek Otten

    Microsoft MVP - Excel

    "jeff thinkin" <[email protected]> wrote in message
    news:[email protected]...
    > cell A1 has start date (eg) 12/08/05
    > cell A2 has end date (eg) 25/08/05
    >
    > and cell A3 has the formular that displays a the number of sundays occured
    > (in this example the result is 2)




  4. #4
    Ron Rosenfeld
    Guest

    Re: calculation sundays between two dates

    On Wed, 14 Sep 2005 08:52:06 -0700, jeff thinkin
    <[email protected]> wrote:

    >cell A1 has start date (eg) 12/08/05
    >cell A2 has end date (eg) 25/08/05
    >
    >and cell A3 has the formular that displays a the number of sundays occured
    >(in this example the result is 2)



    Try:

    =INT((A2-WEEKDAY(A2)-A1+8)/7)
    --ron

+ 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