Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 75
Default Time Format Help Needed (Excel)

I am working with data in Excel and have time stamps in the format of 24hr
time but it does not have a colon. For example 1321 or 843 instead of what I
want 13:21 or 8:43.

Is there a way to either add a colon or change the format into a time
format. (I already tried just highlighting to change the format to time; it
doesn't work.)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Time Format Help Needed (Excel)

You would need VBA or help formulas

http://www.cpearson.com/excel/DateTimeEntry.htm


--


Regards,


Peo Sjoblom




"Erin" wrote in message
...
I am working with data in Excel and have time stamps in the format of 24hr
time but it does not have a colon. For example 1321 or 843 instead of what
I
want 13:21 or 8:43.

Is there a way to either add a colon or change the format into a time
format. (I already tried just highlighting to change the format to time;
it
doesn't work.)



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Time Format Help Needed (Excel)

Hi,

Assuming you have typed in 1321 in cell A1, enter the following formula in
cell B1

LEFT(A1,IF(LEN(A1)=4,2,1))&":"&RIGHT(A1,2). Now format the cell to Time.

Regards,

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Peo Sjoblom" wrote in message
...
You would need VBA or help formulas

http://www.cpearson.com/excel/DateTimeEntry.htm


--


Regards,


Peo Sjoblom




"Erin" wrote in message
...
I am working with data in Excel and have time stamps in the format of 24hr
time but it does not have a colon. For example 1321 or 843 instead of
what I
want 13:21 or 8:43.

Is there a way to either add a colon or change the format into a time
format. (I already tried just highlighting to change the format to time;
it
doesn't work.)



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Time Format Help Needed (Excel)

First of all that formula will return text so it doesn't help if you format
as time

=--(LEFT(A1,IF(LEN(A1)=4,2,1))&":"&RIGHT(A1,2))

then format as time, however if 10 means 00:10 then your formula fails




but if are going to use a formula then it is easier to use

=TIME(INT(A1/100),MOD(A1,100),0)

and even easier to use

=--TEXT(A1,"00\:00")


--


Regards,


Peo Sjoblom





"Ashish Mathur" wrote in message
...
Hi,

Assuming you have typed in 1321 in cell A1, enter the following formula in
cell B1

LEFT(A1,IF(LEN(A1)=4,2,1))&":"&RIGHT(A1,2). Now format the cell to Time.

Regards,

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Peo Sjoblom" wrote in message
...
You would need VBA or help formulas

http://www.cpearson.com/excel/DateTimeEntry.htm


--


Regards,


Peo Sjoblom




"Erin" wrote in message
...
I am working with data in Excel and have time stamps in the format of
24hr
time but it does not have a colon. For example 1321 or 843 instead of
what I
want 13:21 or 8:43.

Is there a way to either add a colon or change the format into a time
format. (I already tried just highlighting to change the format to time;
it
doesn't work.)





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Time Format Help Needed (Excel)

=--TEXT(A2,"00\:00")
and format as time.
--
David Biddulph

"Erin" wrote in message
...
I am working with data in Excel and have time stamps in the format of 24hr
time but it does not have a colon. For example 1321 or 843 instead of what
I
want 13:21 or 8:43.

Is there a way to either add a colon or change the format into a time
format. (I already tried just highlighting to change the format to time;
it
doesn't work.)





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time format help needed Dan W. Excel Worksheet Functions 19 March 6th 08 09:08 AM
time guru needed [email protected] Excel Worksheet Functions 2 January 24th 08 01:12 PM
Converting a time format to a String format in Excel Bill Partridge Excel Discussion (Misc queries) 3 October 3rd 07 11:48 AM
IF / Else Format help needed Paul B. Excel Worksheet Functions 5 January 5th 06 06:37 PM
How to format cells in Excel for time in format mm:ss.00 Very Timely Excel Worksheet Functions 0 March 30th 05 07:35 AM


All times are GMT +1. The time now is 11:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"