+ Reply to Thread
Results 1 to 6 of 6

Stripping data?

  1. #1
    Forum Contributor
    Join Date
    10-29-2004
    Posts
    291

    Stripping data?

    I have some data in a spreadsheet that's being exported from a CRM system so I can't change the formatting.

    It has data information which includes the time. Like 5/16/13 8:00AM.

    I want to reference it in other cells but want to strip the time from it. Formatting the cell to display just the date doesn't strip the time from it. Is there anything else I can do?

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Stripping data?

    it's probably not a real date (according to excel)...do this to confirm....in an open cell =ISNUMBER(A1).....assuming a CRM date is in there....if it's a real excel date it should say TRUE....if it is false you are going to have to parse the two pieces....let me know if this is a real date or not....
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

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

    Re: Stripping data?

    Hi

    If that is text and assuming it is in A1, try:
    =REPLACE(MID(A1,FIND(" ",A1)+1,255),LEN(MID(A1,FIND(" ",A1)+1,255))-1,0," ")+0
    Format as time.
    Regards Kevin


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

  4. #4
    Forum Contributor
    Join Date
    10-29-2004
    Posts
    291

    Re: Stripping data?

    Quote Originally Posted by judgeh59 View Post
    it's probably not a real date (according to excel)...do this to confirm....in an open cell =ISNUMBER(A1).....assuming a CRM date is in there....if it's a real excel date it should say TRUE....if it is false you are going to have to parse the two pieces....let me know if this is a real date or not....
    I got a TRUE.

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

    Re: Stripping data?

    Can you upload a sample workbook with a small sample of your data?
    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

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Stripping data?

    If you just want the date portion you'll have to extract that into a different cell.

    A1 = 5/16/13 8:00 AM

    To extract just the date:

    =INT(A1)

    Format as Date (if needed).
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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