antiquated excel 2003

krhorner

New Member
Joined
Dec 13, 2011
Messages
5
3 columns A B C
18:00 19:05 65 (Minutes)

Each column is military time and "C" is the total time elapsed in minutes.

Is there there a way to automatically enter the colon and still have excel recognize the entry as time? Currently I format columns A & B as
Number->Custom->h:mm and the Column C as Number -> Custom->
[mm]. I have to manually enter the colon instead of easily typing 1800 or 1905.

If I change the formats in the first two columns to 0":"00, the third column does not recognize the first two columns as time.

I am forced to use Excel 2003 for the compilation of these stats.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

krhorner

New Member
Joined
Dec 13, 2011
Messages
5
Thanks for the quick response, but I am afraid it was written way above my head.
 

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,459
You can Custom Format the cells to

00\:00

Caveat is you'll need to convert the text times to true time values when computing

=TEXT(A1,"00\:00")+0
 

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,459
Or right click and paste this code

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Intersect(Target, Range("timeCells")) Is Nothing Then Exit Sub
    If Target.Count > 1 Then Exit Sub
    Application.EnableEvents = False
    With Target
    If Len(Target) = 3 Then .Value = Left(.Value, 1) & ":" & Right(.Value, 2)
    If Len(Target) = 4 Then .Value = Left(.Value, 2) & ":" & Right(.Value, 2)
    Application.EnableEvents = True
    End With
End Sub

Where timecells is a named range that houses times.
 

andrewkard

Active Member
Joined
Apr 6, 2012
Messages
455
Hello, you can type in other column, and in A set a formula:
=CONCATENATE(LEFT(D1,2),":",RIGHT(D1,2))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,151,972
Messages
5,767,397
Members
425,410
Latest member
SmittyT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top