+ Reply to Thread
Results 1 to 4 of 4

Date formatting

  1. #1
    Forum Contributor
    Join Date
    05-07-2007
    Location
    Singapore
    MS-Off Ver
    2006/2016
    Posts
    170

    Date formatting

    In my company, the dates used in our system generated reports usually come out in the format ddmmyyyy, if the first number is a 0 it'll be omitted

    So 11 June 2014 will appear as 11062014 and 01 Oct 2014 will appear as 1102014

    Is there any way I can get excel to recognize these dates as is? Perhaps through format cell? I don't want to have to manually change them everytime

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Date formatting

    In A1 Cell

    1102014

    In B1 Cell - Text Result

    =TEXT(TEXT(A1,"00-00-0000"),"DD-MMM-YYYY")

    Or

    Converts A1 data to real date's

    =VALUE(TEXT(A1,"00-00-0000"))


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    05-07-2007
    Location
    Singapore
    MS-Off Ver
    2006/2016
    Posts
    170

    Re: Date formatting

    Quote Originally Posted by :) Sixthsense :) View Post
    In A1 Cell

    1102014

    In B1 Cell - Text Result

    =TEXT(TEXT(A1,"00-00-0000"),"DD-MMM-YYYY")

    Or

    Converts A1 data to real date's

    =VALUE(TEXT(A1,"00-00-0000"))
    got the first one to work; just for knowledge, whats the difference between the 2?

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Date formatting

    Text() is a Text Function which result Text Result instead of real data.

    First one will result text date in which you cannot format it using cell formatting option. Using formula's with the text data will not recognize it as real date, since it is a text result.

    But the second one will result real date which is the suggestible way of having data and can be formatted using Cell formatting. Formula's can easily work with this data since it is Real date.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 11-23-2013, 06:21 AM
  2. Replies: 2
    Last Post: 09-19-2013, 10:34 AM
  3. Replies: 5
    Last Post: 08-22-2012, 05:06 PM
  4. Replies: 3
    Last Post: 07-11-2012, 10:03 AM
  5. Replies: 3
    Last Post: 08-18-2010, 12:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1