#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default Date Formatting

Hi,

I'm trying to format a system generated file to be more user friendly. The
file outputs dates like this: 20080714. Is there any way that I can change
the format to 07/14/2008 through a macro or a worksheet formula? I tried to
format the cells as dates but it didn't work.

Any ideas would be greatly appreciated.

Thanks!
Michael
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Date Formatting

Try Data Text to Columns, it's easiest
Select just the col of "dates". Click Data Text to Columns. Click
NextNext. In step3, under "Col data format": Check "Date", choose: "YMD"
from the droplist, click Finish
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"MichaelR" wrote:
I'm trying to format a system generated file to be more user friendly. The
file outputs dates like this: 20080714. Is there any way that I can change
the format to 07/14/2008 through a macro or a worksheet formula? I tried to
format the cells as dates but it didn't work.

Any ideas would be greatly appreciated.

Thanks!
Michael

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 208
Default Date Formatting


try this...
=+DATE(LEFT(a1,4),MID(a1,5,2),RIGHT(a1,2))


On Jun 23, 10:20*am, MichaelR
wrote:
Hi,

I'm trying to format a system generated file to be more user friendly. The
file outputs dates like this: 20080714. Is there any way that I can change
the format to 07/14/2008 through a macro or a worksheet formula? I tried to
format the cells as dates but it didn't work.

Any ideas would be greatly appreciated.

Thanks!
Michael


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Date Formatting

=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2)) and format as a date
--
Gary''s Student - gsnu200793


"MichaelR" wrote:

Hi,

I'm trying to format a system generated file to be more user friendly. The
file outputs dates like this: 20080714. Is there any way that I can change
the format to 07/14/2008 through a macro or a worksheet formula? I tried to
format the cells as dates but it didn't work.

Any ideas would be greatly appreciated.

Thanks!
Michael

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Date Formatting

You could do it through either a macro or a workbook formula, but this
is easier:

Select your column of dates. Choose Data/Text to Columns. Click Next,
Next. Choose YMD in the Date dropdown, click Finish.

Format the column as you wish.

In article ,
MichaelR wrote:

Hi,

I'm trying to format a system generated file to be more user friendly. The
file outputs dates like this: 20080714. Is there any way that I can change
the format to 07/14/2008 through a macro or a worksheet formula? I tried to
format the cells as dates but it didn't work.

Any ideas would be greatly appreciated.

Thanks!
Michael

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
conditional formatting for cell date to equal today's date Sistereinstein Excel Worksheet Functions 2 September 10th 12 07:53 PM
Date Formatting (*) jbc Excel Discussion (Misc queries) 2 October 9th 06 06:09 PM
Formatting Date newguy Excel Discussion (Misc queries) 4 September 18th 06 01:49 PM
date formatting BernieH Excel Discussion (Misc queries) 2 May 30th 05 03:33 PM
formatting date Torrance Pollard Excel Worksheet Functions 2 April 2nd 05 05:03 PM


All times are GMT +1. The time now is 02:39 AM.

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"