Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
colin
 
Posts: n/a
Default Dates in Excel - yyyymmdd, not formatted, how do I format this?

I have a column of dates, they are in yyyymmdd format (no slashes or
anything) and they're text. I cannot format them, how do I do this?

Basically, I want to change 19700429 to 4/29/1970, but for a whole column of
different dates (dates not in sequential order).

Thanks in advance!!!!!
  #2   Report Post  
Jonathan Cooper
 
Posts: n/a
Default

Insert a helper column. Then, assuming your "19700429" is in cell A1, paste
the following formula into B1.

=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))

Copy the formula down and you'll be all set. Then if you want to get rid of
the helper column, copy the values in column B, and paste values on top of
column A.

"colin" wrote:

I have a column of dates, they are in yyyymmdd format (no slashes or
anything) and they're text. I cannot format them, how do I do this?

Basically, I want to change 19700429 to 4/29/1970, but for a whole column of
different dates (dates not in sequential order).

Thanks in advance!!!!!

  #3   Report Post  
colin
 
Posts: n/a
Default

That worked perfet, thanks Jonathan!

"Jonathan Cooper" wrote:

Insert a helper column. Then, assuming your "19700429" is in cell A1, paste
the following formula into B1.

=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))

Copy the formula down and you'll be all set. Then if you want to get rid of
the helper column, copy the values in column B, and paste values on top of
column A.

"colin" wrote:

I have a column of dates, they are in yyyymmdd format (no slashes or
anything) and they're text. I cannot format them, how do I do this?

Basically, I want to change 19700429 to 4/29/1970, but for a whole column of
different dates (dates not in sequential order).

Thanks in advance!!!!!

  #4   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Thu, 29 Sep 2005 08:52:03 -0700, "colin"
wrote:

I have a column of dates, they are in yyyymmdd format (no slashes or
anything) and they're text. I cannot format them, how do I do this?

Basically, I want to change 19700429 to 4/29/1970, but for a whole column of
different dates (dates not in sequential order).

Thanks in advance!!!!!


Two ways:

Select the column
Data/Text to Columns
Next
Next
Column Data Format/Date: YMD
Finish

--------------

or you can use a formula in a "helper" column

=--TEXT(A1,"0000\/00\/00")




--ron
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
Dates in Excel linked with Outlook Calendar itsupport@cthomes Excel Worksheet Functions 3 May 19th 05 09:12 PM
Why won't it Excel fill in weekly dates now, changes them to daily Larry Excel Worksheet Functions 1 April 6th 05 12:57 PM
how do I select unique dates from a database in Excel? pomalley Excel Worksheet Functions 3 March 9th 05 03:02 PM
Ensure dates imported into Excel 2003 are shown in DD/MM/YYY form. KymY Excel Discussion (Misc queries) 3 February 11th 05 02:28 PM
dates in Excel 2003 [email protected] Excel Discussion (Misc queries) 3 January 4th 05 11:04 PM


All times are GMT +1. The time now is 05:44 PM.

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

About Us

"It's about Microsoft Excel"