Results 1 to 3 of 3

Subtract time in cells more than 24 hours

Threaded View

  1. #1
    Registered User
    Join Date
    03-16-2011
    Location
    Qatar
    MS-Off Ver
    Excel 2003
    Posts
    2

    Subtract time in cells more than 24 hours

    I have time values in cell A1 as an integer(number), and I need to subtract this by 06 hours in cell B1. The following formula works fine for all times above 0600hrs in A1.

    =IF(A1<1000,TIMEVALUE(LEFT(A1,1)&":"&RIGHT(A1,2)),TIMEVALUE(LEFT(A1,2)&":"&RIGHT(A1,2)))-TIME(6,0,0)

    However, am not able to retrieve results if A1 < 06:00:00. Please refer screenshot.

    Any help would be appreciated.
    Attached Images Attached Images
    Last edited by budakkan; 03-16-2011 at 03:10 AM.

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