ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Converting text to dates (https://www.excelbanter.com/excel-discussion-misc-queries/23495-converting-text-dates.html)

Jack

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!

Bob Phillips

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!




Jack

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!






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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com