+ Reply to Thread
Results 1 to 4 of 4

Working days & Working days passed in a fortnight

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-15-2012
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2019
    Posts
    435

    Working days & Working days passed in a fortnight

    Hi,

    I need a formula to get No. of working days & Working days passed in a fortnight (Two fortnights indicated as 1 & 2).

    Excel file attached with necessary information.

    Pl. help.

    Thanks,

    Nagesh.

  2. #2
    Forum Contributor
    Join Date
    11-21-2013
    Location
    zimbabwe
    MS-Off Ver
    Excel 2003
    Posts
    125

    Re: Working days & Working days passed in a fortnight

    Working days past in the fortnight (for the month)
    Formula: copy to clipboard
    =IF(TODAY()>=DATE(YEAR(E2),MONTH(E2),LOOKUP(F2,{1,2},{1,16})),1+MEDIAN(DATE(YEAR(E2),MONTH(E2),LOOKUP(F2,{1,2},{1,16})),TODAY(),LOOKUP(F2,{1,2},DATE(YEAR(E2),MONTH(E2)+{0,1},{15,0})))-DATE(YEAR(E2),MONTH(E2),LOOKUP(F2,{1,2},{1,16}))-SUMPRODUCT((B$2:B$367<=MEDIAN(DATE(YEAR(E2),MONTH(E2),LOOKUP(F2,{1,2},{1,16})),TODAY(),LOOKUP(F2,{1,2},DATE(YEAR(E2),MONTH(E2)+{0,1},{15,0}))))*(B$2:B$367>=DATE(YEAR(E2),MONTH(E2),LOOKUP(F2,{1,2},{1,16})))))

    Total Working days in the fortnight (for the month)
    Formula: copy to clipboard
    =1+LOOKUP(F2,{1,2},DATE(YEAR(E2),MONTH(E2)+{0,1},{15,0}))-DATE(YEAR(E2),MONTH(E2),LOOKUP(F2,{1,2},{1,16}))-SUMPRODUCT((B$2:B$367<=LOOKUP(F2,{1,2},DATE(YEAR(E2),MONTH(E2)+{0,1},{15,0})))*(B$2:B$367>=DATE(YEAR(E2),MONTH(E2),LOOKUP(F2,{1,2},{1,16}))))

    Hope it helpfull

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,878

    Re: Working days & Working days passed in a fortnight

    Another approach ....

    G7: start date for 1st fortnight for given month

    =E2

    G8: start date for 2nd fortnight for given month

    =INDEX($A$2:$A$367,MATCH(1,(MONTH($E$2)=MONTH($A$2:$A$367))*($C$2:$C$367=2),0))

    Enter above with Ctrl+Shift+Enter

    Replace 1 & 2 with F2 as required

    in F7: working days in 1st fortnight

    =NETWORKDAYS.INTL($G$7,$G$8-1,,Holidays)

    in F8: working days in 2nd fortnight


    =NETWORKDAYS.INTL($G$8,EOMONTH($E$2,0),,$B$2:$B$66)


    F10: work days past (1st)

    =NETWORKDAYS.INTL($G$7,TODAY()-1,,Holidays)

    F11 (2nd)

    =NETWORKDAYS.INTL($G$8,TODAY()-1,,Holidays)

    Named range "Holidays" is b2:B66
    Last edited by JohnTopley; 11-15-2016 at 04:44 AM.

  4. #4
    Forum Contributor
    Join Date
    02-15-2012
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2019
    Posts
    435

    Re: Working days & Working days passed in a fortnight

    Thank you very much Soledad. Your solution is working fantastic.

    Thank you John Topley. While calculating as per your formula, NETWORKINGDAYS excluding Saturdays also, whereas we work on Saturday. Anyhow Thank you.

    Best regards,
    Nagesh.

+ 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] Count 6 working days (excluding Sunday, Holidays & half days)
    By eve_star1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2015, 08:00 AM
  2. [SOLVED] Working days passed & left in the month / week
    By nagesh.tvsr in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-13-2015, 07:56 AM
  3. Calculate total working days and excepted leave days
    By megaiooo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-21-2013, 09:29 AM
  4. Show days in a month dynamically + working days
    By vemix in forum Excel General
    Replies: 5
    Last Post: 12-28-2012, 07:54 AM
  5. Help Working Out Relative Dates and Non Working Days
    By leungf in forum Excel General
    Replies: 0
    Last Post: 08-07-2012, 12:06 PM
  6. Previous working days date (Mon-Fri working week).
    By intothewild in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2011, 01:00 PM
  7. Excel 2007 : Converting days to working days
    By poboy2214 in forum Excel General
    Replies: 5
    Last Post: 02-18-2010, 01:22 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