+ Reply to Thread
Results 1 to 5 of 5

Extracting each of date, month and year to different cells from a single format of date

  1. #1
    Registered User
    Join Date
    05-02-2013
    Location
    jakarta
    MS-Off Ver
    Excel 2007
    Posts
    6

    Extracting each of date, month and year to different cells from a single format of date

    Hi all,

    This is my second post, i hope your help can solve my problem as my previous one.

    So the problem is, i want to automatically extract each of the date, month and year from a previous inputted date format to several different cells.

    For Example

    in cell A1 i will input 29-march-2013, then i want each of the cells in B1, C1 and D1 automatically inputted by change to each of date, month and year E.g: B1= 29, C1=March or 3 D1=2013.

    Many thanks for your kind assistance!

  2. #2
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Extracting each of date, month and year to different cells from a single format of dat

    =day(a1)
    =month(a1)
    =year(a1)

  3. #3
    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,929

    Re: Extracting each of date, month and year to different cells from a single format of dat

    If you want to extract the actual values for each day, month year, then mama's suggestion will work for you.

    If you just want to display the day number, month number etc, you could just reference the celkl with the date in it, and then format to show dd, mmmm and yyyy
    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

  4. #4
    Registered User
    Join Date
    05-02-2013
    Location
    jakarta
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Extracting each of date, month and year to different cells from a single format of dat

    Quote Originally Posted by Teethless mama View Post
    =day(a1)
    =month(a1)
    =year(a1)

    "mama knows best"...its true!!

    Many thanks y'all!!

  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,929

    Re: Extracting each of date, month and year to different cells from a single format of dat

    Happy to help

+ 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