+ Reply to Thread
Results 1 to 3 of 3

Need to capture date data in a text string containing a date and time stamp

  1. #1
    Forum Contributor
    Join Date
    04-11-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    225

    Need to capture date data in a text string containing a date and time stamp

    Hello -

    I have a worksheet with a column that contains a date and time stamp (see example below). What I need to do is get rid of the time stamp leaving just the date information. I tried the formula =Left but because the number of characters in the date vary, this formula does quite work.

    Example of what I have:

    2/1/2013 10:41
    12/21/2012 12:03

    This is what I want:

    2/1/2013
    12/21/2012

    Thanks in advance for the help!

    Grilleman

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Need to capture date data in a text string containing a date and time stamp

    assuming the date is in A1, you could try this:
    =LEFT(A1,FIND(" ",A1)-1)

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Need to capture date data in a text string containing a date and time stamp

    Hi Grilleman

    Can you not just format as mm/dd/yyyy
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

+ 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