+ Reply to Thread
Results 1 to 20 of 20

Need to get a formula to display only number of workdays

  1. #1
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Need to get a formula to display only number of workdays

    Hi i have a formula that looks at days occupied in a month, how would I adjust this to just display the amount of workdays between 2 dates.

    Key

    F = Start Date

    G = End Date

    BB = Month and Year in Jun-2014 format

    =IF($F4="","",MAX(0,MIN($G4,BB$3+31-DAY(BB$3+31))-MAX($F4,BB$3)+1))

    Thanks in advance

    JD

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need to get a formula to display only number of workdays

    Hi

    Your request is not clear(at least for me!)

    A small sample workbook with the expected result will be useful.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: Need to get a formula to display only number of workdays

    Why that BB3 is there?

    just
    PHP Code: 
    =NETWORKDAYS(F4,G4
    wont be enough?
    Please make the Post as solved, when you get your answer & Click * if you like my suggestion

  4. #4
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Need to get a formula to display only number of workdays

    Hi guys, here is a sample workbook.

    The start and end dates can be anywhere between the FY start and end dates

    Cheers

    JD
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: Need to get a formula to display only number of workdays

    give the intended result also pls in the sample workbook

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need to get a formula to display only number of workdays

    NETWORKDAYS function gives a result of 261, that as i understand is not the expected result...

    Which is the expected result in your example.

  7. #7
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Need to get a formula to display only number of workdays

    Here you go

    JD
    Attached Files Attached Files

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need to get a formula to display only number of workdays

    Good morning.

    Here you go. In D5 and copy across.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Need to get a formula to display only number of workdays

    Cheers Fotis, can you you quickly look at the sheet and put 07/07/14 in the year end (b1) the figure in D5 should read 5 but still shows the full 23 workdays.

    Cheers

    JD

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need to get a formula to display only number of workdays

    Ok.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Need to get a formula to display only number of workdays

    Fantastic solution, much appreciated.

    Cheers

    JD

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need to get a formula to display only number of workdays

    You are welcome and thanks for the feedback.

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED,as per Forum Rule #9. Thank you.

  13. #13
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Need to get a formula to display only number of workdays

    There you go pal.

    JD
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Need to get a formula to display only number of workdays

    Sorry Wrong Workbook

    JD
    Attached Files Attached Files

  15. #15
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need to get a formula to display only number of workdays

    Morning John.

    This looks that do the job. Doesn't it?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  16. #16
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Need to get a formula to display only number of workdays

    Hi Fotis eveything seems to work fine until you come to enter data for march april may etc, instead of calculating the actual amount required it just puts the full amount of workdays within that month, please see attached sheet with problem displayed.

    Cheers

    JD
    Attached Files Attached Files

  17. #17
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Need to get a formula to display only number of workdays

    Sorry for some reason it has posted twice.

    JD
    Attached Files Attached Files

  18. #18
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need to get a formula to display only number of workdays

    Ok John. Let's forget the multiply IF(AND...as we have to use many of them to get our results.

    I was working on that when i saw your last reply. I ended up with this formula that testing many times looks that works pretty enough!!

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  19. #19
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Need to get a formula to display only number of workdays

    Cheers Fotis, love the simplicity of the new formula It works really well.

    Thnaks for your help with this much appreciated.

    Cheers

    JD

  20. #20
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need to get a formula to display only number of workdays



    ..............................

+ 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. Max number over a set amount of workdays
    By mk3ll00 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-05-2013, 01:17 AM
  2. Can the Function WORKDAYS display both Date and Time
    By DonkeyOte in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-23-2010, 07:41 PM
  3. Number of Workdays
    By aresquare1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-15-2008, 10:25 AM
  4. workdays additions and cell number display
    By XLS-EXCEL in forum Excel General
    Replies: 7
    Last Post: 09-07-2007, 08:05 AM
  5. Number of workdays in a month
    By Nigel Bennett in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2005, 08:06 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