A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Format Time as Text



 
 
Thread Tools Display Modes
  #1  
Old September 15th, 2008, 06:00 PM posted to microsoft.public.excel.worksheet.functions
bpc
external usenet poster
 
Posts: 16
Default Format Time as Text

I have a column of time values, (formatted for example as 14:50 or 6:15). I
am flexible on the format of this column. In an adjacent column I need the
time value to be converted to text so that 14:50 reads as 1450. Simply
speaking, I need the colon removed. Thank you in advance.
  #2  
Old September 15th, 2008, 06:08 PM posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom[_2_]
external usenet poster
 
Posts: 963
Default Format Time as Text

=TEXT(A2,"hhmm")


where A2 holds the time value

--


Regards,


Peo Sjoblom

"bpc" wrote in message
...
I have a column of time values, (formatted for example as 14:50 or 6:15). I
am flexible on the format of this column. In an adjacent column I need the
time value to be converted to text so that 14:50 reads as 1450. Simply
speaking, I need the colon removed. Thank you in advance.



  #3  
Old September 15th, 2008, 06:12 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default Format Time as Text

=TEXT(A1,"hhmm")


"bpc" wrote:

I have a column of time values, (formatted for example as 14:50 or 6:15). I
am flexible on the format of this column. In an adjacent column I need the
time value to be converted to text so that 14:50 reads as 1450. Simply
speaking, I need the colon removed. Thank you in advance.

  #4  
Old September 15th, 2008, 07:07 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default Format Time as Text

Why do it as text why not use a format

A1 14:40
B1 =A1 and apply a custom format of HHMM

Mike

"bpc" wrote:

I have a column of time values, (formatted for example as 14:50 or 6:15). I
am flexible on the format of this column. In an adjacent column I need the
time value to be converted to text so that 14:50 reads as 1450. Simply
speaking, I need the colon removed. Thank you in advance.

  #5  
Old September 15th, 2008, 07:10 PM posted to microsoft.public.excel.worksheet.functions
bpc
external usenet poster
 
Posts: 16
Default Format Time as Text

While your suggestions worked, I realize now that I need the result to remain
a number and not text. Therefore, how do I remove the colon will maintaining
a number format. Thanks again.

"Teethless mama" wrote:

=TEXT(A1,"hhmm")


"bpc" wrote:

I have a column of time values, (formatted for example as 14:50 or 6:15). I
am flexible on the format of this column. In an adjacent column I need the
time value to be converted to text so that 14:50 reads as 1450. Simply
speaking, I need the colon removed. Thank you in advance.

  #6  
Old September 15th, 2008, 07:28 PM posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom[_2_]
external usenet poster
 
Posts: 963
Default Format Time as Text

Format as hhmm just like Mike posted

--


Regards,


Peo Sjoblom

"bpc" wrote in message
...
While your suggestions worked, I realize now that I need the result to
remain
a number and not text. Therefore, how do I remove the colon will
maintaining
a number format. Thanks again.

"Teethless mama" wrote:

=TEXT(A1,"hhmm")


"bpc" wrote:

I have a column of time values, (formatted for example as 14:50 or
6:15). I
am flexible on the format of this column. In an adjacent column I need
the
time value to be converted to text so that 14:50 reads as 1450. Simply
speaking, I need the colon removed. Thank you in advance.



  #7  
Old September 15th, 2008, 07:30 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default Format Time as Text

Change =TEXT(A1,"hhmm") to =--TEXT(A1,"hhmm")
--
David Biddulph

"bpc" wrote in message
...
While your suggestions worked, I realize now that I need the result to
remain
a number and not text. Therefore, how do I remove the colon will
maintaining
a number format. Thanks again.

"Teethless mama" wrote:

=TEXT(A1,"hhmm")


"bpc" wrote:

I have a column of time values, (formatted for example as 14:50 or
6:15). I
am flexible on the format of this column. In an adjacent column I need
the
time value to be converted to text so that 14:50 reads as 1450. Simply
speaking, I need the colon removed. Thank you in advance.



  #8  
Old September 15th, 2008, 07:39 PM posted to microsoft.public.excel.worksheet.functions
bpc
external usenet poster
 
Posts: 16
Default Format Time as Text

That did it David thanks

"David Biddulph" wrote:

Change =TEXT(A1,"hhmm") to =--TEXT(A1,"hhmm")
--
David Biddulph

"bpc" wrote in message
...
While your suggestions worked, I realize now that I need the result to
remain
a number and not text. Therefore, how do I remove the colon will
maintaining
a number format. Thanks again.

"Teethless mama" wrote:

=TEXT(A1,"hhmm")


"bpc" wrote:

I have a column of time values, (formatted for example as 14:50 or
6:15). I
am flexible on the format of this column. In an adjacent column I need
the
time value to be converted to text so that 14:50 reads as 1450. Simply
speaking, I need the colon removed. Thank you in advance.




  #9  
Old September 15th, 2008, 07:40 PM posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom[_2_]
external usenet poster
 
Posts: 963
Default Format Time as Text

Why text at all?

--


Regards,


Peo Sjoblom

"David Biddulph" groups [at] biddulph.org.uk wrote in message
...
Change =TEXT(A1,"hhmm") to =--TEXT(A1,"hhmm")
--
David Biddulph

"bpc" wrote in message
...
While your suggestions worked, I realize now that I need the result to
remain
a number and not text. Therefore, how do I remove the colon will
maintaining
a number format. Thanks again.

"Teethless mama" wrote:

=TEXT(A1,"hhmm")


"bpc" wrote:

I have a column of time values, (formatted for example as 14:50 or
6:15). I
am flexible on the format of this column. In an adjacent column I need
the
time value to be converted to text so that 14:50 reads as 1450.
Simply
speaking, I need the colon removed. Thank you in advance.





  #10  
Old September 15th, 2008, 07:50 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default Format Time as Text

That was my point which the OP chose to ignore. Such is life

Mike

"Peo Sjoblom" wrote:

Why text at all?

--


Regards,


Peo Sjoblom

"David Biddulph" groups [at] biddulph.org.uk wrote in message
...
Change =TEXT(A1,"hhmm") to =--TEXT(A1,"hhmm")
--
David Biddulph

"bpc" wrote in message
...
While your suggestions worked, I realize now that I need the result to
remain
a number and not text. Therefore, how do I remove the colon will
maintaining
a number format. Thanks again.

"Teethless mama" wrote:

=TEXT(A1,"hhmm")


"bpc" wrote:

I have a column of time values, (formatted for example as 14:50 or
6:15). I
am flexible on the format of this column. In an adjacent column I need
the
time value to be converted to text so that 14:50 reads as 1450.
Simply
speaking, I need the colon removed. Thank you in advance.






 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:47 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.