Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
GRABrendan
 
Posts: n/a
Default HOW DO I CHANGE QUERY DATA TO A DATE RANGE?

I download a query that has a column of dates displayed without the
seperators (20040830). When I try to convert these cells to reflect a date,
nothing changes. No matter what I tell the format to llok like, it remains as
20040830. I can only change this to 2004/08/30 or 30/08/2004 by physically
going in and changing it in each cell.
  #2   Report Post  
R.VENKATARAMAN
 
Posts: n/a
Default

suppose the date_text (0040830 is in A1

enter in B1
=LEFT(A1,4)
enter in C1
=MID(A1,5,2)
enter in D1
=RIGHT(A1,2)
enter in E1
=DATE(B1,C1,D1)

you get in E1 mm/dd/yy
if other date_texts are A2 down
copy B1, C1,D1 and E1 down

there may be more elegant solutions




"GRABrendan" wrote in message
...
I download a query that has a column of dates displayed without the
seperators (20040830). When I try to convert these cells to reflect a

date,
nothing changes. No matter what I tell the format to llok like, it remains

as
20040830. I can only change this to 2004/08/30 or 30/08/2004 by physically
going in and changing it in each cell.



  #3   Report Post  
GRABrendan
 
Posts: n/a
Default



"R.VENKATARAMAN" wrote:

suppose the date_text (0040830 is in A1

enter in B1
=LEFT(A1,4)
enter in C1
=MID(A1,5,2)
enter in D1
=RIGHT(A1,2)
enter in E1
=DATE(B1,C1,D1)

you get in E1 mm/dd/yy
if other date_texts are A2 down
copy B1, C1,D1 and E1 down

there may be more elegant solutions




"GRABrendan" wrote in message
...
I download a query that has a column of dates displayed without the
seperators (20040830). When I try to convert these cells to reflect a

date,
nothing changes. No matter what I tell the format to llok like, it remains

as
20040830. I can only change this to 2004/08/30 or 30/08/2004 by physically
going in and changing it in each cell.



Thank you very much, that helped me get just what I wanted.

  #4   Report Post  
Myrna Larson
 
Posts: n/a
Default

Select the column of dates. Then use Data/Text to Columns. On the first 2
dialogs, click Next. On the 3rd, select Date and the format YMD. Then click
Finish.

On Mon, 26 Sep 2005 03:02:02 -0700, "GRABrendan"
wrote:



"R.VENKATARAMAN" wrote:

suppose the date_text (0040830 is in A1

enter in B1
=LEFT(A1,4)
enter in C1
=MID(A1,5,2)
enter in D1
=RIGHT(A1,2)
enter in E1
=DATE(B1,C1,D1)

you get in E1 mm/dd/yy
if other date_texts are A2 down
copy B1, C1,D1 and E1 down

there may be more elegant solutions




"GRABrendan" wrote in message
...
I download a query that has a column of dates displayed without the
seperators (20040830). When I try to convert these cells to reflect a

date,
nothing changes. No matter what I tell the format to llok like, it

remains
as
20040830. I can only change this to 2004/08/30 or 30/08/2004 by

physically
going in and changing it in each cell.



Thank you very much, that helped me get just what I wanted.

  #5   Report Post  
R.VENKATARAMAN
 
Posts: n/a
Default

Mr. Brendan-Ms. Mryna Larson's solution is much more elegant than mine


==============================
"Myrna Larson" wrote in message
...
Select the column of dates. Then use Data/Text to Columns. On the first 2
dialogs, click Next. On the 3rd, select Date and the format YMD. Then

click
Finish.

On Mon, 26 Sep 2005 03:02:02 -0700, "GRABrendan"
wrote:



"R.VENKATARAMAN" wrote:

suppose the date_text (0040830 is in A1

enter in B1
=LEFT(A1,4)
enter in C1
=MID(A1,5,2)
enter in D1
=RIGHT(A1,2)
enter in E1
=DATE(B1,C1,D1)

you get in E1 mm/dd/yy
if other date_texts are A2 down
copy B1, C1,D1 and E1 down

there may be more elegant solutions




"GRABrendan" wrote in message
...
I download a query that has a column of dates displayed without the
seperators (20040830). When I try to convert these cells to reflect a
date,
nothing changes. No matter what I tell the format to llok like, it

remains
as
20040830. I can only change this to 2004/08/30 or 30/08/2004 by

physically
going in and changing it in each cell.


Thank you very much, that helped me get just what I wanted.



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
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
Data range properties baz Excel Discussion (Misc queries) 1 April 1st 05 09:37 AM
data range properties baz Excel Discussion (Misc queries) 0 April 1st 05 08:53 AM
1-variable Data Table dependent on MS Query fails to update correctly [email protected] Excel Discussion (Misc queries) 0 March 30th 05 07:43 PM


All times are GMT +1. The time now is 05:12 PM.

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"