+ Reply to Thread
Results 1 to 3 of 3

VBA or fuctions for calculating workingdays of current month between 2 dates

  1. #1
    Registered User
    Join Date
    03-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    39

    VBA or fuctions for calculating workingdays of current month between 2 dates

    Hello,

    I know that with the networkdays I can figure out the number of working days between 2 dates.

    I know need something though, that calculates the number of working days in the current month with different start dates. e.g.

    e.g. i would like to know how many working days we have in October between below dates:
    19.06.2018 15.11.2018
    03.09.2018 18.10.2018
    08.10.2018 30.11.2018
    01.08.2018 15.11.2018

    Can anyone help me with that? VBA or functions are fine.

    Thank you!

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: VBA or fuctions for calculating workingdays of current month between 2 dates

    You can use the function NETWORKDAYS

    =NETWORKDAYS(StartDate,EndDate,[Holidays])

  3. #3
    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
    44,002

    Re: VBA or fuctions for calculating workingdays of current month between 2 dates

    ... like this:

    =NETWORKDAYS(MAX($D$1,A2),MIN(EOMONTH($D$1,0),B2))

    see sheet. You may need ; instead of , in the formula.
    Attached Files Attached Files
    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

+ 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. Calculating Yearly Average by current month
    By JOECNT in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-16-2018, 10:24 AM
  2. [SOLVED] calculating Dynamic current month sales and previous month sales
    By anilpatni1234 in forum Excel General
    Replies: 4
    Last Post: 07-29-2018, 11:22 PM
  3. calculating YTD values dynamically based on current month
    By skolluru78 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-23-2016, 10:02 AM
  4. Replies: 1
    Last Post: 04-29-2016, 01:28 PM
  5. Replies: 1
    Last Post: 03-05-2015, 05:17 PM
  6. Calculating the prior month given the current month
    By AnthonyWB in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-15-2010, 04:40 PM
  7. Calculating dates based on the current date
    By DavidW in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2006, 08:50 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