Time entries

B

Beege

I'd like to enter 3 or digits and have them show in a cell as "time".
Ex 1234 = 12:34; 635 = 6:35. Can you assist. Seems I can do nearly every
other type of "conversion entry" but the one I now need. Thanks,very
 
M

Myrna Larson

One way, using a formula to convert after-the-fact:

=TIME(INT(A1/100),MOD(A1,100),0)

Otherwise you would need a worksheet_change event macro that grabs the data
right after you enter it and converts it using essentially the same "formula"
as above, but written in VBA instead (where the syntax is a bit different).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top