+ Reply to Thread
Results 1 to 19 of 19

How to enter non-military time without colon and with am/pm

  1. #1
    Registered User
    Join Date
    05-03-2016
    Location
    California
    MS-Off Ver
    2007
    Posts
    11

    How to enter non-military time without colon and with am/pm

    I would like to enter time in excel without having to type a colon, and to be able to designate am/pm. I don't want to use military time. I have tried doing a custom format of 0\:00 and got the colon to appear automatically but when I tried to add am/pm, the formula failed. Thank you! Sha

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to enter non-military time without colon and with am/pm

    Maybe this...

    http://www.cpearson.com/Excel/DateTimeEntry.htm
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    05-03-2016
    Location
    California
    MS-Off Ver
    2007
    Posts
    11

    Re: How to enter non-military time without colon and with am/pm

    thanks but I didn't understand the link info at all. Sha

  4. #4
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: How to enter non-military time without colon and with am/pm

    Hi Sha,

    Tony has giving a VBA solution. You have to have Macros enabled to use

    Simply format your cells to

    Please Login or Register  to view this content.
    Enter Time as 2300 it will change to 11:00pm etc

    Here is Tonys Example, plus another solution

    Please Login or Register  to view this content.
    To alter the range simply amend this part of the code

    Please Login or Register  to view this content.
    I think this is a shortened version of the above code - I do believe its Tonys Valko code

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-03-2016
    Location
    California
    MS-Off Ver
    2007
    Posts
    11

    Re: How to enter non-military time without colon and with am/pm

    tx toonies. I am very basic in my knowledge and I don't understand how to apply tony's and your info. I opened the example but am still lost. sha

  6. #6
    Registered User
    Join Date
    05-03-2016
    Location
    California
    MS-Off Ver
    2007
    Posts
    11

    Re: How to enter non-military time without colon and with am/pm

    oh plus I am trying to enter standard time, not military time. tx again! sha

  7. #7
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: How to enter non-military time without colon and with am/pm

    can you post an example of you spreadsheet

    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  8. #8
    Registered User
    Join Date
    05-03-2016
    Location
    California
    MS-Off Ver
    2007
    Posts
    11

    Re: How to enter non-military time without colon and with am/pm

    toonies, I hope I uploaded the attachment correctly. tk you! sha
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How to enter non-military time without colon and with am/pm

    Your Columns C and D are already formatted corectly

    Enter 10:27 a and press enter
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  10. #10
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: How to enter non-military time without colon and with am/pm

    Use helper columns (D & F) which shall be hidden:
    In D6:
    Please Login or Register  to view this content.
    and F6 replacing C6 in formula with E6.
    Attached Files Attached Files
    Ben Van Johnson

  11. #11
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: How to enter non-military time without colon and with am/pm

    Hi Simple Combine protonLeah's formulas and you should not need helper columns

    Please Login or Register  to view this content.

  12. #12
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: How to enter non-military time without colon and with am/pm

    Hi Simple Combine protonLeah's formulas and you should not need helper columns

    Please Login or Register  to view this content.

  13. #13
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: How to enter non-military time without colon and with am/pm

    Another way

    =--(TEXT(LEFT(C6,LEN(C6)-2),"0\:00 ")&RIGHT(C6)&"M")

  14. #14
    Registered User
    Join Date
    05-03-2016
    Location
    California
    MS-Off Ver
    2007
    Posts
    11

    Re: How to enter non-military time without colon and with am/pm

    hi, thank you to everyone who responded. sorry for the late reply. my computer doesn't have software so I have to go to the library to use their computer and my car broke down.

    I read all the replies. I tried pasting some of the formulas into the total time cell but that did not seem to work. as for the helper columns, I am not sure what they are would rather keep the spreadsheet as simple as possible. thanks so much!

    sha

  15. #15
    Registered User
    Join Date
    05-03-2016
    Location
    California
    MS-Off Ver
    2007
    Posts
    11

    Re: How to enter non-military time without colon and with am/pm

    okay, I tried again and protonleah, your helper columns worked! yea! then toonies said I could just combine her formulas to eliminate the need for the helper columns. but where do I paste the formula that toonies suggested? I tried pasting into the cell where the time entry goes into but the prompt said it is a circular something. tx for your patience! sha

  16. #16
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: How to enter non-military time without colon and with am/pm

    The combined formula computes the total time so it goes in E6

  17. #17
    Registered User
    Join Date
    05-03-2016
    Location
    California
    MS-Off Ver
    2007
    Posts
    11

    Re: How to enter non-military time without colon and with am/pm

    thank you protonLeah, I tried it and it worked well until I tried a test entry of start time of 9:30 am and end time of 12:45pm. the end time came up as 12:45am instead..i had no trouble when I entered time that did not involve 12 am or pm..sha

  18. #18
    Registered User
    Join Date
    05-03-2016
    Location
    California
    MS-Off Ver
    2007
    Posts
    11

    Re: How to enter non-military time without colon and with am/pm

    thank you mehmetcik, i am still having trouble. sha

  19. #19
    Registered User
    Join Date
    05-03-2016
    Location
    California
    MS-Off Ver
    2007
    Posts
    11

    Re: How to enter non-military time without colon and with am/pm

    thank you Phuocam, sorry but where do i enter your formula? sha

+ 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. Replies: 4
    Last Post: 12-02-2014, 08:49 AM
  2. Replies: 9
    Last Post: 08-09-2013, 12:07 AM
  3. How to enter time without using the colon :
    By jfiorini in forum Excel General
    Replies: 3
    Last Post: 07-11-2012, 02:27 PM
  4. Simple way to convert military time to standard where military has no colon
    By salvator in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2011, 10:27 AM
  5. Enter Hours and Minutes without colon
    By Gretchen in forum Excel General
    Replies: 14
    Last Post: 07-31-2011, 01:58 PM
  6. Replies: 3
    Last Post: 05-13-2008, 03:50 PM
  7. Replies: 3
    Last Post: 01-18-2006, 02:55 PM

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