+ Reply to Thread
Results 1 to 5 of 5

Get week from text string

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Get week from text string

    Hi,

    cant seem to get this right.........

    I have the following text string

    "Start Up: 15Wks"

    Now the number 15 can vary...ie...the number 15 could be 153 or 4.......but i need to parse out the number just before the "Wks".

    Any ideas?
    Last edited by welchs101; 11-09-2012 at 09:59 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Get week from text string

    With your text string in A1...

    Courtesy of Ron Coderre
    =LOOKUP(99^99,--("0"&MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),ROW($1:$10000))))
    HTH
    Regards, Jeff

  3. #3
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Get week from text string

    try it array formula
    {=MID(A1;MIN(IF(ISNUMBER(--MID(A1;ROW(1:1000);1));ROW(1:1000)));COUNT(IF(ISNUMBER(--MID(A1;ROW(1:1000);1));ROW(1:1000))))}

  4. #4
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Get week from text string

    thanks .........

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Get week from text string

    You are very welcome...glad it worked out for you.

    =====================================================

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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