Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
In a spreadsheet, how can I quickly enter 3 or 4 time numbers and have excel
convert those numbers to a standard time AM or PM format? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Kim,
Chip Pearson has a way here, http://www.cpearson.com/excel/DateTimeEntry.htm HTH Martin "kimrich" wrote in message ... In a spreadsheet, how can I quickly enter 3 or 4 time numbers and have excel convert those numbers to a standard time AM or PM format? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
try this ...suppose u enter 1635 in A1 , put this formula in B1
=TIME(LEFT(A1,2),RIGHT(A1,2),0) On May 31, 4:29*pm, "MartinW" wrote: Hi Kim, Chip Pearson has a way here,http://www.cpearson.com/excel/DateTimeEntry.htm HTH Martin "kimrich" wrote in message ... In a spreadsheet, how can I quickly enter 3 or 4 time numbers and have excel convert those numbers to a standard time AM or PM format?- Hide quoted text - - Show quoted text - |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Right click sheet tabview codecopy/paste thismodify range(s) to suit
Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo nomo If Target.Count < 1 Then Exit Sub If Intersect(Target, Range("g:h")) Is Nothing _ Or Len(Application.Trim(Target)) < 1 _ Then Exit Sub Application.EnableEvents = False If Len(Target) = 3 Then Target = Format(Left(Target, 1) & ":" & Right(Target, 2), "hh:mm") Else Target = Format(Left(Target, 2) & ":" & Right(Target, 2), "hh:mm") End If tr = Target.Row If Cells(tr, "h") < "" Then Cells(tr, "I") = _ (Cells(tr, "H") - Cells(tr, "g")) * 24 nomo: Application.EnableEvents = True End Sub Sub fixit() Application.EnableEvents = True End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "kimrich" wrote in message ... In a spreadsheet, how can I quickly enter 3 or 4 time numbers and have excel convert those numbers to a standard time AM or PM format? |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
That is not true, your way would use and extra cell and that is not what the
OP asked for. However if you are using an extra cell then this is somewhat easier =--TEXT(E1,"00\:00") format the cell as h:mm AM/PM or format directly as text =TEXT(TEXT(E1,"00\:00"),"h:mm AM/PM") -- Regards, Peo Sjoblom "muddan madhu" wrote in message ... try this ...suppose u enter 1635 in A1 , put this formula in B1 =TIME(LEFT(A1,2),RIGHT(A1,2),0) On May 31, 4:29 pm, "MartinW" wrote: Hi Kim, Chip Pearson has a way here,http://www.cpearson.com/excel/DateTimeEntry.htm HTH Martin "kimrich" wrote in message ... In a spreadsheet, how can I quickly enter 3 or 4 time numbers and have excel convert those numbers to a standard time AM or PM format?- Hide quoted text - - Show quoted text - |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Vlookup if #N/A then enter enter data in cell I4 | Excel Discussion (Misc queries) | |||
Enter multiple numbers in a cell so total shows when enter keypres | Excel Worksheet Functions | |||
Auto enter date when data in enter in another cell | Excel Worksheet Functions | |||
How to point to (select) a cell to the left from a cell where I enter the = equal sign? | Excel Discussion (Misc queries) | |||
how do I enter a RETURN (Enter) in a cell in EXCEL2003 | Excel Discussion (Misc queries) |