ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   3.02 PM ( Decimal Point )to 1502 (https://www.excelbanter.com/excel-worksheet-functions/82555-3-02-pm-decimal-point-1502-a.html)

Steved

3.02 PM ( Decimal Point )to 1502
 
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.



daddylonglegs

3.02 PM ( Decimal Point )to 1502
 

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")


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=531636


Peo Sjoblom

3.02 PM ( Decimal Point )to 1502
 
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


"Steved" wrote in message
...
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.





Steved

3.02 PM ( Decimal Point )to 1502
 
Thanks Folks

"Steved" wrote:

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.




All times are GMT +1. The time now is 08:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com