#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 68
Default Convert test to date

I have a cell, F5, that has 20071225 in it. I want to convert this to a date
field that displays as 12/25/2007

When I use the function =DATEVALUE(F5) , I get #VALUE!

Can you tell me how to do this without using substringing and concantenating

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Convert test to date

Try this:

Select your column of "dates"

From the Excel Main Menu:
<data<text-to-columns
Click [Next]
Click [Next]
Check: Date.....YMD
Click [Finish]

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"GKW in GA" wrote in message
...
I have a cell, F5, that has 20071225 in it. I want to convert this to a
date
field that displays as 12/25/2007

When I use the function =DATEVALUE(F5) , I get #VALUE!

Can you tell me how to do this without using substringing and
concantenating



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 68
Default Convert test to date

no, I just end up with 20071225, same as the source cell

"Ron Coderre" wrote:

Try this:

Select your column of "dates"

From the Excel Main Menu:
<data<text-to-columns
Click [Next]
Click [Next]
Check: Date.....YMD
Click [Finish]

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"GKW in GA" wrote in message
...
I have a cell, F5, that has 20071225 in it. I want to convert this to a
date
field that displays as 12/25/2007

When I use the function =DATEVALUE(F5) , I get #VALUE!

Can you tell me how to do this without using substringing and
concantenating




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Convert test to date

Are you *sure* you're setting the field to YMD.....(Year Month Day)?

--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)


"GKW in GA" wrote in message
...
no, I just end up with 20071225, same as the source cell

"Ron Coderre" wrote:

Try this:

Select your column of "dates"

From the Excel Main Menu:
<data<text-to-columns
Click [Next]
Click [Next]
Check: Date.....YMD
Click [Finish]

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"GKW in GA" wrote in message
...
I have a cell, F5, that has 20071225 in it. I want to convert this to a
date
field that displays as 12/25/2007

When I use the function =DATEVALUE(F5) , I get #VALUE!

Can you tell me how to do this without using substringing and
concantenating






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 68
Default Convert test to date

yes, I select the field that has the 20071225 and then select data/text to
columns and follow the instructions you listed, choosing DATe..YMD

"Ron Coderre" wrote:

Are you *sure* you're setting the field to YMD.....(Year Month Day)?

--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)


"GKW in GA" wrote in message
...
no, I just end up with 20071225, same as the source cell

"Ron Coderre" wrote:

Try this:

Select your column of "dates"

From the Excel Main Menu:
<data<text-to-columns
Click [Next]
Click [Next]
Check: Date.....YMD
Click [Finish]

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"GKW in GA" wrote in message
...
I have a cell, F5, that has 20071225 in it. I want to convert this to a
date
field that displays as 12/25/2007

When I use the function =DATEVALUE(F5) , I get #VALUE!

Can you tell me how to do this without using substringing and
concantenating









  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Convert test to date

OK....Let's troubleshoot.

In a new worksheet, enter 20071225 in a column of cells.
Then try the method I posted.
Does that work?

If yes....
Go to your "real" data and replace one of the values by
entering 20071225 in one of the cells
Try the method again....
Does only THAT cell become a date?

If yes...something's going on with your data...
If no....Then I'm puzzled.

Let us know what you discover.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)



"GKW in GA" wrote in message
...
yes, I select the field that has the 20071225 and then select data/text to
columns and follow the instructions you listed, choosing DATe..YMD

"Ron Coderre" wrote:

Are you *sure* you're setting the field to YMD.....(Year Month Day)?

--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)


"GKW in GA" wrote in message
...
no, I just end up with 20071225, same as the source cell

"Ron Coderre" wrote:

Try this:

Select your column of "dates"

From the Excel Main Menu:
<data<text-to-columns
Click [Next]
Click [Next]
Check: Date.....YMD
Click [Finish]

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"GKW in GA" wrote in message
...
I have a cell, F5, that has 20071225 in it. I want to convert this to
a
date
field that displays as 12/25/2007

When I use the function =DATEVALUE(F5) , I get #VALUE!

Can you tell me how to do this without using substringing and
concantenating









  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Convert test to date

On Tue, 11 Dec 2007 12:03:00 -0800, GKW in GA
wrote:

I have a cell, F5, that has 20071225 in it. I want to convert this to a date
field that displays as 12/25/2007

When I use the function =DATEVALUE(F5) , I get #VALUE!

Can you tell me how to do this without using substringing and concantenating


This is very strange.

With your value in A1, what is the result of this formula:

=DATE(INT(A1/10000),MOD(INT(A1/100),100),MOD(A1,100))

??
--ron
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 68
Default Convert test to date

Using your formula below, 20071225 yields 12/25/2007

"Ron Rosenfeld" wrote:

On Tue, 11 Dec 2007 12:03:00 -0800, GKW in GA
wrote:

I have a cell, F5, that has 20071225 in it. I want to convert this to a date
field that displays as 12/25/2007

When I use the function =DATEVALUE(F5) , I get #VALUE!

Can you tell me how to do this without using substringing and concantenating


This is very strange.

With your value in A1, what is the result of this formula:

=DATE(INT(A1/10000),MOD(INT(A1/100),100),MOD(A1,100))

??
--ron

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Convert test to date

On Thu, 13 Dec 2007 08:23:02 -0800, GKW in GA
wrote:

Using your formula below, 20071225 yields 12/25/2007

"Ron Rosenfeld" wrote:

On Tue, 11 Dec 2007 12:03:00 -0800, GKW in GA
wrote:

I have a cell, F5, that has 20071225 in it. I want to convert this to a date
field that displays as 12/25/2007

When I use the function =DATEVALUE(F5) , I get #VALUE!

Can you tell me how to do this without using substringing and concantenating


This is very strange.

With your value in A1, what is the result of this formula:

=DATE(INT(A1/10000),MOD(INT(A1/100),100),MOD(A1,100))

??
--ron



Well, at least that gives you a method of converting the date. But I sure
don't understand why the Data/Text-to-Columns wizard fails.
--ron
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
test to Julian date curtev Excel Discussion (Misc queries) 10 July 9th 07 11:46 PM
Using a logical test on a date is failing Les Thompson Excel Worksheet Functions 7 March 22nd 07 05:55 PM
Calculate mean of test scores from rows of test answers RiotLoadTime Excel Discussion (Misc queries) 1 July 26th 06 05:14 PM
Test plus date and time Kelly Excel Worksheet Functions 1 December 12th 05 07:51 PM
test for date in column question Buster Excel Worksheet Functions 1 December 10th 04 04:38 AM


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