+ Reply to Thread
Results 1 to 7 of 7

Convert Number into date format

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Convert Number into date format

    Dear all

    Could you help me please. How to generate formula When condition

    Cell A1
    03-Jul-12 (in formula bar: 7/3/2012)

    become in Cell B1
    0712.03 (in formula bar: =??????)



    Please help me

    Regards
    Cipta

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Convert Number into date format

    what did you do in B1 to give you that result?

    Keep in mind that excel sees ALL dates as a 5 digit number, representing the number of days that have passed since 1/1/1900.
    So 7/3/2012 will appear as 41093
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-14-2013
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Thumbs up Re: Convert Number into date format

    Hi
    Dibins

    Thanks for response. I mean that I want to use in cell A1 7/3/2012 (date format) becomes appear in cell B1 0712.03
    and so on for Cell A2 3/24/2013 becomes appear in cell B2 0313.24

    Could you generate formula or something trick to appear in cell B like that.



    Regards
    Cipta

  4. #4
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Convert Number into date format

    If you want the date in A1(03-Jul-12) to formatted in the pattern 0712.03 in cell B1,

    then paste the below formula in B1.

    =TEXT(A1,"MMYY.DD")

    Please be aware the date has been converted in to text now.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Convert Number into date format

    Perhaps something like this?

    =MONTH(A1)&YEAR(A1)&"."&TEXT(DAY(A1),"00")

  6. #6
    Registered User
    Join Date
    05-14-2013
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Convert Number into date format

    @Elay

    thanks, your solve more precise.

    @debin
    Thanks for solve, for year still appear 4 digit. but no problem, appreciate for response


    for all
    Thanks guys

    Regards
    Cipta

  7. #7
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Convert Number into date format

    @Chieps.
    You're welcome..

    -----------------------------------------------------------------------------------------------
    If the reply solves your problem, Don't forget to mark the thread as "Solved" (Thread Tools->Mark thread as Solved)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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