+ Reply to Thread
Results 1 to 3 of 3

getting a specific text within a data

  1. #1
    Registered User
    Join Date
    06-15-2014
    Posts
    19

    getting a specific text within a data

    excel101.xlsx

    Hi there! I need a help here. Kindly see the attached file.. Thank you!

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: getting a specific text within a data

    Try this one

    =IFERROR(TRIM(RIGHT(SUBSTITUTE(TRIM(MID(SUBSTITUTE(MID(B2,FIND("-",B2),255)," ",REPT(" ",255)),1,255*5))," ",REPT(" ",255)),255*2)),"")

    Row\Col
    B
    C
    1
    Results
    2
    910-San Francisco Giants 10 PK 909-Kansas City Royals
    10 PK
    3
    Kansas City Royals [MLBWS] @ 0.950
    4
    910-San Francisco Giants 10 L 909-Kansas City Royals
    10 L
    5
    Kansas City Royals [MLBWS] @ 0.950
    6
    907-Kansas City Royals 10 +50 908-San Francisco Giants
    10 +50
    7
    Kansas City Royals [MLBWS] @ 0.950
    8
    907-Kansas City Royals 5 L 908-San Francisco Giants
    5 L
    9
    Kansas City Royals [MLBWS] @ 0.950
    10
    916-Los Angeles Dodgers 5 -50 915-St. Louis Cardinals
    5 -50
    11
    St. Louis Cardinals [MLBWS] @ 0.950
    12
    916-Los Angeles Dodgers 6 PK 915-St. Louis Cardinals
    6 PK
    13
    St. Louis Cardinals [MLBWS] @ 0.950
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    06-15-2014
    Posts
    19

    Re: getting a specific text within a data

    Quote Originally Posted by AlKey View Post
    Try this one

    =IFERROR(TRIM(RIGHT(SUBSTITUTE(TRIM(MID(SUBSTITUTE(MID(B2,FIND("-",B2),255)," ",REPT(" ",255)),1,255*5))," ",REPT(" ",255)),255*2)),"")

    Row\Col
    B
    C
    1
    Results
    2
    910-San Francisco Giants 10 PK 909-Kansas City Royals
    10 PK
    3
    Kansas City Royals [MLBWS] @ 0.950
    4
    910-San Francisco Giants 10 L 909-Kansas City Royals
    10 L
    5
    Kansas City Royals [MLBWS] @ 0.950
    6
    907-Kansas City Royals 10 +50 908-San Francisco Giants
    10 +50
    7
    Kansas City Royals [MLBWS] @ 0.950
    8
    907-Kansas City Royals 5 L 908-San Francisco Giants
    5 L
    9
    Kansas City Royals [MLBWS] @ 0.950
    10
    916-Los Angeles Dodgers 5 -50 915-St. Louis Cardinals
    5 -50
    11
    St. Louis Cardinals [MLBWS] @ 0.950
    12
    916-Los Angeles Dodgers 6 PK 915-St. Louis Cardinals
    6 PK
    13
    St. Louis Cardinals [MLBWS] @ 0.950
    Wow! it works!! thank you so much!!

+ 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] Copy rows with specific text in specific column into specific sheet
    By Valemaar in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-22-2014, 03:23 PM
  2. Replies: 2
    Last Post: 08-05-2013, 07:32 PM
  3. Find and extract specific text data & accompanying numerical data
    By gabrielemucho in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 06-18-2013, 05:58 PM
  4. finding a specific text and average the number of data of that text
    By bravo8939 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2013, 10:16 PM
  5. [SOLVED] Macro to convert specific text and format specific text within a string
    By Mencae in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-06-2012, 12:13 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