#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 193
Default Date format

How would we get 2008-01 to read as "Jan-08"?, etc for months and
years.

I'd use a helper column if necessary. Custom format is better though.

TIA.

Pierre
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 523
Default Date format

Type the following in to the custom format:

mmm-yy

"Pierre" wrote:

How would we get 2008-01 to read as "Jan-08"?, etc for months and
years.

I'd use a helper column if necessary. Custom format is better though.

TIA.

Pierre

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 193
Default Date format

On Jan 16, 9:57*am, Sam Wilson
wrote:
Type the following in to the custom format:

mmm-yy



Sam, thanks for the reply. Couldn't get it to work though.

Pierre
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Date format

It looks like 2008-01 is taken as text by Excel, so changing the
format of the cell will not work - instead, you will need a formula in
a helper cell, such as:

=DATE(LEFT(A1,4),RIGHT(A1,2),1)

and then format this cell using the custom format of mmm-yy. Copy the
formula down if you have many such entries.

Hope this helps.

Pete

On Jan 16, 4:13*pm, Pierre wrote:
On Jan 16, 9:57*am, Sam Wilson
wrote: Type the following in to the custom format:

mmm-yy


Sam, thanks for the reply. *Couldn't get it to work though.

Pierre


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 193
Default Date format

On Jan 16, 10:21*am, Pete_UK wrote:
It looks like 2008-01 is taken as text by Excel, so changing the
format of the cell will not work - instead, you will need a formula in
a helper cell, such as:

=DATE(LEFT(A1,4),RIGHT(A1,2),1)

and then format this cell using the custom format of mmm-yy. Copy the
formula down if you have many such entries.

Hope this helps.

Pete


Pete: it worked like a charm. Thank you.

Pierre


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Date format

You're welcome - thanks for feeding back.

Pete


"Pierre" wrote in message
...
On Jan 16, 10:21 am, Pete_UK wrote:
It looks like 2008-01 is taken as text by Excel, so changing the
format of the cell will not work - instead, you will need a formula in
a helper cell, such as:

=DATE(LEFT(A1,4),RIGHT(A1,2),1)

and then format this cell using the custom format of mmm-yy. Copy the
formula down if you have many such entries.

Hope this helps.

Pete


Pete: it worked like a charm. Thank you.

Pierre


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Date format

DataText to ColumnsNextNextColumn Data FormatDateYMDFinish.


Gord Dibben MS Excel MVP

On Wed, 16 Jan 2008 07:36:26 -0800 (PST), Pierre wrote:

How would we get 2008-01 to read as "Jan-08"?, etc for months and
years.

I'd use a helper column if necessary. Custom format is better though.

TIA.

Pierre


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
Convert European Date format to American Format Albert Excel Discussion (Misc queries) 3 August 21st 07 10:02 PM
Convert date from text format to date format Anita Excel Discussion (Misc queries) 3 June 4th 07 11:57 AM
Convert date + time text format to date format Paul Ho Excel Worksheet Functions 2 May 22nd 07 05:47 PM
Can I change a date with no format (20051111) to date format? Rose New Users to Excel 2 November 11th 05 09:03 PM
Excel 2000 date format cannot be set to Australian date format Brian Jones Excel Discussion (Misc queries) 1 March 30th 05 06:03 AM


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