+ Reply to Thread
Results 1 to 3 of 3

pull specific text out of a cell

  1. #1
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    pull specific text out of a cell

    I have a worksheet that I created by exporting data from another application. The issue that I am having is in the date and time cell. Both the date and time are being displayed in the same cell and I need to separate them.
    This is what the cells are populated with.

    2018-08-02T03:51:48.000Z
    2018-08-02T03:46:38.000Z
    2018-08-02T03:42:40.000Z

    I need to take out 2018-08-02

    Remove the t entirely

    Take out 03:51:48

    and remove .000z entirely

    My goal is to have two columns. One with the date and one with the time.

    Any idea hoe to do that?
    Attached Files Attached Files

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: pull specific text out of a cell

    You could use Data - Text to columns, Fixed width, and just skip the two columns you don't need (the T, and the trailing .000Z) or use formulas like:
    =LEFT(F2,10)+0
    and
    =MID(F2,12,8)+0
    and then format the columns as date and time respectively.
    Rory

  3. #3
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: pull specific text out of a cell

    If you just need to pull out string [as text] use this:

    =LEFT(F2,10) and =MID(F2,12,8) to pull out date and time strings.

    If you have to use the date string as date in other formulas then you may have to use this for date:

    HTML Code: 
    1. Click on the * Add Reputation if you think this helped you
    2. Mark your thread as SOLVED when question is resolved

    Modytrane

+ 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. Pull specific text from a field
    By alittlegirllikeme in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-26-2016, 09:27 AM
  2. How to pull data from a cell ref specific text
    By Clanty in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-18-2016, 04:48 PM
  3. [SOLVED] Pull the Correct info through is X,Y and Z cell contains specific text
    By cjohnr1388 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-13-2016, 09:40 AM
  4. Cant pull specific text from email
    By brh5073 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-06-2015, 09:41 AM
  5. [SOLVED] VBA to pull data from worksheet to a new sheet based on specific text cell value
    By TalResha in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-13-2013, 02:11 AM
  6. [SOLVED] How do I pull specific text out of a cell?
    By slojhammer in forum Excel General
    Replies: 3
    Last Post: 03-27-2012, 01:48 PM
  7. Advanced functions to pull specific (varying) text from a cell
    By visionwindowfilms in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-07-2011, 08:19 AM

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