PC Review


Reply
Thread Tools Rate Thread

Dates converted into text

 
 
rjagathe
Guest
Posts: n/a
 
      4th Mar 2010
I receive Excel data from my branch offices.the data should contain
date coloumns.But some cells contain dates in "<year><month.><date>"
format i.e.,21/02/2010 in dd/mm/yyyy format is displayed as
20100221.Why it is happening?How to convert them into dd/mm/yyyy
format?
I tried to record and run a macro to insert "/" between year and month
and between month and date,then clicking "Enter" button...But,it
displays same date in all the cells in which I run the macro.
 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      4th Mar 2010
Try Data>Text to Columns>Next>Next>Column Data Format DMY


Gord Dibben MS Excel MVP

On Thu, 4 Mar 2010 08:43:08 -0800 (PST), rjagathe <(E-Mail Removed)>
wrote:

>I receive Excel data from my branch offices.the data should contain
>date coloumns.But some cells contain dates in "<year><month.><date>"
>format i.e.,21/02/2010 in dd/mm/yyyy format is displayed as
>20100221.Why it is happening?How to convert them into dd/mm/yyyy
>format?
>I tried to record and run a macro to insert "/" between year and month
>and between month and date,then clicking "Enter" button...But,it
>displays same date in all the cells in which I run the macro.


 
Reply With Quote
 
FSt1
Guest
Posts: n/a
 
      4th Mar 2010
hi
try a formula.
=MID(B6,5,2)&"/"&RIGHT(B6,2)&"/"&LEFT(B6,4)
worked for me.
put the formula in a blank formula and copy down.
then copy the helper column and paste special values.

regards
FSt1

"rjagathe" wrote:

> I receive Excel data from my branch offices.the data should contain
> date coloumns.But some cells contain dates in "<year><month.><date>"
> format i.e.,21/02/2010 in dd/mm/yyyy format is displayed as
> 20100221.Why it is happening?How to convert them into dd/mm/yyyy
> format?
> I tried to record and run a macro to insert "/" between year and month
> and between month and date,then clicking "Enter" button...But,it
> displays same date in all the cells in which I run the macro.
> .
>

 
Reply With Quote
 
rjagathe
Guest
Posts: n/a
 
      6th Mar 2010
On Mar 4, 11:08*pm, FSt1 <F...@discussions.microsoft.com> wrote:
> hi
> try a formula.
> =MID(B6,5,2)&"/"&RIGHT(B6,2)&"/"&LEFT(B6,4)
> worked for me.
> put the formula in a blank formula and copy down.
> then copy the helper column and paste special values.
>
> regards
> FSt1
>
> hi

I put 19980427 in cell B1 and put your formula in A1.But A1 becomes
19980427 only.It does not return 27/04/1998.

regards
rjagathe
>
> "rjagathe" wrote:
> > I receive Excel data from my branch offices.the data should contain
> > date coloumns.But some cells contain dates in "<year><month.><date>"
> > format i.e.,21/02/2010 in dd/mm/yyyy format is displayed as
> > 20100221.Why it is happening?How to convert them into dd/mm/yyyy
> > format?
> > I tried to record and run a macro to insert "/" between year and month
> > and between month and date,then clicking "Enter" button...But,it
> > displays same date in all the cells in which I run the macro.
> > .


 
Reply With Quote
 
rjagathe
Guest
Posts: n/a
 
      6th Mar 2010
On Mar 4, 10:50*pm, Gord Dibben <gorddibbATshawDOTca> wrote:
> Try Data>Text to Columns>Next>Next>Column Data Format DMY
>
> Gord Dibben *MS Excel MVP
>
> On Thu, 4 Mar 2010 08:43:08 -0800 (PST), rjagathe <rjaga...@gmail.com>
> wrote:
>
>
>
> >I receive Excel data from my branch offices.the data should contain
> >date coloumns.But some cells contain dates in "<year><month.><date>"
> >format i.e.,21/02/2010 in dd/mm/yyyy format is displayed as
> >20100221.Why it is happening?How to convert them into dd/mm/yyyy
> >format?
> >I tried to record and run a macro to insert "/" between year and month
> >and between month and date,then clicking "Enter" button...But,it
> >displays same date in all the cells in which I run the macro.


Hi
when I tried this, for whatever year I gave, it returns year as 1905
only.

with regards
rjagathe
 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      6th Mar 2010
Typo...............YMD should have been the format.


Gord

On Fri, 5 Mar 2010 23:35:33 -0800 (PST), rjagathe <(E-Mail Removed)>
wrote:

>On Mar 4, 10:50*pm, Gord Dibben <gorddibbATshawDOTca> wrote:
>> Try Data>Text to Columns>Next>Next>Column Data Format DMY
>>
>> Gord Dibben *MS Excel MVP
>>
>> On Thu, 4 Mar 2010 08:43:08 -0800 (PST), rjagathe <rjaga...@gmail.com>
>> wrote:
>>
>>
>>
>> >I receive Excel data from my branch offices.the data should contain
>> >date coloumns.But some cells contain dates in "<year><month.><date>"
>> >format i.e.,21/02/2010 in dd/mm/yyyy format is displayed as
>> >20100221.Why it is happening?How to convert them into dd/mm/yyyy
>> >format?
>> >I tried to record and run a macro to insert "/" between year and month
>> >and between month and date,then clicking "Enter" button...But,it
>> >displays same date in all the cells in which I run the macro.

>
>Hi
>when I tried this, for whatever year I gave, it returns year as 1905
>only.
>
>with regards
>rjagathe


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pasted fractions converted to dates Jon_C Microsoft Excel Discussion 6 12th Oct 2007 02:49 PM
Can checkboxes used for dates be converted? epete367@optonline.net Microsoft Access Reports 0 26th Oct 2005 01:01 AM
why csv fields converted into dates hilz Microsoft Excel Discussion 9 4th Oct 2005 11:10 PM
numbers are converted into dates =?Utf-8?B?dmI=?= Microsoft Excel New Users 2 14th Sep 2004 05:42 AM
dates being converted to serial problems Scott Microsoft Excel Worksheet Functions 3 13th Aug 2004 08:45 PM


Features
 

Advertising
 

Newsgroups
 


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