Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

Formatting a date field

Latest post Mon, Apr 12 2010 5:44 PM by Jim Cone. 1 replies.
  • Mon, Apr 12 2010 11:50 AM

    Formatting a date field

    I have a spreadsheet that was given to me by the boss.  I am writing a DB around this spreadsheet.  The spreadsheet has a date column.  I format the date column to appear as 09_Jan.  When a cell in this column is selected, the formula field still appears as 1/9/09.  How do I change the formula to appear as 09-Jan as well?  Parts of my DB need to extrat the Jan portion to be used as part of a Unique Identifier.   When I attempt to extract with a mid or a right function, it takes the the actual formula number.

    • Post Points: 21
  • Mon, Apr 12 2010 5:44 PM In reply to

    • Jim Cone
    • Top 10 Contributor
    • Joined on Tue, Jan 15 2008
    • Portland, Oregon - USA
    • Posts 233
    • Points 3,315

    Re: Formatting a date field

    An underscore in a custom number format adds a space the width of the following character.
    Why not use the built- in date format of:  d-mmm;@

    Also, your "dates" could be viewed as text by Excel and therefore the number format would be ignored.
    If the "dates" are left-aligned in the column they are text not dates.

     

    • Post Points: 5
Page 1 of 1 (2 items) | RSS
Copyright Excel User Group and the relevant contributors, 2010. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.