+ Reply to Thread
Results 1 to 6 of 6

Extract Date From String

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Extract Date From String

    hi,
    i have some data in d6:d100, i want to extract date in column(E)

    XXXX.jpg
    Attached Files Attached Files
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: Extract Date From String

    Try:

    =IF(D6="","",SUBSTITUTE(MID(D6,9,8),".","/")+0)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,878

    Re: Extract Date From String

    In E6 copied down:

    =DATE(2000+MID(D6,15,2),MID(D6,12,2),MID(D6,9,2))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Extract Date From String

    Thanks for the reply


    Excel Is Just Magic

  5. #5
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Extract Date From String

    both formula is working perfectly and many ways to learn the formula use

  6. #6
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: Extract Date From String

    In E6 anyone of the below formula and copied down:

    =MID((TEXTBEFORE(TEXTAFTER(D6,"PAID ON ",1),"--",1)),4,2)&"/"&LEFT((TEXTBEFORE(TEXTAFTER(D6,"PAID ON ",1),"--",1)),2)&"/"&RIGHT((TEXTBEFORE(TEXTAFTER(D6,"PAID ON ",1),"--",1)),2)

    =MID((MID(D6,(FIND("ON ",D6,1)+3),(LEN(D6))-(FIND("--",D6,1)-2))),4,2)&"/"&LEFT((MID(D6,(FIND("ON ",D6,1)+3),(LEN(D6))-(FIND("--",D6,1)-2))),2)&"/"&RIGHT((MID(D6,(FIND("ON ",D6,1)+3),(LEN(D6))-(FIND("--",D6,1)-2))),2)
    Sekar

+ 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. [SOLVED] Extract Date from String
    By onp in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-09-2023, 03:37 AM
  2. [SOLVED] Can't extract date from a string
    By mz.mat in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-18-2022, 06:12 AM
  3. [SOLVED] How to extract date from middle of text string and add one month to the date.
    By JulianS96 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-02-2021, 07:36 AM
  4. Extract date from string
    By acandan21 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-29-2021, 04:46 PM
  5. [SOLVED] Extract date from string
    By Sandtree in forum Excel General
    Replies: 17
    Last Post: 06-02-2020, 10:49 AM
  6. [SOLVED] How can I extract a date from a string?
    By Tooley in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-06-2017, 11:21 AM
  7. Extract date from string
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-01-2011, 08:39 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