Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jay
 
Posts: n/a
Default Date Format Structure

Is there a method that would convert any Date entered into a cell whether
it's 06/01/05 or June-2005 or 06/01/2005 or any other entry to June-05 (and
still be a valid date) and not show-up as 06/01/05 in the formula bar, but as
June-05 instead?
  #2   Report Post  
Bob Umlas, Excel MVP
 
Posts: n/a
Default

Right-click the sheet tab, select View code, enter this:
Private Sub Worksheet_Change(ByVal Target As Range)
If IsDate(Target.Resize(1, 1).Value) Then Target.Resize(1,
1).NumberFormat = "mmmm-dd"
End Sub

HTH
Bob Umlas,Excel MVP

"Jay" wrote:

Is there a method that would convert any Date entered into a cell whether
it's 06/01/05 or June-2005 or 06/01/2005 or any other entry to June-05 (and
still be a valid date) and not show-up as 06/01/05 in the formula bar, but as
June-05 instead?

  #3   Report Post  
Myrna Larson
 
Posts: n/a
Default

YOu can change the cell format to display mmm-yy or mmmm-yyyy, etc, but that
doesn't affect what you see in the formula bar. It will still show the month,
day, and year.

On Wed, 9 Mar 2005 09:55:03 -0800, Jay wrote:

Is there a method that would convert any Date entered into a cell whether
it's 06/01/05 or June-2005 or 06/01/2005 or any other entry to June-05 (and
still be a valid date) and not show-up as 06/01/05 in the formula bar, but as
June-05 instead?


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
How to format a date to a different format Laura Excel Discussion (Misc queries) 1 March 5th 05 09:59 PM
Date Format Question Josh O. Excel Discussion (Misc queries) 1 February 10th 05 09:45 PM
Format cells as date bay Excel Discussion (Misc queries) 3 January 26th 05 05:34 PM
USING THE DATE FORMAT IN EXCEL teach Excel Discussion (Misc queries) 3 December 14th 04 11:55 PM
Problem with Date format from VBA code twig Excel Discussion (Misc queries) 3 December 7th 04 06:01 PM


All times are GMT +1. The time now is 05:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"