A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Text to Date



 
 
Thread Tools Display Modes
  #1  
Old April 20th, 2010, 08:06 PM posted to microsoft.public.excel.worksheet.functions
pal
external usenet poster
 
Posts: 209
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  
Old April 20th, 2010, 08:12 PM posted to microsoft.public.excel.worksheet.functions
Luke M[_4_]
external usenet poster
 
Posts: 451
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  
Old April 20th, 2010, 08:57 PM posted to microsoft.public.excel.worksheet.functions
pal
external usenet poster
 
Posts: 209
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  
Old April 20th, 2010, 09:05 PM posted to microsoft.public.excel.worksheet.functions
Glenn[_6_]
external usenet poster
 
Posts: 1,245
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  
Old April 20th, 2010, 09:50 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
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  
Old April 21st, 2010, 03:40 AM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
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  
Old April 21st, 2010, 12:56 PM posted to microsoft.public.excel.worksheet.functions
pal
external usenet poster
 
Posts: 209
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  
Old April 21st, 2010, 01:10 PM posted to microsoft.public.excel.worksheet.functions
Roger Govier[_8_]
external usenet poster
 
Posts: 338
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  
Old April 21st, 2010, 03:18 PM posted to microsoft.public.excel.worksheet.functions
Glenn[_6_]
external usenet poster
 
Posts: 1,245
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.
.

.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:22 AM.


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