+ Reply to Thread
Results 1 to 6 of 6

Pulling random text string

  1. #1
    Registered User
    Join Date
    09-07-2021
    Location
    Michigan, US
    MS-Off Ver
    365
    Posts
    8

    Pulling random text string

    Hi,
    In the attached i am trying to pull the values for MG only.

    Any help would be greatly appreciated.

    Thank you kindly!
    Attached Files Attached Files

  2. #2
    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,812

    Re: Pulling random text string

    What do you mean by 'pull'? Pull where?

    In B2 copied down, maybe:

    =IF(ISERROR(FIND("MG",A2)),"",A2)
    Last edited by AliGW; 10-26-2021 at 04:54 PM.
    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.

  3. #3
    Registered User
    Join Date
    09-07-2021
    Location
    Michigan, US
    MS-Off Ver
    365
    Posts
    8

    Re: Pulling random text string

    Thanks for your response, Ali. Im actually looking to get the numeric values only:

    ex:

    MVASI 400 MG SDV 16 ML
    RITUXAN HYCELA 1400 MG SDV ASD
    MVASI 100 MG SDV 4 ML

    what im looking for is 400, 1400, 100

  4. #4
    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,812

    Re: Pulling random text string

    OK - please mock up the results you want how you want them in your sample workbook and post it again.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Pulling random text string

    Please try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Pulling random text string

    Assum MG never excess 999

    =MID(A2,SEARCH("MG",A2)-4,4)+0
    Quang PT

+ 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. Replies: 4
    Last Post: 01-22-2020, 06:26 PM
  2. Pulling text and date out of a long string of text
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2019, 01:03 PM
  3. [SOLVED] Pulling link out of text string
    By ssim in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-31-2017, 02:08 PM
  4. Finding and Pulling Text Mid String
    By tdoolittle13 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-11-2014, 05:27 PM
  5. [SOLVED] Pulling numbers out of text string
    By snoopy1461 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-27-2013, 12:17 PM
  6. [SOLVED] Pulling a string of text
    By Montoro22 in forum Excel General
    Replies: 5
    Last Post: 06-11-2013, 11:36 AM
  7. [SOLVED] pulling text from the middle of a string
    By DRFILL in forum Excel General
    Replies: 3
    Last Post: 09-21-2012, 11:35 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