+ Reply to Thread
Results 1 to 5 of 5

Hour equation with long date/time

  1. #1
    Registered User
    Join Date
    04-14-2008
    Posts
    5

    Hour equation with long date/time

    I need an equation to calculate hour intervals after a specific date/time.

    For example, if the date is listed as "4/17/08 9:00AM" I need to calculate 24, 32, 40, 48, 56, etc hours after the date/time listed.

    Typically I need to calculate short dates (i.e., 4/17/08 in cell B2) + 7days and can just type =B2+7. This is not working for the long date.

    Any help would be appreciated. Thank you.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =B2+TIME(24,0,0) for 24 hours
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-14-2008
    Posts
    5
    Thanks for the quick reply (and very cute baby picture for your icon), but it didnt work

    It is giving me an error message #VALUE!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I noticed when I copy/pasted your time in my cell to check the formula that you don't have a space before the PM...I thought you typed it wrong here, but you must have a space there for the cell to be a true time value.

  5. #5
    Registered User
    Join Date
    04-14-2008
    Posts
    5
    Thanks. Sometimes it is the simple things that make a big difference and drive you crazy!

+ Reply to Thread

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