Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
pretzel
 
Posts: n/a
Default custom number- minutes:seconds.hundredths how to hide a leading z

Hi,
I'm running up a simple sheet to enter/display times for a sporting event.

As such, I have set a custom format of m:ss.00 and can enter a time of 1
(minute) 10 (seconds) 24 (hundredths) to show as 1:10.24 (this parts OK).

But if the time is less than a minute, say 55.24 (seconds) I get 0:55.24
which although functional, looks messy. It also requires the person to enter
the leading "0:".

Is there a way to a)stop the leading "0:" from showing, and b)not require
entering the "0:" for times less than a minute?
---
pbw
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

For your custom format:

[<0.000694444444444444]ss.00;m:ss.00

For entries without colons, you'll need an event macro. See

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

In article ,
"pretzel" wrote:

Hi,
I'm running up a simple sheet to enter/display times for a sporting event.

As such, I have set a custom format of m:ss.00 and can enter a time of 1
(minute) 10 (seconds) 24 (hundredths) to show as 1:10.24 (this parts OK).

But if the time is less than a minute, say 55.24 (seconds) I get 0:55.24
which although functional, looks messy. It also requires the person to enter
the leading "0:".

Is there a way to a)stop the leading "0:" from showing, and b)not require
entering the "0:" for times less than a minute?
---
pbw

  #3   Report Post  
pretzel
 
Posts: n/a
Default

Hi,

Thaks for that.

I suppose that the custom format is saying "if the value is less than 1
minute (which is one day/24/60) then use the format ss.00 otherwise use
m:ss00"

I should have been able to figure that one out :-(((

I'm still reviewing the page you noted (have to do a bit of thinking here).
I supposed its about time I leant some VBA. Looks like the entire site is
full of Excel goodies.

thanks
--
-----
pbw


"JE McGimpsey" wrote:

For your custom format:

[<0.000694444444444444]ss.00;m:ss.00

For entries without colons, you'll need an event macro. See

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

In article ,
"pretzel" wrote:

Hi,
I'm running up a simple sheet to enter/display times for a sporting event.

As such, I have set a custom format of m:ss.00 and can enter a time of 1
(minute) 10 (seconds) 24 (hundredths) to show as 1:10.24 (this parts OK).

But if the time is less than a minute, say 55.24 (seconds) I get 0:55.24
which although functional, looks messy. It also requires the person to enter
the leading "0:".

Is there a way to a)stop the leading "0:" from showing, and b)not require
entering the "0:" for times less than a minute?
---
pbw


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
Custom Formats centerNegative Excel Discussion (Misc queries) 3 October 7th 05 05:01 PM
Custom Number Format... whitmore0112 Excel Worksheet Functions 2 January 25th 05 10:11 PM
Custom Number formatting gizmo Excel Worksheet Functions 3 January 8th 05 01:07 AM
Random Number Questions Greegan Excel Worksheet Functions 1 January 5th 05 02:00 AM
How to format a number in Indian style in Excel? Victor_alb Excel Discussion (Misc queries) 2 December 21st 04 04:21 AM


All times are GMT +1. The time now is 03:14 AM.

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

About Us

"It's about Microsoft Excel"