PC Review


Reply
Thread Tools Rate Thread

change date from 020315 to 03/15/02

 
 
CHARI
Guest
Posts: n/a
 
      25th Feb 2008
how do I change the format in this date?
 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      25th Feb 2008
Assuming you original data is formatted as Custom yymmdd, change the format to:
mm/dd/yyyy
--
Gary''s Student - gsnu200770


"CHARI" wrote:

> how do I change the format in this date?

 
Reply With Quote
 
CHARI
Guest
Posts: n/a
 
      25th Feb 2008


"Gary''s Student" wrote:

> Assuming you original data is formatted as Custom yymmdd, change the format to:
> mm/dd/yyyy
> --
> Gary''s Student - gsnu200770
>
>
> "CHARI" wrote:
>
> > how do I change the format in this date?



No, it's not formatted that way. The original format was 1020315 and I
removed the 1 but I can't get the formatting to change. This was originally
a text file I imported. Should I import it different or can I change it as
is?
 
Reply With Quote
 
Gary''s Student
Guest
Posts: n/a
 
      25th Feb 2008
Try this formula instead:

=DATE(2000+LEFT(A1,2),--MID(A1,3,2),RIGHT(A1,2))
--
Gary''s Student - gsnu200770


"CHARI" wrote:

>
>
> "Gary''s Student" wrote:
>
> > Assuming you original data is formatted as Custom yymmdd, change the format to:
> > mm/dd/yyyy
> > --
> > Gary''s Student - gsnu200770
> >
> >
> > "CHARI" wrote:
> >
> > > how do I change the format in this date?

>
>
> No, it's not formatted that way. The original format was 1020315 and I
> removed the 1 but I can't get the formatting to change. This was originally
> a text file I imported. Should I import it different or can I change it as
> is?

 
Reply With Quote
 
CHARI
Guest
Posts: n/a
 
      25th Feb 2008


"Gary''s Student" wrote:

> Try this formula instead:
>
> =DATE(2000+LEFT(A1,2),--MID(A1,3,2),RIGHT(A1,2))
> --
> Gary''s Student - gsnu200770
>
>
> "CHARI" wrote:
>
> >
> >
> > "Gary''s Student" wrote:
> >
> > > Assuming you original data is formatted as Custom yymmdd, change the format to:
> > > mm/dd/yyyy
> > > --
> > > Gary''s Student - gsnu200770
> > >
> > >
> > > "CHARI" wrote:
> > >
> > > > how do I change the format in this date?

> >
> >
> > No, it's not formatted that way. The original format was 1020315 and I
> > removed the 1 but I can't get the formatting to change. This was originally
> > a text file I imported. Should I import it different or can I change it as
> > is?


I got back 08/15/2011 ..... not 03/15/02
 
Reply With Quote
 
ward376
Guest
Posts: n/a
 
      25th Feb 2008
Is the date supposed to be March 15, 2002?

Cliff Edwards

 
Reply With Quote
 
ward376
Guest
Posts: n/a
 
      25th Feb 2008
If the date format from your database is cyymmdd, here is the formula
to convert it to a value that Excel will recognize as the equivalent
date:

=IF(LEN(A1)=7,VALUE(CONCATENATE(MID(A1,4,2),"/",RIGHT(A1,2),"/",MID(A1,2,2))),VALUE(CONCATENATE(MID(A1,3,2),"/",RIGHT(A1,2),"/",LEFT(A1,2))))

The formula also takes into account whether the date format prior to
2000 was mmddyy and converts to date serial.

You can format the date serial in any way you want.

Cliff Edwards
 
Reply With Quote
 
CHARI
Guest
Posts: n/a
 
      25th Feb 2008


"ward376" wrote:

> Is the date supposed to be March 15, 2002?
>
> Cliff Edwards
>
> yes,

 
Reply With Quote
 
CHARI
Guest
Posts: n/a
 
      25th Feb 2008


"ward376" wrote:

> If the date format from your database is cyymmdd, here is the formula
> to convert it to a value that Excel will recognize as the equivalent
> date:
>
> =IF(LEN(A1)=7,VALUE(CONCATENATE(MID(A1,4,2),"/",RIGHT(A1,2),"/",MID(A1,2,2))),VALUE(CONCATENATE(MID(A1,3,2),"/",RIGHT(A1,2),"/",LEFT(A1,2))))
>
> The formula also takes into account whether the date format prior to
> 2000 was mmddyy and converts to date serial.
>
> You can format the date serial in any way you want.
>
> Cliff Edwards
>


PERFECT, THANK YOU!!
 
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
date in Cell to change colors if the date is beyond today's date Pete Elbert Microsoft Excel Misc 2 6th Jun 2009 06:31 AM
Prompted to Default Date or User Option to Change Date Emine Microsoft Access Form Coding 6 5th Dec 2008 01:22 AM
Change satellite julian date format YYYYDDDHHMMSS to excel date ti putley Microsoft Excel Misc 1 11th Jan 2008 06:12 PM
Make date change in excel to current date when opening daily? =?Utf-8?B?amFtaWU=?= Microsoft Excel Misc 3 1st Mar 2006 03:37 PM
Track change Author/Date popup shows US date format not correct regional set Wayne Zaunders Microsoft Word New Users 1 23rd May 2004 11:57 AM


Features
 

Advertising
 

Newsgroups
 


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