Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formatting date & time

I am importing a file from another program and the date
and time displays as follows: 200403111449. How do I
format this date, so that it shows 3/11/04 14:49 - either
in 1 or 2 cells.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Formatting date & time

Format the cell as d/mm/yy hh:mm

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Jodi Bauman" wrote in message
...
I am importing a file from another program and the date
and time displays as follows: 200403111449. How do I
format this date, so that it shows 3/11/04 14:49 - either
in 1 or 2 cells.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Formatting date & time

Hi
try the following formulas
B1:
=DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))
format as date

C1:
=TIME(MID(A1,9,2),RIGHT(A1,2),0)
format as time

--
Regards
Frank Kabel
Frankfurt, Germany

"Jodi Bauman" schrieb im Newsbeitrag
...
I am importing a file from another program and the date
and time displays as follows: 200403111449. How do I
format this date, so that it shows 3/11/04 14:49 - either
in 1 or 2 cells.


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
Date and Time formatting Shannon Excel Discussion (Misc queries) 1 December 23rd 07 08:19 AM
Date and Time Formatting Daren Excel Worksheet Functions 2 June 27th 07 03:10 PM
Formatting Date/Time for NOW() Rob Excel Discussion (Misc queries) 2 April 30th 07 02:34 PM
Date and time formatting Marco Excel Discussion (Misc queries) 7 February 25th 05 10:07 PM
Time & Date Formatting Goodvibes Excel Worksheet Functions 3 December 29th 04 06:13 PM


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