+ Reply to Thread
Results 1 to 7 of 7

Adding time (more than 24 hours) to date time stamp

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Unhappy Adding time (more than 24 hours) to date time stamp

    Hello everyone !

    I want to add hours to a date-time cell to get result in date-time.

    Format of cell A1 is d/m/yy h:mm AM/PM
    Format of cell A2 is General
    Format of cell A3 is d/m/yy h:mm AM/PM

    I want to add A2 (number of hours) to A1 to give A3.
    The formula I used is A3=A1+Time(A2,0,0)
    The formula works perfectly fine when A2 is less than 24, but when A2 is more than 24, the date doesn't get changed.

    Please help, can I use someother formula or change format of A2 !!

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Adding time (more than 24 hours) to date time stamp

    Try this

    =A1+INT(A2/24)+TIME(A2,0,0)

  3. #3
    Registered User
    Join Date
    05-30-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Adding time (more than 24 hours) to date time stamp

    Thanks a ton Bob ! It worked like a charm !!

  4. #4
    Registered User
    Join Date
    01-04-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Adding time (more than 24 hours) to date time stamp

    how can i do this with 8 hours a day instead of 24 hours of day..

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,616

    Re: Adding time (more than 24 hours) to date time stamp

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

  6. #6
    Registered User
    Join Date
    07-23-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Adding time (more than 24 hours) to date time stamp

    I want gantt chart in hour & date for example I have travel from origin point to destination will take 4 days , 1st day I will reached B point 9:00hrs and next day i will reached at C point 14:00 which was planned. but I unable to make gantt chart. can you help me provide the such type gntt chart

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,616

    Re: Adding time (more than 24 hours) to date time stamp

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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