+ Reply to Thread
Results 1 to 7 of 7

To calculate number of days including start date

  1. #1
    Registered User
    Join Date
    02-28-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question To calculate number of days including start date

    Hi,

    I want to calculate number of days between two dates, including start date also.
    For Example
    A B C (No.of days)
    23/03/2012 30/03/2012 8
    28/03/2012 28/03/2012 1

    I dont want to use networkdays function, since it excludes weekends. (I want to include saturdays & sundays also)
    right now I am using =(B2-A2)+1

    Is it any other formula available.

  2. #2
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: To calculate number of days including start date

    Why would you need another formula? This performs exactly as you want it. You could put it another way: =B2-A2+1
    If I helped, please don't forget to add to my reputation. (click on the star below the post)

    If the problem is solved, please: Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.

    Failure is not falling down but refusing to get up.

  3. #3
    Registered User
    Join Date
    02-28-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: To calculate number of days including start date

    Yeah it gives me the required result, but I just want to know whether any other function available in excel to calculate the same.

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

    Re: To calculate number of days including start date

    I'd stay with your current formula but DATEDIF would also give you the same result and might have some advantages (if you start and end dates contain times, for instance)

    =DATEDIF(A2,B2,"d")+1
    Audere est facere

  5. #5
    Registered User
    Join Date
    02-28-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: To calculate number of days including start date

    Hi Thanks a lot. It was very useful. Because I have faced same issue. My date had time in that and manually i have changed the decimal values to zero to get the whole number.

  6. #6
    Registered User
    Join Date
    05-10-2016
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    2

    Re: To calculate number of days including start date

    Hi, what if I want to count the number of saturdays between 2 dates and include the saturday if it's either the start date or end date or both.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: To calculate number of days including start date

    cloudcl, 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.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to 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