Results 1 to 6 of 6

Thread: How to calculate two dates in Excel

  1. #1
    Join Date
    Jan 2009
    Posts
    110

    How to calculate two dates in Excel

    Hi friends,

    I am facing an issue with Excel.I need to add two dates in Excel can anyone help me out with this following are my Details of my Spreadsheet.

    1. Start Date is at B1.
    2. End date is at C1.
    3. I need to have the calculation at D1.



    Thanks in Advance

    Intel Dual core 2.66 Ghz
    915 MSI Motherboard with Intel chipset
    512 mb RAM
    80gb HDD

  2. #2
    Join Date
    Dec 2008
    Posts
    123

    Re: How to calculate two dates in Excel

    Sure i will help you out with this issue may i know due you want to Exclude Weekends or not

  3. #3
    Join Date
    Jan 2009
    Posts
    110

    Re: How to calculate two dates in Excel

    Yes i need to exclude Saturday and Sunday from my calculation.

    Intel Dual core 2.66 Ghz
    915 MSI Motherboard with Intel chipset
    512 mb RAM
    80gb HDD

  4. #4
    Join Date
    Dec 2008
    Posts
    164

    Re: How to calculate two dates in Excel

    Try to type copy the following in the formula bar.

    =N((NETWORKDAYS(b1,c2)-(WEEKDAY(b1,2)<6)-(WEEKDAY(c2,2)<6))*9
    +(WEEKDAY(b1,2)<6)*(NOT(ISNUMBER(MATCH(INT(b1),holidays,0))))*(MIN(MAX(0,TIME(17,30,0)-MOD(A1,1)),TIME(8,30,0)))*24
    +(WEEKDAY(c2,2)<6)*(NOT(ISNUMBER(MATCH(INT(c2),holidays,0))))*(MIN(MAX(MOD(A2,1)-TIME(8,30,0),0),TIME(8,30,0)))*24
    -SUMPRODUCT(--(WEEKDAY(holidays,2)<=5),--(ISNUMBER(MATCH(holidays,ROW(INDIRECT(INT(A1)+1&":"&INT(A2)-1)),0))))*9)

  5. #5
    Join Date
    Jan 2009
    Posts
    110

    Re: How to calculate two dates in Excel

    Thanks for you reply i try to copy paste the following but it didn't worked out for me any other solution please.


    Intel Dual core 2.66 Ghz
    915 MSI Motherboard with Intel chipset
    512 mb RAM
    80gb HDD

  6. #6
    Join Date
    Dec 2008
    Posts
    123

    Re: How to calculate two dates in Excel

    Try to use the NETWORKDAYS and MOD functions ia m sure it will work for you.Following are the formula:
    =NETWORKDAYS(b2,c2)-1-MOD(b2,1)+MOD(c2,1)

    And check this link too.

    How to calculate duration in days

Similar Threads

  1. How to Calculate Expiration Dates in Excel
    By Kungfu Pandey in forum Windows Software
    Replies: 1
    Last Post: 07-01-2012, 04:22 PM
  2. importing dates from ms excel into ms project
    By tazor in forum Microsoft Project
    Replies: 2
    Last Post: 14-12-2011, 10:20 PM
  3. Replies: 5
    Last Post: 16-03-2011, 06:22 PM
  4. Auto calculate the amount of stays according to selected dates
    By Macario in forum Software Development
    Replies: 4
    Last Post: 17-11-2009, 10:13 PM
  5. Checking dates in Excel
    By microam_i in forum Windows Software
    Replies: 3
    Last Post: 02-05-2009, 10:15 PM

Tags for this Thread

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
  •  
Page generated in 1,713,936,556.07466 seconds with 17 queries