+ Reply to Thread
Results 1 to 4 of 4

Remove part of text in cell

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    38

    Remove part of text in cell

    Hello,

    If I have 700 cells wich looks like this: 31.10.2012 21:34:35
    The timestamp can be different in each cell. I want to just have the date, and totally remove the time. I tried to replace it, but I don't manage. Anyone have an idea how to do this easy?

    JohnnyWalker

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Remove part of text in cell

    Maybe,
    Please Login or Register  to view this content.

  3. #3
    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,933

    Re: Remove part of text in cell

    If you just want to extract the "date" as text, use =left(A1,10)
    if you want to extract the actual date (as a value), use this...
    =DATE(VALUE(MID(A1,7,4)),MONTH(MID(A1,4,2)),DAY(LEFT(A1,2)))
    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

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Remove part of text in cell

    find " *" (space *) without quotes replace with nothing
    or text to columns fixed width next click the column with the time and select do not import
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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