#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Date Format Problem

I have a worksheet with a column formatted as 022008 which is suppose to mean
Feb 2008 or 02/2008. I can't seem to figure out how to change the cell format
to reflect this. I want it to display 02/2008.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Date Format Problem

In another cell enter:

=LEFT(A1,2) & "/" & RIGHT(A1,4)

or

=DATE(RIGHT(A1,4),LEFT(A1,2),1) and format as mm/yyyy
--
Gary''s Student - gsnu201003


"Alain" wrote:

I have a worksheet with a column formatted as 022008 which is suppose to mean
Feb 2008 or 02/2008. I can't seem to figure out how to change the cell format
to reflect this. I want it to display 02/2008.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Date Format Problem

That's OK if the 022008 is text, but if it is the number 22008 formatted as
000000, you'd need to change to

=LEFT(TEXT(A1,"000000"),2) & "/" & RIGHT(A1,4)
or
=DATE(RIGHT(A1,4),LEFT(TEXT(A1,"000000"),2),1)

You might instead try
=TEXT(A1,"00\/0000")
or (if your Windows Regional Options are appropriately set)
=--TEXT(A1,"00\/0000") formatted as mm/yyyy
--
David Biddulph


"Gary''s Student" wrote in message
...
In another cell enter:

=LEFT(A1,2) & "/" & RIGHT(A1,4)

or

=DATE(RIGHT(A1,4),LEFT(A1,2),1) and format as mm/yyyy
--
Gary''s Student - gsnu201003


"Alain" wrote:

I have a worksheet with a column formatted as 022008 which is suppose to
mean
Feb 2008 or 02/2008. I can't seem to figure out how to change the cell
format
to reflect this. I want it to display 02/2008.



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 format problem KevHardy Excel Discussion (Misc queries) 8 February 13th 10 09:17 AM
Excel Format Problem - Date Overrides Format Mary Excel Discussion (Misc queries) 5 February 10th 10 05:49 AM
Date format problem Natalie Excel Worksheet Functions 4 June 7th 07 01:28 PM
Date format problem Vass Excel Worksheet Functions 7 April 3rd 06 04:50 PM
Date Format problem nastech Excel Discussion (Misc queries) 2 January 18th 06 01:54 AM


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