#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PAL PAL is offline
external usenet poster
 
Posts: 200
Default Text to Date

I have been given a database dump (thousands of rows) that put the dates in a
text format like this:

Aug/11/2009

Is there any way to put this into a date format? Even if it means creating a
new field breaking it up and doing some extra steps.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 457
Default Text to Date

Change to appropriate cell reference:
=DATEVALUE(SUBSTITUTE(A1,"/",", "))

--
Best Regards,

Luke M
"PAL" wrote in message
...
I have been given a database dump (thousands of rows) that put the dates in
a
text format like this:

Aug/11/2009

Is there any way to put this into a date format? Even if it means creating
a
new field breaking it up and doing some extra steps.

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PAL PAL is offline
external usenet poster
 
Posts: 200
Default Text to Date

Shouldn't this work also....

=IF(R2="","",(DATEVALUE(SUBSTITUTE(R2,"/",", "))))

"Luke M" wrote:

Change to appropriate cell reference:
=DATEVALUE(SUBSTITUTE(A1,"/",", "))

--
Best Regards,

Luke M
"PAL" wrote in message
...
I have been given a database dump (thousands of rows) that put the dates in
a
text format like this:

Aug/11/2009

Is there any way to put this into a date format? Even if it means creating
a
new field breaking it up and doing some extra steps.

Thanks.



.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Text to Date

Yes, it should. Are you saying it isn't?

PAL wrote:
Shouldn't this work also....

=IF(R2="","",(DATEVALUE(SUBSTITUTE(R2,"/",", "))))

"Luke M" wrote:

Change to appropriate cell reference:
=DATEVALUE(SUBSTITUTE(A1,"/",", "))

--
Best Regards,

Luke M
"PAL" wrote in message
...
I have been given a database dump (thousands of rows) that put the dates in
a
text format like this:

Aug/11/2009

Is there any way to put this into a date format? Even if it means creating
a
new field breaking it up and doing some extra steps.

Thanks.


.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Text to Date

Using the menu commnd Text to Columns worked for me.

Select the range of "dates".
Goto the menu DataText to Columns
Click Next twice
In Step 3 of the wizard select Date and from the drop down select MDY
Click Finish

Then format in the date style of your choice.

--
Biff
Microsoft Excel MVP


"PAL" wrote in message
...
I have been given a database dump (thousands of rows) that put the dates in
a
text format like this:

Aug/11/2009

Is there any way to put this into a date format? Even if it means creating
a
new field breaking it up and doing some extra steps.

Thanks.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Text to Date

You can also select all the dates, click Edit/Replace on the menu bar, put a
"/" (without the quote marks) in the "Find what" field and ", " (comma
space, again, without the quote marks) in the "Replace with" field and
finish off by clicking the "Replace All" button.

--
Rick (MVP - Excel)



"PAL" wrote in message
...
I have been given a database dump (thousands of rows) that put the dates
in a
text format like this:

Aug/11/2009

Is there any way to put this into a date format? Even if it means creating
a
new field breaking it up and doing some extra steps.

Thanks.


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PAL PAL is offline
external usenet poster
 
Posts: 200
Default Text to Date

Correct. It is not. I get the pesky, #Value!. Perhaps ISERROR would work,
but it isn't either.

"Glenn" wrote:

Yes, it should. Are you saying it isn't?

PAL wrote:
Shouldn't this work also....

=IF(R2="","",(DATEVALUE(SUBSTITUTE(R2,"/",", "))))

"Luke M" wrote:

Change to appropriate cell reference:
=DATEVALUE(SUBSTITUTE(A1,"/",", "))

--
Best Regards,

Luke M
"PAL" wrote in message
...
I have been given a database dump (thousands of rows) that put the dates in
a
text format like this:

Aug/11/2009

Is there any way to put this into a date format? Even if it means creating
a
new field breaking it up and doing some extra steps.

Thanks.

.

.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 376
Default Text to Date

Hi

Did you not try Biff's suggestion of
Datatext to ColumnsNextNextDateM/D/Y

That works perfectly and is the easiest way to go IMO.
--
Regards
Roger Govier

PAL wrote:
Correct. It is not. I get the pesky, #Value!. Perhaps ISERROR would work,
but it isn't either.

"Glenn" wrote:

Yes, it should. Are you saying it isn't?

PAL wrote:
Shouldn't this work also....

=IF(R2="","",(DATEVALUE(SUBSTITUTE(R2,"/",", "))))

"Luke M" wrote:

Change to appropriate cell reference:
=DATEVALUE(SUBSTITUTE(A1,"/",", "))

--
Best Regards,

Luke M
"PAL" wrote in message
...
I have been given a database dump (thousands of rows) that put the dates in
a
text format like this:

Aug/11/2009

Is there any way to put this into a date format? Even if it means creating
a
new field breaking it up and doing some extra steps.

Thanks.
.

.

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Text to Date

The supplied formula works perfectly with the data you provided below
("Aug/11/2009"). Exactly what input and formula is giving you a #Value! result?

Keep this information from the help file in mind:


Syntax

DATEVALUE(date_text)

Using the default date system in Excel for Windows, date_text must represent a
date from January 1, 1900, to December 31, 9999. DATEVALUE returns the #VALUE!
error value if date_text is out of this range.


PAL wrote:
Correct. It is not. I get the pesky, #Value!. Perhaps ISERROR would work,
but it isn't either.

"Glenn" wrote:

Yes, it should. Are you saying it isn't?

PAL wrote:
Shouldn't this work also....

=IF(R2="","",(DATEVALUE(SUBSTITUTE(R2,"/",", "))))

"Luke M" wrote:

Change to appropriate cell reference:
=DATEVALUE(SUBSTITUTE(A1,"/",", "))

--
Best Regards,

Luke M
"PAL" wrote in message
...
I have been given a database dump (thousands of rows) that put the dates in
a
text format like this:

Aug/11/2009

Is there any way to put this into a date format? Even if it means creating
a
new field breaking it up and doing some extra steps.

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
Excel 2007 text import as text not date dar Excel Discussion (Misc queries) 3 September 2nd 09 07:25 PM
convert a text date to a true date JR Hester Excel Discussion (Misc queries) 20 November 15th 07 07:15 PM
how do i convert text to date (mm/yy text to mm/dd/yyyy date)? lindsey Excel Discussion (Misc queries) 1 July 27th 07 10:05 PM
Concatenating a Text and a Date without losing orginal Date Format Hi_no_Tori Excel Discussion (Misc queries) 5 September 17th 06 06:35 PM
Help: How do I convert a text date into a real date format japorms Excel Worksheet Functions 4 August 2nd 06 06:36 PM


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