+ Reply to Thread
Results 1 to 5 of 5

Adding of the 9 Hours in Time (In Text Format) with correct

  1. #1
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Adding of the 9 Hours in Time (In Text Format) with correct

    Hello Friends

    Version : MS Excel 2010,
    File Name : <time addition with AM and PM.xlsx>

    From In time I want to add the 9 hours and accordingly AM / PM has to shown correctly.

    Also the Afternoon time after 11:59 AM should be 12.00 PM and the midnight after 11:59 PM should be 00:00 AM.

    I did a formula myself, please check the same (Correct it also) and tell me if any errors.

    Also without adding any helper rows, helper columns, helper cells is it possible to reduce / simply the formula ?

    thanks in advance

    thilag
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Adding of the 9 Hours in Time (In Text Format) with correct

    several ways
    =SUBSTITUTE(A1,".",":")+9/24
    format cell as time hh:mm am/pm
    or text value
    =TEXT(SUBSTITUTE(A1,".",":")+9/24,"hh:mm am/pm")
    which will give 09:30 AM
    to get back to your original format
    =SUBSTITUTE(TEXT(SUBSTITUTE(A1,".",":")+9/24,"hh:mm am/pm"),":",".")
    which gives
    09.30 AM
    Last edited by martindwilson; 12-09-2013 at 06:56 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Re: Adding of the 9 Hours in Time (In Text Format) with correct

    Hello martindwilson

    My sincere thanks to you, Just very simple formulas you did it with the time formats.

    Only one thing 00:35 AM in this formulas 12:35 AM, Is it possible to plot 00:35 AM (As looks my time in Text format)

    thanks

    thilag

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Adding of the 9 Hours in Time (In Text Format) with correct

    =SUBSTITUTE(IF(TEXT(SUBSTITUTE(A1,".",":")+9/24,"am/pm")="AM",SUBSTITUTE(TEXT(SUBSTITUTE(A1,".",":")+9/24,"hh:mm am/pm"),"12:","00:"),TEXT(SUBSTITUTE(A1,".",":")+9/24,"hh:mm am/pm")),":",".")
    Last edited by martindwilson; 12-09-2013 at 12:36 PM.

  5. #5
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Re: Adding of the 9 Hours in Time (In Text Format) with correct

    Hello martindwilson

    The above formula works for 00.25 AM also.

    Thanks for this job.

    thilag

+ 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. [SOLVED] Adding Hours to Date + Time Text Data
    By ExcelQuestFL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-23-2012, 01:39 PM
  2. making a schedule with auto time format and adding total hours
    By damagedbodies in forum Excel General
    Replies: 0
    Last Post: 04-30-2012, 02:04 PM
  3. [SOLVED] Converting time format, inserting leading zero and adding +3 hours
    By godlev in forum Excel General
    Replies: 11
    Last Post: 09-07-2011, 10:41 AM
  4. Replies: 8
    Last Post: 07-07-2011, 02:18 AM
  5. adding time in day,hours,min& seconds format
    By bngubo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-03-2009, 10:27 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