Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
ThereJustNow
 
Posts: n/a
Default Adding the semicolon automatically in date format


I use Excel to enter the start and end time of an employee and the 3rd
cell calculates the number of hours worked. The formula works great,
however it would be so much faster if I could avoid having to type the
":" each and every time.

Is there a way to add the semicolon automatically, or alternately have
the ability to type "1400" and have it see "14:00"?

Thanks very much,

James Norton


--
ThereJustNow
------------------------------------------------------------------------
ThereJustNow's Profile: http://www.excelforum.com/member.php...o&userid=35720
View this thread: http://www.excelforum.com/showthread...hreadid=555035

  #2   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default Adding the semicolon automatically in date format

You can't do it with formatting. You need a VBA event procedure.
See www.cpearson.com/excel/datetimeentry.htm for example code.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"ThereJustNow"
wrote
in message
news:ThereJustNow.29v53c_1151079605.9519@excelforu m-nospam.com...

I use Excel to enter the start and end time of an employee and
the 3rd
cell calculates the number of hours worked. The formula works
great,
however it would be so much faster if I could avoid having to
type the
":" each and every time.

Is there a way to add the semicolon automatically, or
alternately have
the ability to type "1400" and have it see "14:00"?

Thanks very much,

James Norton


--
ThereJustNow
------------------------------------------------------------------------
ThereJustNow's Profile:
http://www.excelforum.com/member.php...o&userid=35720
View this thread:
http://www.excelforum.com/showthread...hreadid=555035



  #3   Report Post  
Posted to microsoft.public.excel.misc
Ragdyer
 
Posts: n/a
Default Adding the semicolon automatically in date format

If you prefer a *non-code* work-around, you could use "AutoCorrect".

<Tools <AutoCorrect
In the 'Replace' box, enter 2 periods ( .. ),
In the 'With' box, enter a colon ( : ),
Then <OK

Now, when it's necessary to enter times, keep your fingers on the num keypad
and enter
9..
And you'll get 9:00 AM,

Enter
12..45
And you'll get 12:45 PM

Neat trick for folks who are adept in 10 key!
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"ThereJustNow"
wrote in message
news:ThereJustNow.29v53c_1151079605.9519@excelforu m-nospam.com...

I use Excel to enter the start and end time of an employee and the 3rd
cell calculates the number of hours worked. The formula works great,
however it would be so much faster if I could avoid having to type the
":" each and every time.

Is there a way to add the semicolon automatically, or alternately have
the ability to type "1400" and have it see "14:00"?

Thanks very much,

James Norton


--
ThereJustNow
------------------------------------------------------------------------
ThereJustNow's Profile:
http://www.excelforum.com/member.php...o&userid=35720
View this thread: http://www.excelforum.com/showthread...hreadid=555035


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
How do I format a cell to a date format? trainer07 Excel Discussion (Misc queries) 1 June 23rd 06 03:45 PM
Break links automatically changes graph's date format WhytheQ Excel Worksheet Functions 5 June 14th 06 12:27 PM
Customized Date Format Frustrated Excel Worksheet Functions 5 October 7th 05 11:30 PM
format date in excel Nigel Excel Discussion (Misc queries) 2 September 15th 05 09:52 PM
prevent 4/5 in a cell automatically transfer to a date format kei Excel Discussion (Misc queries) 3 December 9th 04 11:52 AM


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