Closed Thread
Results 1 to 12 of 12

Formula to calculate date excluding weekends

  1. #1
    Registered User
    Join Date
    11-17-2010
    Location
    India
    MS-Off Ver
    Microsoft Office Excel 2003
    Posts
    83

    Formula to calculate date excluding weekends

    Hi Friends,



    Can any one kindly provide me formula to calculate the date excluding saturday and sundays.



    For example: Start date = 29/Nov/2010 in Col A

    And if i give in col B as 7(i.e., Adding 7 days from the start date)

    In col c i need the result as 8/Dec/2010. Excluding the saturday and sundays.



    Kindly help.
    Last edited by Saky; 11-29-2010 at 11:22 AM.

  2. #2
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Formula to calculate date excluding weekends

    =WORKDAY("29/11/2010",7)

    you will have to enable analysis toolpack in addins for this to work!
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


  3. #3
    Registered User
    Join Date
    11-17-2010
    Location
    India
    MS-Off Ver
    Microsoft Office Excel 2003
    Posts
    83

    Re: Formula to calculate date excluding weekends

    Friend thanks for your quick revert!!

    The coding which you have provided will calculate the start date from 29/11/2010+ 7 working days.

    But my case is i cannot mention the start date in advance, the col A and B will be blank initially. So whenever i enter the date and no of days to be added in col A and B, then i need to get the result in column C.

    Is this is possible can you kindly help me.

  4. #4
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Formula to calculate date excluding weekends

    =workday(a1,b1) in c1!

  5. #5
    Registered User
    Join Date
    11-17-2010
    Location
    India
    MS-Off Ver
    Microsoft Office Excel 2003
    Posts
    83

    Re: Formula to calculate date excluding weekends

    Friend, This code is not working for me. Column C displays a error like #VALUE.

    Can you help me to sort this out.

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

    Re: Formula to calculate date excluding weekends

    WORKDAY is an Analysis ToolPak function. You may need to enable that add-in

    Tools > add-ins > tick "Analysis ToolPak"
    Audere est facere

  7. #7
    Registered User
    Join Date
    11-17-2010
    Location
    India
    MS-Off Ver
    Microsoft Office Excel 2003
    Posts
    83

    Re: Formula to calculate date excluding weekends

    Quote Originally Posted by daddylonglegs View Post
    WORKDAY is an Analysis ToolPak function. You may need to enable that add-in

    Tools > add-ins > tick "Analysis ToolPak"
    Friend, I have done it , but still its not working..

    I have attached my excel..Can you kindly check and guide me where am i going wrong
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Formula to calculate date excluding weekends

    I'm afraid you took me too literally

    remove "in cell c1" from the formula!!!!!

    Leaving just

    =WORKDAY(A1,B1)

  9. #9
    Registered User
    Join Date
    11-17-2010
    Location
    India
    MS-Off Ver
    Microsoft Office Excel 2003
    Posts
    83

    Re: Formula to calculate date excluding weekends

    I am really sorry to trouble you Darren!!!! Now it works fine.....

    Thanks for your patience and help...

  10. #10
    Registered User
    Join Date
    11-18-2015
    Location
    Abu Dhabi
    MS-Off Ver
    MS Office 2013
    Posts
    2

    Re: Formula to calculate date excluding weekends

    Can we edit the worday formula , as we are having off on Fridays not on sat and sun (working in UAE)
    Last edited by TIBINHERE; 11-18-2015 at 02:23 AM.

  11. #11
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Formula to calculate date excluding weekends

    TIBINHERE welcome to the forum.

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  12. #12
    Registered User
    Join Date
    11-18-2015
    Location
    Abu Dhabi
    MS-Off Ver
    MS Office 2013
    Posts
    2

    Re: Formula to calculate date excluding weekends

    Can we edit the worday formula , as we are having off on Fridays not on sat and sun (working in UAE)

Closed Thread

Thread Information

Users Browsing this Thread

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

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