+ Reply to Thread
Results 1 to 5 of 5

Removing text inbeded in between a date

  1. #1
    Registered User
    Join Date
    01-12-2006
    Posts
    13

    Removing text inbeded in between a date

    Hello group,

    Not sure if this has been already addressed as I was unable to find it as a post, but I'm working on creating a report that uses the date. Unfortunately, when I download the data, the dates in column B have the time stamp in between the day/month and the year

    Here is an example

    Release Date
    Aug 16 15:38:37 EDT 2017
    Aug 15 12:54:06 EDT 2017
    Aug 16 13:06:17 EDT 2017
    Aug 16 11:01:28 EDT 2017
    Aug 16 13:07:10 EDT 2017
    Aug 16 09:25:49 EDT 2017
    Aug 11 00:10:25 EDT 2017
    Aug 15 15:39:17 EDT 2017
    Aug 10 10:24:12 EDT 2017
    Aug 10 10:24:12 EDT 2017
    Aug 10 09:41:20 EDT 2017
    Aug 09 10:46:55 EDT 2017
    Aug 09 09:48:08 EDT 2017
    Aug 07 09:53:01 EDT 2017
    Aug 03 10:24:06 EDT 2017
    Aug 07 11:07:40 EDT 2017

    Right now the file has about 200 lines, but it will be expanding as it will be a daily report.

    I'm not very good at VBA, so this has been a really headache so far. How do you remove the time stamps that is bedded between the date leaving only the dates as mm/dd/yyyy as non-text format. Any suggestions are really appreciated.



    Many thanks - Juan

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Removing text inbeded in between a date

    With the text dates in column A starting in A2, try this formula in B2

    =DATEVALUE(LEFT(A2,6)&", "&RIGHT(A2,4))+MID(A2,8,8)

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Removing text inbeded in between a date

    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Format as Date
    v A B
    1 Aug 16 15:38:37 EDT 2017 8/16/2017
    2 Aug 15 12:54:06 EDT 2017 8/15/2017
    3 Aug 16 13:06:17 EDT 2017 8/16/2017
    4 Aug 16 11:01:28 EDT 2017 8/16/2017
    5 Aug 16 13:07:10 EDT 2017 8/16/2017
    6 Aug 16 09:25:49 EDT 2017 8/16/2017
    7 Aug 11 00:10:25 EDT 2017 8/11/2017
    8 Aug 15 15:39:17 EDT 2017 8/15/2017
    9 Aug 10 10:24:12 EDT 2017 8/10/2017
    10 Aug 10 10:24:12 EDT 2017 8/10/2017
    11 Aug 10 09:41:20 EDT 2017 8/10/2017
    12 Aug 09 10:46:55 EDT 2017 8/9/2017
    13 Aug 09 09:48:08 EDT 2017 8/9/2017
    14 Aug 07 09:53:01 EDT 2017 8/7/2017
    15 Aug 03 10:24:06 EDT 2017 8/3/2017
    16 Aug 07 11:07:40 EDT 2017 8/7/2017
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    485

    Re: Removing text inbeded in between a date

    @JGarces:

    If you need a formula, try this: =--REPLACE(B2,7,13,",")

    If you need a VBA code to convert the entire column, try this:
    Please Login or Register  to view this content.
    Last edited by Root_; 08-18-2017 at 08:41 PM.

  5. #5
    Registered User
    Join Date
    01-12-2006
    Posts
    13

    Re: Removing text inbeded in between a date

    Thanks to all for the replies, it was really helpful

+ 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. VLOOKUP with inbeded IF forumla?
    By Nutosmrt in forum Excel General
    Replies: 2
    Last Post: 09-09-2014, 11:48 AM
  2. [SOLVED] Problems with Removing Time From Date (Text Format)
    By efarkouh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-04-2014, 02:39 PM
  3. Replies: 4
    Last Post: 04-30-2014, 12:42 PM
  4. Removing date from text in a cell
    By JakeMann in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2013, 09:48 AM
  5. [SOLVED] Removing text from scores in a data sheet using text functions
    By mrvp in forum Excel General
    Replies: 9
    Last Post: 07-15-2012, 05:33 PM
  6. Replies: 5
    Last Post: 03-06-2008, 01:27 PM
  7. [SOLVED] Can a picture be inbeded in an excel cell
    By SCARSON in forum Excel General
    Replies: 2
    Last Post: 12-20-2005, 08:45 PM

Tags for this Thread

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