3.02 PM ( Decimal Point )to 1502

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello from Steved

From 3.02 PM to 1502 Military time please.

The below formula is my attempt but displays #VAULE!
HOUR(B71)*100+MINUTE(B71)

Thankyou.
 
Do you want 15:02 as a time or 1502 text value?

either

=SUBSTITUTE(B71,".",":")+0

format as hh:mm

or for text

=TEXT(SUBSTITUTE(B71,".",":")+0,"hhmm")
 
If the values are text

=--TEXT(TEXT(SUBSTITUTE(A1,".",":"),"hh:mm"),"hhmm")

If not and you by some reason is using a period as a time delimiter

=--TEXT(TEXT(A1,"hh.mm"),"hhmm")

note that 00:30 AM will display as 30

--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com
 
Back
Top