+ Reply to Thread
Results 1 to 7 of 7

Copy Date from Cell

Hybrid View

sam.valanju Copy Date from Cell 09-10-2012, 03:24 AM
arlu1201 Re: Copy Date from Cell 09-10-2012, 04:14 AM
sam.valanju Re: Copy Date from Cell 09-10-2012, 05:13 AM
arlu1201 Re: Copy Date from Cell 09-10-2012, 05:24 AM
sam.valanju Re: Copy Date from Cell 09-10-2012, 05:33 AM
tom1977 Re: Copy Date from Cell 09-10-2012, 05:21 AM
tom1977 Re: Copy Date from Cell 09-10-2012, 05:28 AM
  1. #1
    Registered User
    Join Date
    09-09-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Copy Date from Cell

    Hi,


    I need VBA code that will copy date from a cell.

    For eg., Cell has value like - "Sam_Valanju 03/21/1988" then only date should be copied to another cell i.e. 03/21/1988

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Copy Date from Cell

    Do you have a few samples that you can provide?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    09-09-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Copy Date from Cell

    Yes,

    Below are the smples that you could copy in excel cells for investigation -

    E54321 10/7/2012 Order as Unit 1
    Lat321 10/9/2012
    E54321 9/13/2012
    Sam_Valanju 03/21/1988

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Copy Date from Cell

    Tom,

    I tried your formula too, but i guess the last digit should be 10 and not 9 like this =TRIM(MID(A2,FIND("/",A2)-2,10))

    If its 9, it does not show the full year for the last 2 rows.

  5. #5
    Registered User
    Join Date
    09-09-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Copy Date from Cell

    I think this would definitely help me
    I'll convert and try it in VBA.
    Thanks for your quick help !!!

  6. #6
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Copy Date from Cell

    Hi look into attachment and tell is iti ok?
    Attached Files Attached Files
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  7. #7
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Copy Date from Cell

    @Arlu, You are right
    thx

+ 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