Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to extract date from text strings in Excel?

In Excel worksheet, how could you extract the date from text strings as following screenshot shown? This article, I will talk about a useful formula to solve it.

Extract date from text strings with array formula in worksheet


Convert various non-standard dates to normal real date in Excel:

With the Convert to Date utility of Kutools for Excel, you can quickly convert various non-standard dates to normal real dates at the same time in Excel.

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Extract date from text strings with array formula in worksheet


To extract only date from a list of text strings, the following array formula can help you, please do as this:

1. Enter this formula:

=MID(A2,MIN(IFERROR(FIND({0,1,2,3,4,5,6,7,8,9},A2,1),LEN(A2)+1)),LOOKUP(1,0/MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1),ROW(INDIRECT("1:"&LEN(A2)))) + 1 - MIN(IFERROR(FIND({0,1,2,3,4,5,6,7,8,9},A2,1),LEN(A2)+1))) into a blank cell where you want to get the result, and then press Ctrl + Shift + Enter keys together, and only the date is extracted as following screenshot shown:

2. Then select the formula cell, and drag the fill handle down to the cells you want to apply this formula, and you will get the results as you need, see screenshot:

Notes:

1. In the above formula, A2 is the cell which contains the date you want to extract;

2. If the cell contains other numbers, this formula will not work correctly;

3. The formula cannot correctly extract date while there is more than one date in the text string.


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Anett · 9 days ago
    Hi, Help me please! How about if my text is "Date and time of submission:23-Jun-2017 12:34:58 AM PDT. What kind of formula can i use ?
  • To post as a guest, your comment is unpublished.
    Nancy · 4 months ago
    how about if my text is "Date and time of submission: September 16, 2018 at 11:26:00 PM PDT"? What kind of formula can i use ?
  • To post as a guest, your comment is unpublished.
    Tak · 5 months ago
    I'm using Excel 2003, so I believe the IFERROR does not exist, and I found this quoted on the web to be the equivalent:

    IFERROR(A1,"") = IF(ISERROR(A1),"")

    So I'm trying this:

    =MID(A2,MIN(IF(ISERROR(FIND({0,1,2,3,4,5,6,7,8,9},A2,1)),LEN(A2)+1)),LOOKUP(1,0/MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1),ROW(INDIRECT("1:"&LEN(A2)))) + 1 - MIN(IF(ISERROR(FIND({0,1,2,3,4,5,6,7,8,9},A2,1)),LEN(A2)+1)))

    - I did press CTRL+SHIFT+ENTER the actual forumla in excel shows it in {}

    Using this formula, I just get a blank result

    Can check and let me know where I’ve gone wrong... Or is it not possible in Excel 2003

    Thank you
    • To post as a guest, your comment is unpublished.
      Tak · 5 months ago
      Actually my data to extract is in the format:

      Data valid for 14 December 2018

      So I need to extract the "14 December 2018" and not the usual
      xx/xx/xx
      • To post as a guest, your comment is unpublished.
        Tak · 5 months ago
        This seemsto for work me(Excel 2003)

        =DATEVALUE(MID(A2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A2&"0123456789")),17))

        : A2 contains the data to extract

        : it finds the first numerical value, then translates restas date

        Works for data in this format : Data valid for 14 December 2018
  • To post as a guest, your comment is unpublished.
    SHWETA · 7 months ago
    PLEASE HELP ME EXTRACT DATE FROM THE STATEMENTS LIKE "PLEASE DELIVER BY Fri,01 January ,2016"
  • To post as a guest, your comment is unpublished.
    chathuka perera · 1 years ago
    Can someone help me find a string to extract the date in this format please yyyy-mm-dd
    "2018-03-24T01:42:26-07:00"



    Thanks much in advance