Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 94
Default converting text strings into dates

i'm having a1:a10 dates. but when i check it out whether they are real
dates by using datevalue function thru b1:b10 some of them giving
#value errors. how can i convert all of them to real dates?


-via135
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default converting text strings into dates

It depends which format you have your text strings, but it may be worth
trying Data/ Text to Columns/ and at the final stage of the Wizard specify
the format of the date from which you are starting (e.g. DMY).

If you've got additional characters such as extra spaces, commas, etc., then
you may find you need to remove them before they will be accepted as dates.
--
David Biddulph

"via135" wrote in message
...
i'm having a1:a10 dates. but when i check it out whether they are real
dates by using datevalue function thru b1:b10 some of them giving
#value errors. how can i convert all of them to real dates?

-via135



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 94
Default converting text strings into dates

On Nov 18, 12:56 pm, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
It depends which format you have your text strings, but it may be worth
trying Data/ Text to Columns/ and at the final stage of the Wizard specify
the format of the date from which you are starting (e.g. DMY).

If you've got additional characters such as extra spaces, commas, etc., then
you may find you need to remove them before they will be accepted as dates.
--
David Biddulph

"via135" wrote in message

...



i'm having a1:a10 dates. but when i check it out whether they are real
dates by using datevalue function thru b1:b10 some of them giving
#value errors. how can i convert all of them to real dates?


-via135- Hide quoted text -


- Show quoted text -


i've tried with TTC as well as the TRIM function but all in vain..
any other clue?

-via135
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default converting text strings into dates

Hi

Data Text to Columns normally resolves such matters.
What is the formula you are using in B1, which is telling you that they are
not true Excel dates?

--
Regards
Roger Govier



"via135" wrote in message
...
On Nov 18, 12:56 pm, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
It depends which format you have your text strings, but it may be worth
trying Data/ Text to Columns/ and at the final stage of the Wizard
specify
the format of the date from which you are starting (e.g. DMY).

If you've got additional characters such as extra spaces, commas, etc.,
then
you may find you need to remove them before they will be accepted as
dates.
--
David Biddulph

"via135" wrote in message

...



i'm having a1:a10 dates. but when i check it out whether they are real
dates by using datevalue function thru b1:b10 some of them giving
#value errors. how can i convert all of them to real dates?


-via135- Hide quoted text -


- Show quoted text -


i've tried with TTC as well as the TRIM function but all in vain..
any other clue?

-via135



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 94
Default converting text strings into dates

On Nov 18, 1:19 pm, "Roger Govier" <rogerattechnology4NOSPAMu.co.uk
wrote:
Hi

Data Text to Columns normally resolves such matters.
What is the formula you are using in B1, which is telling you that they are
not true Excel dates?

--
Regards
Roger Govier

"via135" wrote in message

...



On Nov 18, 12:56 pm, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
It depends which format you have your text strings, but it may be worth
trying Data/ Text to Columns/ and at the final stage of the Wizard
specify
the format of the date from which you are starting (e.g. DMY).


If you've got additional characters such as extra spaces, commas, etc.,
then
you may find you need to remove them before they will be accepted as
dates.
--
David Biddulph


"via135" wrote in message


...


i'm having a1:a10 dates. but when i check it out whether they are real
dates by using datevalue function thru b1:b10 some of them giving
#value errors. how can i convert all of them to real dates?


-via135- Hide quoted text -


- Show quoted text -


i've tried with TTC as well as the TRIM function but all in vain..
any other clue?


-via135- Hide quoted text -


- Show quoted text -


=datevalue(a1)

and copying it thru b10

-via135


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default converting text strings into dates

Hi

=datevalue(a1)

and copying it thru b10


If the value in A1 is a true Excel date, then you will get a #VALUE error.
If you want to test if it is a true date, then
=A1+0
will return the same date if true, or an error if not.

--
Regards
Roger Govier



"via135" wrote in message
...
On Nov 18, 1:19 pm, "Roger Govier" <rogerattechnology4NOSPAMu.co.uk
wrote:
Hi

Data Text to Columns normally resolves such matters.
What is the formula you are using in B1, which is telling you that they
are
not true Excel dates?

--
Regards
Roger Govier

"via135" wrote in message

...



On Nov 18, 12:56 pm, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
It depends which format you have your text strings, but it may be
worth
trying Data/ Text to Columns/ and at the final stage of the Wizard
specify
the format of the date from which you are starting (e.g. DMY).


If you've got additional characters such as extra spaces, commas,
etc.,
then
you may find you need to remove them before they will be accepted as
dates.
--
David Biddulph


"via135" wrote in message


...


i'm having a1:a10 dates. but when i check it out whether they are
real
dates by using datevalue function thru b1:b10 some of them giving
#value errors. how can i convert all of them to real dates?


-via135- Hide quoted text -


- Show quoted text -


i've tried with TTC as well as the TRIM function but all in vain..
any other clue?


-via135- Hide quoted text -


- Show quoted text -


=datevalue(a1)

and copying it thru b10

-via135



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default converting text strings into dates

Give some examples of the data you have in column A, so we can see the
variations in the formats used.

Pete

On Nov 18, 9:14 am, via135 wrote:

=datevalue(a1)

and copying it thru b10

-via135

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
converting concatenated text strings into formulas z.entropic Excel Worksheet Functions 0 June 5th 06 06:15 PM
Converting Text Values to Dates Frank Winston Excel Discussion (Misc queries) 12 June 5th 06 11:35 AM
imported text data converting to dates ajd Excel Discussion (Misc queries) 2 December 21st 05 06:48 PM
Converting variable text strings to numeric Richgard53 Excel Discussion (Misc queries) 1 July 13th 05 06:22 AM
Converting text to dates Jack Excel Discussion (Misc queries) 2 April 25th 05 07:36 PM


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