+ Reply to Thread
Results 1 to 3 of 3

Above 24 Hrs time difference

  1. #1
    Registered User
    Join Date
    08-12-2011
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    2

    Smile Above 24 Hrs time difference

    This is my first post so forgive me for any mistake.I have created formula below to calculate the time difference which is above 24 Hrs.It works to some extend but not accurate.So please help me out (I cant use the date/time format in my worksheet).Any VBA code to solve this is also welcome(I have attach a sample for this).I am using excel 2003/2007 both.
    Thanks

    =IF(B1<=D1,IF(C1<=A1,IF(D1<B1,D1+1,D1)-B1,IF(D1<B1,D1+1,D1)-B1+DATEDIF(A1,C1,"d")*1),IF(IF(D1<B1,D1+1,D1)-B1<="24:00",IF(D1<B1,D1+1,D1)-B1,IF(C1<=A1,IF(D1<B1,D1+1,D1)-B1,IF(D1<B1,D1+1,D1)-B1+DATEDIF(A1,C1,"d")*1)))
    Attached Files Attached Files

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

    Re: Above 24 Hrs time difference

    I don't think you need that level of complexity.....try this version

    =D1+C1-B1-A1
    Audere est facere

  3. #3
    Registered User
    Join Date
    08-12-2011
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Above 24 Hrs time difference

    Thank you very much for solving this,actually you save a lot of my time. thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1