Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
wintersunshine
 
Posts: n/a
Default Help: Can I change the date formula from mm/dd/yyyy to "mmm-yy" et

Hi,

If the date was input as mm/dd/yyyy (12/31/2004), can I convert the format
to "yyyy-mm-dd"(2004-12-31) or "mmm-yy"(Dec-2004)? i tried to change date
format from "Format Cells-- Number tab--Category--choose "date" or "custom"
but just failed.

While Strangely, If i imput the data as "2004-12-31", i can change it to
whatever date format i like.

Appreicate your advice at earliest convenience.

Thanks

--
wintersunshine
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
sounds like your imported dates are not recognised as 'date' values but are
stored as 'Text'. One possible workaound:
- select your date values
- goto 'Data - Text to columns'
- just step through the wizard and Excel should convert them to real date
values

--
Regards
Frank Kabel
Frankfurt, Germany

wintersunshine wrote:
Hi,

If the date was input as mm/dd/yyyy (12/31/2004), can I convert the
format to "yyyy-mm-dd"(2004-12-31) or "mmm-yy"(Dec-2004)? i tried to
change date format from "Format Cells-- Number tab--Category--choose
"date" or "custom" but just failed.

While Strangely, If i imput the data as "2004-12-31", i can change it
to whatever date format i like.

Appreicate your advice at earliest convenience.

Thanks



  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default

sunshine

Depending upon your Windows Regional and Language Options, 12/31/2004 is
probably not a valid date entry and is text.

If short date in WindowsL&RO is set as mm/dd/yyyy then 12/31/2004 is a date.

If set as dd/mm/yyyy then 12/31/2004 is text and cannot be re-formatted.

Gord Dibben Excel MVP


On Tue, 4 Jan 2005 22:39:01 -0800, "wintersunshine"
wrote:

Hi,

If the date was input as mm/dd/yyyy (12/31/2004), can I convert the format
to "yyyy-mm-dd"(2004-12-31) or "mmm-yy"(Dec-2004)? i tried to change date
format from "Format Cells-- Number tab--Category--choose "date" or "custom"
but just failed.

While Strangely, If i imput the data as "2004-12-31", i can change it to
whatever date format i like.

Appreicate your advice at earliest convenience.

Thanks


  #4   Report Post  
Gord Dibben
 
Posts: n/a
Default

sunshine

Forgot to propose a fix.....

Select the dates and DataText to ColumnsNextNextColumn Data FormatDate.
Choose MDY and Finish.

Gord

On Tue, 4 Jan 2005 22:39:01 -0800, "wintersunshine"
wrote:

Hi,

If the date was input as mm/dd/yyyy (12/31/2004), can I convert the format
to "yyyy-mm-dd"(2004-12-31) or "mmm-yy"(Dec-2004)? i tried to change date
format from "Format Cells-- Number tab--Category--choose "date" or "custom"
but just failed.

While Strangely, If i imput the data as "2004-12-31", i can change it to
whatever date format i like.

Appreicate your advice at earliest convenience.

Thanks


  #5   Report Post  
wintersunshine
 
Posts: n/a
Default

Thanks. Frank. Your suggestion is quite helpful

Regards/Wintersunshine from Shanghai

€œFrank Kabel€ç¼–写:

Hi
sounds like your imported dates are not recognised as 'date' values but are
stored as 'Text'. One possible workaound:
- select your date values
- goto 'Data - Text to columns'
- just step through the wizard and Excel should convert them to real date
values

--
Regards
Frank Kabel
Frankfurt, Germany

wintersunshine wrote:
Hi,

If the date was input as mm/dd/yyyy (12/31/2004), can I convert the
format to "yyyy-mm-dd"(2004-12-31) or "mmm-yy"(Dec-2004)? i tried to
change date format from "Format Cells-- Number tab--Category--choose
"date" or "custom" but just failed.

While Strangely, If i imput the data as "2004-12-31", i can change it
to whatever date format i like.

Appreicate your advice at earliest convenience.

Thanks






  #6   Report Post  
wintersunshine
 
Posts: n/a
Default

Thanks. Gord. First time to use this online discussion forum and found it's
quite efficient. I am still Excel beginner and far away to be a MVP :)

Regards/Wintersunshine from Shanghai


€œGord Dibben€ç¼–写:

sunshine

Forgot to propose a fix.....

Select the dates and DataText to ColumnsNextNextColumn Data FormatDate.
Choose MDY and Finish.

Gord

On Tue, 4 Jan 2005 22:39:01 -0800, "wintersunshine"
wrote:

Hi,

If the date was input as mm/dd/yyyy (12/31/2004), can I convert the format
to "yyyy-mm-dd"(2004-12-31) or "mmm-yy"(Dec-2004)? i tried to change date
format from "Format Cells-- Number tab--Category--choose "date" or "custom"
but just failed.

While Strangely, If i imput the data as "2004-12-31", i can change it to
whatever date format i like.

Appreicate your advice at earliest convenience.

Thanks



  #7   Report Post  
Kristina
 
Posts: n/a
Default

Thanks, you helped me with my problem too!

"Frank Kabel" wrote:

Hi
sounds like your imported dates are not recognised as 'date' values but are
stored as 'Text'. One possible workaound:
- select your date values
- goto 'Data - Text to columns'
- just step through the wizard and Excel should convert them to real date
values

--
Regards
Frank Kabel
Frankfurt, Germany

wintersunshine wrote:
Hi,

If the date was input as mm/dd/yyyy (12/31/2004), can I convert the
format to "yyyy-mm-dd"(2004-12-31) or "mmm-yy"(Dec-2004)? i tried to
change date format from "Format Cells-- Number tab--Category--choose
"date" or "custom" but just failed.

While Strangely, If i imput the data as "2004-12-31", i can change it
to whatever date format i like.

Appreicate your advice at earliest convenience.

Thanks




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
Date Formula Robyn Bellanger Excel Discussion (Misc queries) 2 December 17th 04 07:25 PM
Date formula Robyn Bellanger Excel Discussion (Misc queries) 2 December 16th 04 12:41 AM
How would I change a date cell to decrease it by business days? CNGracin Excel Discussion (Misc queries) 3 December 15th 04 05:20 PM
Converting an Excel formula to an Access query formula Adam Excel Discussion (Misc queries) 1 December 15th 04 03:38 AM
How do I add a date formula to a cell but hide the contents with . Emzy Wemzy Excel Discussion (Misc queries) 2 December 12th 04 01:48 PM


All times are GMT +1. The time now is 11:19 AM.

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"