Convert time to Value

  • Thread starter Thread starter Steved
  • Start date Start date
S

Steved

Hello from Steved

Is it possible to convert 6:20 a.m. or 6:20 p.m. to 620
using the same convention 12:15 a.m or 12:15 p.m. to 1215
The above I want to value to be a number instead of time.

Thankyou.
 
=--LEFT(TEXT(A1,"hhmm;@"),4)

Steved said:
Thanks J E

when I put your formula in anything after pm =12 hrs
ie 3.35 p.m. is 1535, is it possible to display 335
Thankyou.
 
Thanks J E

when I put your formula in anything after pm =12 hrs
ie 3.35 p.m. is 1535, is it possible to display 335
Thankyou.
 
Hello Michael from Steved

Thanks for your quick response.
Your formula is what I require but everthing pm ie 2:45
p.m. is 1445 I would like it to be 245.

any idea's.

Thankyou
 
Hmm...not sure what to tell you:

When I put in 3:35 pm, the formula returns 335.
 
Hello JE from Steved

Yes if I type in 3:35 pm I also get 335.
If I put your formula in using 3:35 p.m.it returns 1535
Thanks for your time on this query I now know what to do.
Cheers
 
Back
Top