Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I enter 1635 and see 4:35 PM in the cell?

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 168
Default How do I enter 1635 and see 4:35 PM in the cell?

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default How do I enter 1635 and see 4:35 PM in the cell?

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default How do I enter 1635 and see 4:35 PM in the cell?

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default How do I enter 1635 and see 4:35 PM in the cell?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup if #N/A then enter enter data in cell I4 duketter Excel Discussion (Misc queries) 3 March 11th 08 09:08 PM
Enter multiple numbers in a cell so total shows when enter keypres newbie Excel Worksheet Functions 2 August 19th 07 12:23 PM
Auto enter date when data in enter in another cell Brian Excel Worksheet Functions 5 December 7th 06 06:44 PM
How to point to (select) a cell to the left from a cell where I enter the = equal sign? Dmitry Excel Discussion (Misc queries) 4 June 30th 06 06:49 AM
how do I enter a RETURN (Enter) in a cell in EXCEL2003 Micheline Excel Discussion (Misc queries) 5 April 14th 05 10:00 PM


All times are GMT +1. The time now is 10:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"