PC Review


Reply
Thread Tools Rate Thread

cell format to h:mm

 
 
confused
Guest
Posts: n/a
 
      1st Dec 2008
when I format my cells to the h:mm format and type in a number (230) and hit
return, I get something completely different. I get a date and time that
isn't anythink like the time I typed in. Can someone please help me?
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      1st Dec 2008
You have to tell excel that you're entering time with a colon (.

2:30
or
0:2:30

Or you could use a macro like the one that Chip Pearson shares:
http://www.cpearson.com/Excel/DateTimeEntry.htm

confused wrote:
>
> when I format my cells to the h:mm format and type in a number (230) and hit
> return, I get something completely different. I get a date and time that
> isn't anythink like the time I typed in. Can someone please help me?


--

Dave Peterson
 
Reply With Quote
 
Gary''s Student
Guest
Posts: n/a
 
      1st Dec 2008
Enter:
2:30
instead
--
Gary''s Student - gsnu200817
 
Reply With Quote
 
Chip Pearson
Guest
Posts: n/a
 
      1st Dec 2008
The format of a cell governs only the way the value is displayed
within the cell. It has nothing at all to do with the format you must
use to enter the data. You still need to include the ":" character in
the time string to tell Excel that you are entering a time, regardless
of how you have formatted the display value of the cell.



Cordially,
Chip Pearson
Microsoft MVP
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Mon, 1 Dec 2008 07:36:02 -0800, confused
<(E-Mail Removed)> wrote:

>when I format my cells to the h:mm format and type in a number (230) and hit
>return, I get something completely different. I get a date and time that
>isn't anythink like the time I typed in. Can someone please help me?

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      1st Dec 2008
What you are trying to do is not possible without VBA or a helper cell with
a formula.

Formatting a cell to h:mm does not create an input mask.

Either enter the time as 2:30 or see Chip Pearson's site for quickentry
code.

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


Gord Dibben MS Excel MVP

On Mon, 1 Dec 2008 07:36:02 -0800, confused
<(E-Mail Removed)> wrote:

>when I format my cells to the h:mm format and type in a number (230) and hit
>return, I get something completely different. I get a date and time that
>isn't anythink like the time I typed in. Can someone please help me?


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
cell format -> remove cell format pattern without effecting colors Bas Microsoft Excel Misc 1 23rd Mar 2009 02:54 PM
How do I copy data in single cell format to a merged cell format =?Utf-8?B?UGF1bA==?= Microsoft Excel Misc 1 27th Jun 2005 11:00 AM
DataGrid Cell: Custom Font/Backcolor/Format cell by cell (VB.NET) DraguVaso Microsoft ADO .NET 7 28th Jan 2004 09:04 PM
DataGrid Cell: Custom Font/Backcolor/Format cell by cell (VB.NET) DraguVaso Microsoft Dot NET Framework Forms 5 7th Jan 2004 09:09 PM
DataGrid Cell: Custom Font/Backcolor/Format cell by cell (VB.NET) DraguVaso Microsoft VB .NET 2 19th Dec 2003 10:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:10 PM.