+ Reply to Thread
Results 1 to 4 of 4

Extracting multiple percentages from a string with custom function

  1. #1
    Registered User
    Join Date
    06-11-2013
    Location
    Indiana, PA
    MS-Off Ver
    MS365 Version 2209
    Posts
    29

    Extracting multiple percentages from a string with custom function

    Hi All!

    What I've been trying to do is extract only percentages from a string, and parse them out in neighboring columns. Attaching a photo of what I need the result to be. What I'd like to be able to do, is to do it with a custom funtion from VBA but I'm struggling to get the correct format and or parsing them into separate columns....just coming out 10099857550, for example. It may take the custom funtion to get them into one column, separated by the commas, and then doing functions ie...Left, right, mid, to extract them further. It'd be great to do it with one function. I couldn't do it with textsplit either. The strings are too different to just drag the same text split formula.

    Whatever the case, I really appreciate the help! It would save me using and updating a lookup table with new strings coming in regularly.

    Thanks!
    Will

    PercentExtractEx.png
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835

    Re: Extracting multiple percentages from a string with custom function

    UDF
    B2:
    =GetPerc(A2)
    and copy down
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-11-2013
    Location
    Indiana, PA
    MS-Off Ver
    MS365 Version 2209
    Posts
    29

    Re: Extracting multiple percentages from a string with custom function

    Thank you Jindon! This worked like an absolute charm! Exactly what I needed!

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835

    Re: Extracting multiple percentages from a string with custom function

    You are welcome and thanks for the rep.

    Please don't forget to mark the thread as SOLVED.

+ 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: 15
    Last Post: 02-12-2021, 04:01 PM
  2. [SOLVED] Extracting Multiple Dates in a String
    By camadax in forum Excel General
    Replies: 12
    Last Post: 07-03-2018, 12:55 AM
  3. extracting data from a custom object in a custom collection
    By whburling in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2017, 07:53 PM
  4. Replies: 0
    Last Post: 11-20-2015, 12:34 PM
  5. [SOLVED] Extracting multiple numbers in alphanumeric string
    By Kentkopfchen in forum Excel General
    Replies: 14
    Last Post: 06-09-2014, 01:12 AM
  6. [SOLVED] Extracting multiple occurrences of variable text string
    By Rigged in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2013, 10:30 AM
  7. Replies: 1
    Last Post: 11-02-2011, 06:08 AM

Tags for this Thread

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