+ Reply to Thread
Results 1 to 15 of 15

Date Extraction Issues

  1. #1
    Registered User
    Join Date
    05-03-2020
    Location
    New Orleans, LA
    MS-Off Ver
    365 Business
    Posts
    3

    Date Extraction Issues

    Good afternoon all,

    I am having issues extracting a date from a specific text thread. Any assistance would be appreciated.

    Backstory: The text comes from a CSV file I have downloaded.

    Thread: "Wed Apr 29 2020 18:41:18 GMT-0500 (Central Daylight Time)"

    Goal: What I need is to pull the date only [Apr 29 2020" from the thread, convert it to a proper date format to use with COUNTIFS, SUMIFS, and VLOOKUP.

    Attempts:
    1. I tried a "=MID()" function to pull the specific text, then format to date via the format cell option. Did not work.
    2. I tried a "=MID()" function to pull the specific text, then format to date via the "=DATE()" and "=DATEVALUE()". Did not work.
    3. I tried a "=MID()" function to pull the specific text [three times, once for the Month, Day and Year and placed those into their own cells, then format to date via =IFERROR(DATE(YEAR(C2),MONTH(A2),DAY(B2)),""). Did not work.

    Any insight would be greatly appreciate!
    Mike
    Last edited by mikestier; 05-03-2020 at 03:34 PM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Date Extraction Issues

    Hi & welcome to the board.
    How about
    =DATE(MID(A2,12,4),MONTH(MID(A2,5,3)&1),MID(A2,9,2))
    This assumes that the day will always be 2 digits.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Date Extraction Issues

    Please try
    =--(MID(A2,9,2)&REPLACE(MID(A2,5,11),5,2,))

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Date Extraction Issues

    try this maybe:

    =TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",LEN(A1))),2*LEN(A1)+1,LEN(A1)))&" "&TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",LEN(A1))),1*LEN(A1)+1,LEN(A1)))&" "&TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",LEN(A1))),3*LEN(A1)+1,LEN(A1)))

  5. #5
    Registered User
    Join Date
    05-03-2020
    Location
    New Orleans, LA
    MS-Off Ver
    365 Business
    Posts
    3

    Re: Date Extraction Issues

    That worked exactly as I needed! Thank you!

    -M

  6. #6
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Date Extraction Issues

    Quote Originally Posted by mikestier View Post
    That worked exactly as I needed! Thank you!

    -M

    which one?

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Date Extraction Issues

    No sure who your talking to, but glad to help & thanks for the feedback.

  8. #8
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Date Extraction Issues

    Quote Originally Posted by Fluff13 View Post
    Hi & welcome to the board.
    How about
    =DATE(MID(A2,12,4),MONTH(MID(A2,5,3)&1),MID(A2,9,2))
    This assumes that the day will always be 2 digits.
    Fluff13 - why does this formula also returns error in my file? is it also because of the office version? Maybe it is time for me to upgarde....

  9. #9
    Registered User
    Join Date
    05-03-2020
    Location
    New Orleans, LA
    MS-Off Ver
    365 Business
    Posts
    3

    Re: Date Extraction Issues

    Fluff13's "=DATE(MID(A2,12,4),MONTH(MID(A2,5,3)&1),MID(A2,9,2))"

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Date Extraction Issues

    No idea why you are getting an error, unless it's down to language settings. None of those functions are new.
    Also your formula returns a text value, rather than a date.

  11. #11
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Date Extraction Issues

    Can you please check it in the file?

    Thanks!
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Date Extraction Issues

    You've got the " at the start of the string, which puts the formula out.

  13. #13
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Date Extraction Issues

    Quote Originally Posted by Fluff13 View Post
    No idea why you are getting an error, unless it's down to language settings. None of those functions are new.
    Also your formula returns a text value, rather than a date.
    You're right.....
    Last edited by Limor_OP; 05-03-2020 at 04:10 PM.

  14. #14
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Date Extraction Issues

    removed the " , Still doesnt work...... :/

  15. #15
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Date Extraction Issues

    In that case may be language.

+ 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. Outlook Extraction Tool - Ignore Signature Images Extraction
    By RXcel in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2020, 10:34 AM
  2. Excel to Outlook Calendar date duplication issues and blank cells causing issues
    By singerbatfink in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2016, 08:07 AM
  3. [SOLVED] Excel to Outlook Calendar date duplication issues and blank cells causing issues
    By singerbatfink in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 02-11-2016, 07:57 AM
  4. Word Extraction Issues
    By tklee411 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-01-2012, 05:50 PM
  5. date extraction problem
    By zack65 in forum Excel General
    Replies: 3
    Last Post: 03-19-2012, 08:15 PM
  6. Data extraction -- Date
    By poonw in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-05-2011, 01:00 PM
  7. Date Extraction
    By XLHead in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-11-2007, 04:59 PM

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