+ Reply to Thread
Results 1 to 7 of 7

How many Wednesdays between 2 days

  1. #1
    Registered User
    Join Date
    12-17-2014
    Location
    Limassol, Cyprus
    MS-Off Ver
    Ms office 2013
    Posts
    22

    How many Wednesdays between 2 days

    Hello,

    I want to know how many Wednesdays, Saturdays and Sundays are between 2 days.

    Can anyone help me with this?

    Thanks

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: How many Wednesdays between 2 days

    Hi
    Just providing you a fancy solution...
    There may be much better solution but check if it helps!!
    Attached Files Attached Files
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: How many Wednesdays between 2 days

    Okay try this.. ( untested Though )
    Start Date = A1
    End Date = A2
    B1 = (A2-A1) - Sum(Networkdays.Intl(A1, A2, {1,14}))
    OR
    B1 = (A2-A1) - (Networkdays.Intl(A1, A2, 14) + Networkdays.Intl(A1, A2, 1))
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  4. #4
    Forum Contributor
    Join Date
    10-04-2014
    Location
    Europe
    MS-Off Ver
    2007
    Posts
    107

    Re: How many Wednesdays between 2 days

    Hi
    I found this online...
    Where start date = A1 and end date = A2

    =INT((WEEKDAY($A$1-2)-$A$1+$A2)/7)

    1...Sunday
    2...Monday
    3...Tuesday
    4...Wednesday
    5...Thursday
    6...Friday
    7...Saturday

  5. #5
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: How many Wednesdays between 2 days

    for adding Wed,Sat & Sun
    =SUMPRODUCT(--(WEEKDAY(A1+ROW(INDIRECT("1:"&A2-A1)))={1,7,4}))

    where a1 is start date & a2 end date

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: How many Wednesdays between 2 days

    Quote Originally Posted by stavros21 View Post
    I want to know how many Wednesdays, Saturdays and Sundays
    I'm not sure if you mean separately or a total of all 3 - NETWORKDAYS.INTL can actually be customised to count any combination of days, e.g. for the total Wednesdays, Saturdays and Sundays

    =NETWORKDAYS.INTL(A2,B2,"1101100")

    The zeroes in "1101100" indicate days to be counted, 1s are days to be excluded - the string starts with Monday, so to count Wednesdays alone

    =NETWORKDAYS.INTL(A2,B2,"1101111")
    Audere est facere

  7. #7
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: How many Wednesdays between 2 days

    Nice.. Sir Long..
    learnt a new thing today.

    You are brilliant.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. 2nd and 4th Wednesdays formula?
    By lawdoggy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  2. [SOLVED] 2nd and 4th Wednesdays formula?
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 09-06-2005, 07:05 AM
  3. 2nd and 4th Wednesdays formula?
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 07:05 AM
  4. 2nd and 4th Wednesdays formula?
    By lawdoggy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. [SOLVED] 2nd and 4th Wednesdays formula?
    By lawdoggy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM

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