#1   Report Post  
danlinksman
 
Posts: n/a
Default Time formatting

Is there a way to enter a time valus such as 4:36 without the colon and still
have it appear as a time value. Example 4:36 would be entered as 436 on the
numeric keyboard and once entered it would change to 4:36?
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

only using VBA. One way:

http://cpearson.com/excel/datetimeentry.htm

In article ,
"danlinksman" wrote:

Is there a way to enter a time valus such as 4:36 without the colon and still
have it appear as a time value. Example 4:36 would be entered as 436 on the
numeric keyboard and once entered it would change to 4:36?

  #3   Report Post  
Jason Morin
 
Posts: n/a
Default

With a formula in another column you could use:

=TEXT(A1,"00\:00")*1

but that assumes you enter your times as military (436 =
4:36 am, 1422 = 2:22 pm). Or you could enter them as
222pm, 1004am, etc. (no space) and use:

=REPLACE(REPLACE(A1,(LEN(A1)=6)+2,,":"),LEN(A1),," ")+0

HTH
Jason
Atlanta, GA

-----Original Message-----
Is there a way to enter a time valus such as 4:36 without

the colon and still
have it appear as a time value. Example 4:36 would be

entered as 436 on the
numeric keyboard and once entered it would change to

4:36?
.

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
Copy conditional formatting across multiple rows? Gil Excel Discussion (Misc queries) 1 January 11th 05 11:27 AM
entering numbers to display a time format Ian Williams/Eazygig Excel Discussion (Misc queries) 1 January 10th 05 11:57 AM
Cells losing formatting BdgBill Excel Discussion (Misc queries) 1 November 26th 04 08:03 AM
time formatting and time categorizing (vlookup or data validation) MarianneR Excel Worksheet Functions 4 November 18th 04 03:24 PM
time formatting and time categorizing (vlookup or data validation) MarianneR Excel Worksheet Functions 0 November 18th 04 03:13 PM


All times are GMT +1. The time now is 05:33 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"