Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

Retain date and remove text from cell

Latest post Tue, Jul 13 2010 10:35 AM by Omar. 1 replies.
  • Tue, Jul 13 2010 2:15 AM

    Retain date and remove text from cell

    Hello,

     Is there any formula, to delete text and retain only dates.

     Let me explain more detail.

     I have a excel file with more than 1500 entries.

    One of the column has date and text separated with space, but now my boss told me to remove the text and retain only date.

     Date format is MM/DD/YYYY.

     Eg. 6/10/2009
    (see Signature Block, Optical Transport Service/Longhaul Service Order Form)

     i want to retain 6/10/2009 and want to delete the all other text.

     It would be easy if there is any formula to do it.

    • Post Points: 21
  • Tue, Jul 13 2010 10:35 AM In reply to

    • Omar
    • Top 10 Contributor
    • Joined on Sat, Jan 12 2008
    • Kitchener, ON
    • Posts 128
    • Points 1,823

    Re: Retain date and remove text from cell

    If you can count on a space character after the date, you can use this:

    =LEFT(A1,FIND(" ",A1)-1)

    The FIND function is critical because you likely won't have exactly the same number of digits in the date through the year.

    Omar Freeman Kitchener, ON

    • Post Points: 5
Page 1 of 1 (2 items) | RSS
Copyright Excel User Group and the relevant contributors, 2010. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.