hour format

  • Thread starter Thread starter galin
  • Start date Start date
G

galin

Guys,
What about the hour format.

I have 93000 or 181500

and I need it to be

9:30 or 18:15

Thanks

and I really tried to find a solution before posting the message
 
Hi
try the following formula
=TIME(LEFT(A1,1+LEN(A1)=6),MID(A1,2+LEN(A1)=6,2,RIGHT(A1,2))
 
One way using a help column assuming that your times when less than 10:00
has 5 digits and when
greater has 6 digits

Assume they start in A1

=(INT(A1/10000)+MOD(A1/100,100)/60)/24

copy down, paste special as values in place and format as hh:mm
if you can have numbers like 930 or 1815 as well you can use

=IF(LEN(A1)<=4,(INT(A1/100)+MOD(A1,100)/60)/24,(INT(A1/10000)+MOD(A1/100,100
)/60)/24)

note that it important to format as time or else you will get decimal values
 
I'm sorry,

I can't figure it out. Maybe I am not doing it right.

Let me figth , we'll see what happens.

Gali
 
galin said:
*I'm sorry,

I can't figure it out. Maybe I am not doing it right.

Let me figth , we'll see what happens.

Galin *


I have attached a sample here


Regards,

Peo Sjoblo
 
Thanks for the help Peo,

You have been magnificient.

I am fine with my excel spreadsheets now, but I have encountere
another problem now. When I import the table with the hours time fro
Excel to Access I am losing the format. Basically I need to have Acces
run query on the hour table in format understandable for the staff an
also looking good in printed report form.

Do you have any suggestions?

Thanks ,Galin

Don't feel obligated to respond me. You've done enoug
 

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

Back
Top