+ Reply to Thread
Results 1 to 4 of 4

Extract Date from Right Formula

  1. #1

    Extract Date from Right Formula

    SSBuZWVkIGEgZm9ybXVsYSB0aGF0IHdpbGwgZXh0cmFjdCB0aGUgbGFzdCBkYXRlIGZyb20gdGhl
    c2UgdHlwZSBvZgpzdHJpbmdzLgoKMDcvMTIvMjAwNgwMMDcvMTIvMjAwNgwMMDcvMTIvMjAwNgwM
    MDcvMTcvMjAwNgwMLQwMIC0KCk9yIAoKMDcvMTIvMjAwNgwMLQoKT3IKCjA3LzA3LzIwMDYMDDA3
    LzA3LzIwMDYMDC0MDC0MDC0MDC0KCi1TdGV2ZQo=


  2. #2
    JE McGimpsey
    Guest

    Re: Extract Date from Right Formula

    One way:

    =MID(A1, FIND("^", SUBSTITUTE(A1, "/", "^", LEN(A1) -
    LEN(SUBSTITUTE(A1, "/", "")))) - 5, 10)


    "[email protected]" <[email protected]> wrote:

    > I need a formula that will extract the last date from these type of
    > strings.
    >
    > 07/12/2006 07/12/2006 07/12/2006 07/17/2006 - -
    >
    > Or
    >
    > 07/12/2006 -
    >
    > Or
    >
    > 07/07/2006 07/07/2006 - - - -
    >
    > -Steve


  3. #3

    Re: Extract Date from Right Formula

    uh - - - WOW - I don't know how you guys keep coming up with this
    stuff, but this worked perfectly the 1st time. Great work, thanks for
    the help.

    JE McGimpsey wrote:
    > One way:
    >
    > =MID(A1, FIND("^", SUBSTITUTE(A1, "/", "^", LEN(A1) -
    > LEN(SUBSTITUTE(A1, "/", "")))) - 5, 10)



  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Another way...

    =RIGHT(TRIM(SUBSTITUTE(A1,"-","")),10)

    gives a text result, as does previous suggestion. For a true date

    =RIGHT(TRIM(SUBSTITUTE(A1,"-","")),10)+0

    format as date

+ 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