+ Reply to Thread
Results 1 to 4 of 4

Time and date Format formulas

  1. #1
    Registered User
    Join Date
    05-07-2015
    Location
    85711
    MS-Off Ver
    2007
    Posts
    2

    Question Time and date Format formulas

    I'm trying to create a formula that adds 1 hr to a "time and date format", when i do cell+1 it only add to the date. Is this type of formula possible?

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Time and date Format formulas

    Hello and welcome to the forum,

    Try cell+1/24

    (24 hours = 1.0 in Excel)
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  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,929

    Re: Time and date Format formulas

    Hi, welcome to the forum

    You need to understand this about dates...a date is just a number indicating how many days have passed since 1/1/1900, so 05/07/15 is actually 42131. excel formats it into something that we recognise as a date

    Likewise with time...time is a decimal of 1 (day), so for instance 06:00 AM is actualy just 0.25, 12 noon is .05 and 06:00 PM (18:00) is 0.75. Again, excel formats it to something we see as a time

    So to add 1 hour, probably the easiest way is =A1+1/24
    (you could also use teh TIME() function

    edit: GC got there before me
    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

  4. #4
    Registered User
    Join Date
    05-07-2015
    Location
    85711
    MS-Off Ver
    2007
    Posts
    2

    Re: Time and date Format formulas

    awesome perfect ty

+ 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. Convert a date/time format to a date format
    By LITTLETON in forum Excel General
    Replies: 2
    Last Post: 09-23-2013, 10:43 PM
  2. modify date time cell to an excel format date time
    By rileyp in forum Excel General
    Replies: 12
    Last Post: 03-24-2013, 08:39 PM
  3. Convert date and time in serial number format to text format
    By nda13112 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2013, 02:45 PM
  4. [SOLVED] How do I convert imported date/time data to date/time format?
    By andykent99 in forum Excel General
    Replies: 4
    Last Post: 01-03-2013, 07:47 AM
  5. Remove time from a date and time field? Format removes the displa.
    By oaoboc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-16-2005, 03:35 PM

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