I want to format a cell so that when you enter a swimming time of 2minutes 10.45 seconds it shows up as either: 2:10.45 or 2 min 10.45 sec in the cell. Can't get the right special format code. Thanks in advance.
I want to format a cell so that when you enter a swimming time of 2minutes 10.45 seconds it shows up as either: 2:10.45 or 2 min 10.45 sec in the cell. Can't get the right special format code. Thanks in advance.
Format the cell as m:ss.00
You'll still have to enter the time as h:m:ss.00
For example, type in:
0:2:10.45
The cell will display as 2:10.45
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
A variation on Tony's...
mm "min" ss.00 "sec"
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
This is what I found out. Thanks for your post though. #"min" ##"."##"sec"
when I enter 12345 only it shows as 1min23.45sec
hi there reno. if you wish to type "2minutes 10.45 seconds" & return those, you need either a formula in another cell OR VBA. format cells will not help you. you would have to take Tony's or FDibbins' suggestion to type as such:
0:2:10.45
type in 1jan2013 in A1. and 12 pm in B1. Format both cells to General. you will see that A1 is 41275 (meaning 41,275th day from 1 Jan 1900) & B1 is 0.5 (1/2 a day). so when you didn't follow their suggestion & use #"min" ##"."##"sec", the formatting simply splits your whole number into:
#"min" ##"."##"sec"
Thanks, if you have clicked on the * and added our rep.
If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".
"Contentment is not the fulfillment of what you want, but the realization of what you already have."
Tips & Tutorials I Compiled | How to Get Quick & Good Answers
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks