+ Reply to Thread
Results 1 to 13 of 13

days calculation between two date : Formula Required.

  1. #1
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    days calculation between two date : Formula Required.

    If Invoice date is : 17.06.2007 & payment due date is 02.08.2007

    In above please confirm formula of days calculation between above two date.

    Regards : avk

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223
    anybody confirm per return.

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    If your invoice date is in A1, and your payment date in B1, then in C1

    =B1-A1 format the cell to General, to include the start date as well, then

    =B1-A1+1
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223
    Sorry, the result not show. AFter input of date a1 (17.06.2007) & b1 (02.08.2007) & in c1 : write formula =B1-A1+1 (even c1 cell format into general.
    The Error mark show : #value!

    Please help.

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try date input as 17/06/2007 and 02/08/2007

  6. #6
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223
    Sorry the result not show some problem please refer attach tmp.doc file.
    Attached Files Attached Files

  7. #7
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Your date in the first cell is formatted to the left, this usually indicated that the cell is formatted to text and not General, Number or Date.

    Try a new sheet and enter the dates again with "/" between the numbers.

  8. #8
    Registered User
    Join Date
    01-19-2007
    Posts
    30

    Any way to calculate working days between 2 dates?

    I need to do the same sort of thing, but want to calculate how many working days are left (minus weekends). Can this be done?

    Many thanks!

  9. #9
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    What you need is the NETWORKDAYS function, but to use it you will need to install the Analysis Tool Pak

    http://office.microsoft.com/en-gb/ex...277241033.aspx

    =NETWORKDAYS(StartDate,EndDate,Holidays)

    Then with your start date in A1 and your end date in B1 and list any holidays - Xmas, Public Holidays

    =NETWORKDAYS(A1,B1,Holidays) The calculation does not include the last day, to correct this add 1 to the result

    =NETWORKDAYS(A1,B1,Holidays)+1

  10. #10
    Registered User
    Join Date
    01-19-2007
    Posts
    30
    Thanks, this has worked to an extent, BUT between the dates 25th July 07 and 10th August 07, I get 14 days, there should only be 12 working days (2 weekends in the way)?

    I have put both dates to date format 14-Mar-98 and the formula reads =NETWORKDAYS(D41,H41)+1

    What am I doing wrong?

  11. #11
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    In fact NETWORKDAYS counts both the start date and the end date so

    =NETWORKDAYS(D41,H41) where D41 is 25th July 2007 and H41 10th August 2007

    should return 13

    If you don't want to count the start date use

    =NETWORKDAYS(D41,H41)-1

    I'm assuming D41 and H41 will always be workdays.....

    The format of the dates makes no difference as long as they are recognisable dates

  12. #12
    Registered User
    Join Date
    01-19-2007
    Posts
    30
    Excellent, thanks!

  13. #13
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Sorry if I confused you he's right

+ 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