Results 1 to 8 of 8

[Question] Calculating time difference of different/same dates

Threaded View

  1. #1
    Registered User
    Join Date
    06-17-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    31

    Question [Question] Calculating time difference of different/same dates

    Hi everyone,


    So while surfing the net, I came upon a VBA code:
    Private Sub CommandButton1_Click()
    ActiveCell.Value = Format(Now(), "dd-mmm-yy h:mmAM/PM")
    End Sub
    Basically, what this does it to input the current date and time on the active cell (which I use it as a 'push-button-macro').
    Now, what I have a two timings of different/same date which I wanted to find a differences of e.g.
    08/06/2006 04:33

    12/06/2006 01:05

    Time difference is 92:32 [hh:mm]

    Credits to: http://www.excelforum.com/excel-form...ifference.html
    I know that I can use the B1-A1 formula but, my start time/date cells are actually a bunch of cells merge together and if I were to follow the formula, I would get a #VALUE! even when I changed it into the time format...

    Please help!

    EDIT:
    Example, one of my start time column would be cell ET67 to FR86 merged into one. So when I select the cell to imput the data, the current date and time would be inside the merged cell of ET67 to FR86. For some reason, I don't think that the B1-A1 formula is able to calculate merged cells...
    Last edited by MyOnion; 07-15-2013 at 01:57 AM. Reason: Additional Information
    Please make it easy for me to understand! Limit?!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Calculating time difference between two dates
    By st_judeu@yahoo.com in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-16-2010, 03:08 AM
  2. Calculating the difference between dates
    By matt20687 in forum Excel General
    Replies: 4
    Last Post: 07-12-2010, 05:05 PM
  3. Replies: 1
    Last Post: 07-12-2010, 02:41 PM
  4. Calculating the difference in dates
    By ChrisVersion2 in forum Excel General
    Replies: 3
    Last Post: 11-17-2007, 03:48 PM
  5. [SOLVED] Calculating the difference between to dates
    By TheRook in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2006, 07:15 AM

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