#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Time Format

I am a meeting planner and regularly get arrival information from my clients
in miliatry format - sometimes even without a colon. I am trying to make a 4
digit
number already on a spreadsheet into a time format. Does anyone know how?
Example: 1135 (should be 11:35 am)
When you click the cell and change format to time - it formats it, but loses
the 1135 time and makes it 12:00 AM.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default Time Format

Hi Kerry,

in an auxilar column use

=time(left(a2,2),right(a2,2),0)

and format

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Kerry O'Brien" escreveu:

I am a meeting planner and regularly get arrival information from my clients
in miliatry format - sometimes even without a colon. I am trying to make a 4
digit
number already on a spreadsheet into a time format. Does anyone know how?
Example: 1135 (should be 11:35 am)
When you click the cell and change format to time - it formats it, but loses
the 1135 time and makes it 12:00 AM.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Time Format

Thank you so much.

"Marcelo" wrote:

Hi Kerry,

in an auxilar column use

=time(left(a2,2),right(a2,2),0)

and format

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Kerry O'Brien" escreveu:

I am a meeting planner and regularly get arrival information from my clients
in miliatry format - sometimes even without a colon. I am trying to make a 4
digit
number already on a spreadsheet into a time format. Does anyone know how?
Example: 1135 (should be 11:35 am)
When you click the cell and change format to time - it formats it, but loses
the 1135 time and makes it 12:00 AM.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default Time Format

u r welcome

thanks for the feedback, glad to help
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Kerry O''''Brien" escreveu:

Thank you so much.

"Marcelo" wrote:

Hi Kerry,

in an auxilar column use

=time(left(a2,2),right(a2,2),0)

and format

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Kerry O'Brien" escreveu:

I am a meeting planner and regularly get arrival information from my clients
in miliatry format - sometimes even without a colon. I am trying to make a 4
digit
number already on a spreadsheet into a time format. Does anyone know how?
Example: 1135 (should be 11:35 am)
When you click the cell and change format to time - it formats it, but loses
the 1135 time and makes it 12:00 AM.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 427
Default Time Format

You have the solution in a diffrent reply.

but an explanation of why you get 12:00 am

Time and Date formats both treat the underlying general value as a day
value
ie now is 38993.8694444444

The 1135 gets treated as a date ie 2nd August 1903 (uk dates)
and the time element is 0, ie 12:00 AM

Steve

On Tue, 03 Oct 2006 19:10:02 +0100, Kerry O'Brien <Kerry
wrote:

I am a meeting planner and regularly get arrival information from my
clients
in miliatry format - sometimes even without a colon. I am trying to
make a 4
digit
number already on a spreadsheet into a time format. Does anyone know
how?
Example: 1135 (should be 11:35 am)
When you click the cell and change format to time - it formats it, but
loses
the 1135 time and makes it 12:00 AM.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Time Format

Good afternoon, Marcelo. If I have a column with date & time, could this be
modified to insert the ":" between the hours, such as 1835 to 18:35? The
data currently had date and time in it, not just the time. Thanks! -Bill

"Marcelo" wrote:

u r welcome

thanks for the feedback, glad to help
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Kerry O''''Brien" escreveu:

Thank you so much.

"Marcelo" wrote:

Hi Kerry,

in an auxilar column use

=time(left(a2,2),right(a2,2),0)

and format

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Kerry O'Brien" escreveu:

I am a meeting planner and regularly get arrival information from my clients
in miliatry format - sometimes even without a colon. I am trying to make a 4
digit
number already on a spreadsheet into a time format. Does anyone know how?
Example: 1135 (should be 11:35 am)
When you click the cell and change format to time - it formats it, but loses
the 1135 time and makes it 12:00 AM.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default Time Format

Marcelo if your still yout there can you tell me what I would need to add to
this format to include the seconds of time?

"Marcelo" wrote:

Hi Kerry,

in an auxilar column use

=time(left(a2,2),right(a2,2),0)

and format

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Kerry O'Brien" escreveu:

I am a meeting planner and regularly get arrival information from my clients
in miliatry format - sometimes even without a colon. I am trying to make a 4
digit
number already on a spreadsheet into a time format. Does anyone know how?
Example: 1135 (should be 11:35 am)
When you click the cell and change format to time - it formats it, but loses
the 1135 time and makes it 12:00 AM.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Time Format

Where are the seconds? Are you now entering 6 digits? Also, the formula you
have will fail if you have fewer than 4 digits in the time (ie, anything
before 10:00 am).

For times entered in hhmm format, use:

=time(int(a1/100),mod(a1,100),0)

For times entered in hhmmss format, use:

=time(int(a1/10000),int(mod(a1,10000)/100),mod(a1,100))

Both formulas will support either 0, 1 or 2 digits for the hour.

Regards,
Fred.

"Arlene" wrote in message
...
Marcelo if your still yout there can you tell me what I would need to add
to
this format to include the seconds of time?

"Marcelo" wrote:

Hi Kerry,

in an auxilar column use

=time(left(a2,2),right(a2,2),0)

and format

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Kerry O'Brien" escreveu:

I am a meeting planner and regularly get arrival information from my
clients
in miliatry format - sometimes even without a colon. I am trying to
make a 4
digit
number already on a spreadsheet into a time format. Does anyone know
how?
Example: 1135 (should be 11:35 am)
When you click the cell and change format to time - it formats it, but
loses
the 1135 time and makes it 12:00 AM.


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
Exporting time from cell in 24 hr format dhinrichs47 Excel Worksheet Functions 3 October 5th 06 05:27 PM
Format number to Time in Excel? saffiyu Excel Worksheet Functions 1 August 2nd 06 04:35 AM
Time Format... Steven Sinclair Excel Discussion (Misc queries) 3 July 18th 06 10:33 PM
Time Format jimbob Excel Discussion (Misc queries) 2 March 17th 06 08:26 PM
Converting from time format to decimal and figuring the difference Steve Williams Excel Discussion (Misc queries) 1 July 30th 05 10:10 PM


All times are GMT +1. The time now is 07:09 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"