+ Reply to Thread
Results 1 to 4 of 4

Calculating numbers of weekends bettwene two dates (with time)

  1. #1
    Registered User
    Join Date
    09-03-2019
    Location
    Slovenia
    MS-Off Ver
    2007
    Posts
    1

    Calculating numbers of weekends bettwene two dates (with time)

    Hello,

    i need to calculate number of weekends bettwene two dates, but i have a problem. If i calculate dates with added time, formula dosen't work. I want to get 1 but i get 0.

    Thanks

    Without hour.jpg
    With hour.jpg

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Calculating numbers of weekends bettwene two dates (with time)

    You have attached an image. That's not very easy to work with. Also... I'm lazy. I have to re-type your information before I can begin to address your problem. That puts me off completely. Not only that, but (depending on their choice of browser) many other members cannot even see the image.

    So. Do yourself a favour and please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough). However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever).

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Make sure confidential info is removed first!!!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Calculating numbers of weekends bettwene two dates (with time)

    You can use function INT to remove time of date-time value.

  4. #4
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: Calculating numbers of weekends bettwene two dates (with time)

    Try this:

    (D2-C2+1)-NETWORKDAYS.INTL(C2,D2,1,0)

    C2= Start Date
    D2= End Date

+ 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. [SOLVED] Calculating time-frame (days) between 2 dates excluding weekends/holidays
    By Mparrish6001 in forum Excel General
    Replies: 6
    Last Post: 05-10-2018, 09:20 AM
  2. Replies: 0
    Last Post: 10-31-2014, 10:32 AM
  3. Replies: 6
    Last Post: 06-21-2012, 09:59 AM
  4. Replies: 10
    Last Post: 11-29-2011, 08:21 PM
  5. Calculating Due Dates w/o weekends
    By danjahross in forum Excel General
    Replies: 2
    Last Post: 03-18-2011, 01:08 PM
  6. Calculating Dates to exclude weekends
    By logan3975 in forum Excel General
    Replies: 2
    Last Post: 01-14-2010, 11:16 AM
  7. exclude weekends while calculating the difference between dates
    By Buddy7 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-23-2009, 05:24 PM

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