+ Reply to Thread
Results 1 to 9 of 9

Extract number from sting of text

  1. #1
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Asia
    MS-Off Ver
    Microsoft 365
    Posts
    234

    Extract number from sting of text

    Hi, could you pls help me with the formula to extract either 61% or 61 from cell A1? thanks.
    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,460

    Re: Extract number from sting of text

    Try this:

    =MID(A1,FIND("</",A1)-3,3)
    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
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Extract number from sting of text

    This might work also:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    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: Extract number from sting of text

    Try this
    Enter in B1
    Format cell B1 as percentage.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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

  5. #5
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Asia
    MS-Off Ver
    Microsoft 365
    Posts
    234

    Re: Extract number from sting of text

    Thanks to both of you. May I trouble you again to extract 13.8 from the string below?

    <b>13,8 CNY</b>

  6. #6
    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: Extract number from sting of text

    Quote Originally Posted by L.LEE View Post
    Thanks to both of you. May I trouble you again to extract 13.8 from the string below?

    <b>13,8 CNY</b>
    For this you would need a different formula
    Assuming that short string is in A2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Asia
    MS-Off Ver
    Microsoft 365
    Posts
    234

    Re: Extract number from sting of text

    Thanks Alkey. Sometimes it is not CNY but some other currency. It is possible to have a generic formula that extracts the numbers only and converts the commas to "."?

  8. #8
    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: Extract number from sting of text

    Quote Originally Posted by l.lee View Post
    thanks alkey. Sometimes it is not cny but some other currency. It is possible to have a generic formula that extracts the numbers only and converts the commas to "."?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Asia
    MS-Off Ver
    Microsoft 365
    Posts
    234

    Re: Extract number from sting of text

    Thanks so much. It works.

+ 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. Processing a sting of text
    By HDeuce in forum Excel General
    Replies: 6
    Last Post: 09-09-2016, 11:05 AM
  2. help with multiline textbox and manipulating text sting
    By yoursamrit2000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2015, 03:35 AM
  3. [SOLVED] data extract sting
    By jiggaboi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-04-2013, 03:15 PM
  4. [SOLVED] Separating specific numbers from a long sting of text
    By Platinum3x in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-17-2012, 10:43 PM
  5. Combine cells into CSV Text Sting
    By Patchworks in forum Excel General
    Replies: 3
    Last Post: 12-03-2010, 08:57 PM
  6. Extracting characters from text sting
    By madmanmac in forum Excel General
    Replies: 3
    Last Post: 12-05-2008, 03:04 PM
  7. Count Characters In A Text Sting
    By mark_richards in forum Excel General
    Replies: 1
    Last Post: 02-01-2005, 09:08 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