#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default format colon

I am doing an overtime spreadsheet, and when a user types in 08:00 this is
the way it looks, I have it formatted to custom [hh:]mm. This works good
until someone types in 0800 and it puts in 19200:00. Is there a format that
will allow a user to type in 0800 and it put the correct number of 08:00?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default format colon

You may want to use Data Validation and test for a value less than 1, then
give an appropriate message to the user if it isn't.
--
David Biddulph


"Pammy" wrote in message
...
I am doing an overtime spreadsheet, and when a user types in 08:00 this is
the way it looks, I have it formatted to custom [hh:]mm. This works good
until someone types in 0800 and it puts in 19200:00. Is there a format
that
will allow a user to type in 0800 and it put the correct number of 08:00?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default format colon

You cannot format a cell so that 0800 will return 08:00 as a valid time.

Excel doesn't do "masks" for date and time.

You can use VBA to for that if you want to go that route.

See Chip Pearson's site for code if interested.

http://www.cpearson.com/excel/DateTimeEntry.htm


Gord Dibben MS Excel MVP

On Tue, 24 Mar 2009 05:46:08 -0700, Pammy
wrote:

I am doing an overtime spreadsheet, and when a user types in 08:00 this is
the way it looks, I have it formatted to custom [hh:]mm. This works good
until someone types in 0800 and it puts in 19200:00. Is there a format that
will allow a user to type in 0800 and it put the correct number of 08:00?


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 to change colon to semi-colon in CP/List Seprator Khoshravan Excel Discussion (Misc queries) 3 February 4th 09 07:41 PM
format cell to place colon btw every 2 alphanumeric characters hogsy Excel Worksheet Functions 0 August 17th 06 03:30 PM
Format cell to show colon BigBuck98 Excel Worksheet Functions 5 January 12th 06 09:48 PM
.CSV file format - comma or semi-colon? bavjean Excel Worksheet Functions 5 November 12th 04 12:26 PM
.CSV file format - comma or semi-colon antifashionpimp Excel Worksheet Functions 1 November 10th 04 01:18 PM


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