+ Reply to Thread
Results 1 to 3 of 3

Subtracting cells with date and time

  1. #1
    Forum Contributor
    Join Date
    04-18-2013
    Location
    utah
    MS-Off Ver
    2010
    Posts
    668

    Subtracting cells with date and time

    Hi I have two cells each with date and time I want to find out the difference in hours between the two


    For example one cell has 7/22 0630 and the other cell has now()

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Subtracting cells with date and time

    In order to calculate the difference between two dates and time you need the data to compliant with format that Excel would understand. The example you have provided does not represent this requirement.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Subtracting cells with date and time

    It might be easier to offer suggestions if you provided better examples of the data you are working with? As mentioned above, "7/22 0630" - if thats exactly what your data looks like - is not a date/time value
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Subtracting two cells that have time and date
    By phob in forum Excel General
    Replies: 3
    Last Post: 03-06-2012, 10:52 PM
  2. Subtracting Date Time
    By steph67 in forum Excel General
    Replies: 2
    Last Post: 04-05-2011, 07:23 AM
  3. Subtracting Date and Time
    By Kimmyberly26 in forum Excel General
    Replies: 3
    Last Post: 08-11-2009, 10:20 AM
  4. Subtracting date and time
    By hanberry in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-24-2007, 04:27 AM
  5. Subtracting Cells formatted with Date AND Time to get hours?
    By mcr1 - ExcelForums.com in forum Excel General
    Replies: 1
    Last Post: 07-05-2005, 05:05 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