Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
changing time format
I have a spreadsheet where the time is displayed as 0405P
or 1115A. What code can I use to change the time to 04:05:00 PM or 11:15:00 AM? Thanks for the help. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
changing time format
Hi
in a separate cell enter the formula =TIMEVALUE(LEFT(A1,2)&":"&MID(A1,3,2) & " " & RIGHT(A1,1) & "M") -- Regards Frank Kabel Frankfurt, Germany JT wrote: I have a spreadsheet where the time is displayed as 0405P or 1115A. What code can I use to change the time to 04:05:00 PM or 11:15:00 AM? Thanks for the help. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
changing time format
For that display, you must have a custom format of "hhmmA/P"
Just go to Format | Cells... | Number | Category: Custom | Type: "hh:mm:ss AM/PM" Regards Trevor "JT" wrote in message ... I have a spreadsheet where the time is displayed as 0405P or 1115A. What code can I use to change the time to 04:05:00 PM or 11:15:00 AM? Thanks for the help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Changing time format | Excel Discussion (Misc queries) | |||
Changing time and text format | Excel Worksheet Functions | |||
changing the format for the time shen entered as HHMM to HH:MM | Excel Discussion (Misc queries) | |||
Changing a cells format (Time) | Excel Discussion (Misc queries) | |||
How do I stop excel from changing my ratios into time format? | Excel Discussion (Misc queries) |