M
Mike Valente
I have decided to try and seek help rather than pulling any more hair out
I have a text file which I am importing successfully into Xcel 2003. (Win XP
Pro Svce Pack 2 & updates)
There are a number of date fields in this file in the format yyyymmdd. ie.
20051013
This is a format that Xcel does not recognise.
To produce a regognised date format I am using the formula
=MID(N2,7,2)&"/"&MID(N2,5,2)&"/"&MID(N2,1,4) where n2 is the cell containing
the imported date field, this produces a dd/mm/yyyy format for the date
field in a different target cell. ie. 13/10/2005
When I try and FORMAT CELLS, Date, another date format, nothing happens.
This is true if I copy and then paste values only or leave as a formula.
From this I interprit that the cell contents is not recognised by Xcel as a
date.
If, however I type in a date using the format dd/mm/yyyy, identical to what
is produced by the formula, Xcel immediately recognises this as a date and
allows the format to be changed with the FORMAT CELLS, Date etc.
Thus I am led to conclude that as the product of a formula the number,
although in dd/mm/yyyy format will not be recognised as a date.
What am I doing wrong?
Is there a way to convert these date fields to something Xcel will recognise
as a date?
Any suggestions will be gratefully received.
Many thanks for reading this.
Mike Valente
I have a text file which I am importing successfully into Xcel 2003. (Win XP
Pro Svce Pack 2 & updates)
There are a number of date fields in this file in the format yyyymmdd. ie.
20051013
This is a format that Xcel does not recognise.
To produce a regognised date format I am using the formula
=MID(N2,7,2)&"/"&MID(N2,5,2)&"/"&MID(N2,1,4) where n2 is the cell containing
the imported date field, this produces a dd/mm/yyyy format for the date
field in a different target cell. ie. 13/10/2005
When I try and FORMAT CELLS, Date, another date format, nothing happens.
This is true if I copy and then paste values only or leave as a formula.
From this I interprit that the cell contents is not recognised by Xcel as a
date.
If, however I type in a date using the format dd/mm/yyyy, identical to what
is produced by the formula, Xcel immediately recognises this as a date and
allows the format to be changed with the FORMAT CELLS, Date etc.
Thus I am led to conclude that as the product of a formula the number,
although in dd/mm/yyyy format will not be recognised as a date.
What am I doing wrong?
Is there a way to convert these date fields to something Xcel will recognise
as a date?
Any suggestions will be gratefully received.
Many thanks for reading this.
Mike Valente