ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Convert Time to a Text (https://www.excelbanter.com/excel-worksheet-functions/137574-convert-time-text.html)

CJ

Convert Time to a Text
 
Hi,

I need help with a formula. I'm trying to convert a time to text as in the
example below.

Example:
A1= 5:16 PM
B1= 1716

Thanks for any help!

Teethless mama

Convert Time to a Text
 
=TEXT(A1,"hhmm")

"CJ" wrote:

Hi,

I need help with a formula. I'm trying to convert a time to text as in the
example below.

Example:
A1= 5:16 PM
B1= 1716

Thanks for any help!


George Nicholson

Convert Time to a Text
 
One approach:

=TEXT(HOUR(A1,"00") & TEXT(MINUTE(A1),"00")

HTH,

"CJ" wrote in message
...
Hi,

I need help with a formula. I'm trying to convert a time to text as in
the
example below.

Example:
A1= 5:16 PM
B1= 1716

Thanks for any help!




CJ

Convert Time to a Text
 
Thank you.

"Teethless mama" wrote:

=TEXT(A1,"hhmm")

"CJ" wrote:

Hi,

I need help with a formula. I'm trying to convert a time to text as in the
example below.

Example:
A1= 5:16 PM
B1= 1716

Thanks for any help!



All times are GMT +1. The time now is 05:08 PM.

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