Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
samhain
 
Posts: n/a
Default Converting number or text to a Date Format


Hi there,

First post.....

I downloaded a file from my database (not access) which outputs the
file to .txt

Using excel I can set each colum for the text and it puts each piece of
data in to a column etc. Very nice.

One of the pieces of data I output from the system is a persons date of
birth, however, it is shown as (an example) 19340101. I can convert this
to something that looks nicer by using
=RIGHT(A1,2)&"/"&MID(A1,5,2)&"/"&LEFT(A1,4) but that doesn't convert
the number in to a date format.

I need to convert 19340101 to 01/01/1934 in a date format that excel
can understand.

Any ideas.

Thanks in advance.

Stewart


--
samhain
------------------------------------------------------------------------
samhain's Profile: http://www.hightechtalks.com/m92
View this thread: http://www.hightechtalks.com/t2262615

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default Converting number or text to a Date Format

Try a formula of

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

--

HTH

RP
(remove nothere from the email address if mailing direct)


"samhain" wrote in message
...

Hi there,

First post.....

I downloaded a file from my database (not access) which outputs the
file to .txt

Using excel I can set each colum for the text and it puts each piece of
data in to a column etc. Very nice.

One of the pieces of data I output from the system is a persons date of
birth, however, it is shown as (an example) 19340101. I can convert this
to something that looks nicer by using
=RIGHT(A1,2)&"/"&MID(A1,5,2)&"/"&LEFT(A1,4) but that doesn't convert
the number in to a date format.

I need to convert 19340101 to 01/01/1934 in a date format that excel
can understand.

Any ideas.

Thanks in advance.

Stewart


--
samhain
------------------------------------------------------------------------
samhain's Profile: http://www.hightechtalks.com/m92
View this thread: http://www.hightechtalks.com/t2262615



  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default Converting number or text to a Date Format

Another way:
select that column of "dates"
data|text to columns
fixed width -- but don't subdivide that field
choose ymd (ydm???) as the field type
format the way you want.



samhain wrote:

Hi there,

First post.....

I downloaded a file from my database (not access) which outputs the
file to .txt

Using excel I can set each colum for the text and it puts each piece of
data in to a column etc. Very nice.

One of the pieces of data I output from the system is a persons date of
birth, however, it is shown as (an example) 19340101. I can convert this
to something that looks nicer by using
=RIGHT(A1,2)&"/"&MID(A1,5,2)&"/"&LEFT(A1,4) but that doesn't convert
the number in to a date format.

I need to convert 19340101 to 01/01/1934 in a date format that excel
can understand.

Any ideas.

Thanks in advance.

Stewart

--
samhain
------------------------------------------------------------------------
samhain's Profile: http://www.hightechtalks.com/m92
View this thread: http://www.hightechtalks.com/t2262615


--

Dave Peterson
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
How to change text format .126 to number format 0.126 ? vitality Excel Worksheet Functions 2 October 6th 05 01:02 PM
change custom format number to text joey Excel Discussion (Misc queries) 3 September 20th 05 09:35 PM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
excel - numbers as text Thuferhawat New Users to Excel 12 January 24th 05 09:29 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 06:40 AM.

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"