Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jack
 
Posts: n/a
Default Converting text to dates

Hi -

I'm trying to convert a simple value of 7152004 to a date, and can't seem to
figure it out. When I format cells to date, I get a long #### response, and
I'm not getting that b/c of the column size. I've tried to do DATEVALUE on
the cell, but it gives a VALUE! error. Any suggestions? Thanks!
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

In an adjacent cell, use

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

--

HTH

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


"Jack" wrote in message
...
Hi -

I'm trying to convert a simple value of 7152004 to a date, and can't seem

to
figure it out. When I format cells to date, I get a long #### response,

and
I'm not getting that b/c of the column size. I've tried to do DATEVALUE on
the cell, but it gives a VALUE! error. Any suggestions? Thanks!



  #3   Report Post  
Jack
 
Posts: n/a
Default

That worked! Thanks!

"Bob Phillips" wrote:

In an adjacent cell, use

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

--

HTH

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


"Jack" wrote in message
...
Hi -

I'm trying to convert a simple value of 7152004 to a date, and can't seem

to
figure it out. When I format cells to date, I get a long #### response,

and
I'm not getting that b/c of the column size. I've tried to do DATEVALUE on
the cell, but it gives a VALUE! error. Any suggestions? Thanks!




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
Converting Numbers to Text properly Shirley Munro Excel Discussion (Misc queries) 1 February 16th 05 03:01 PM
roundoff when converting text to numbers Jack Excel Worksheet Functions 3 January 30th 05 01:51 AM
converting numbers to text and prefill text field with 0's Jan Buckley Excel Discussion (Misc queries) 2 January 20th 05 09:03 PM
Stop Excel from converting text labels in CSV files to Values Just Want a Label! Excel Discussion (Misc queries) 1 January 11th 05 04:51 PM
COUNTIF With Multiple Dates, Columns and Text Shannon Excel Worksheet Functions 4 November 26th 04 11:12 PM


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