+ Reply to Thread
Results 1 to 5 of 5

extracting numbers from the string

  1. #1
    Registered User
    Join Date
    07-25-2014
    Location
    calgary
    MS-Off Ver
    excel 2010
    Posts
    20

    extracting numbers from the string

    I wanted to know if anyone could provide me with the forumula to obtain the value located to the right of the string. Values can certainly change at all times, but is there a way to catch the numeric value after "book value". The right function is not very efficient because transfers can range from $1 - $1,000,000



    ALLANA POTASH CORP NESBITT BURNS INC.TFSA TRANSFER BOOK VALUE 5761.95

    Thanks in advanced

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: extracting numbers from the string

    =right(substitute(a1," ",rept(" ",25)),20)+0
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: extracting numbers from the string

    If you will always have VALUE at the end of the text, try this...
    =--MID(A1,SEARCH("value",A1,1)+6,99)

    If that will not always be the case, but the value will always be at the end of the string, with a space in front of it, try this...
    =--MID(A1,SEARCH("xx",SUBSTITUTE(A1," ","xx",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))),1)+1,99)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    07-25-2014
    Location
    calgary
    MS-Off Ver
    excel 2010
    Posts
    20

    Re: extracting numbers from the string

    Thank you for your immediate response,

    You guys are always very helpful
    Cheers

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: extracting numbers from the string

    Quote Originally Posted by essai2008 View Post
    The right function is not very efficient because transfers can range from $1 - $1,000,000

    ALLANA POTASH CORP NESBITT BURNS INC.TFSA TRANSFER BOOK VALUE 5761.95
    Here's another one...

    =LOOKUP(1E100,--RIGHT(A2,ROW(INDIRECT("1:11"))))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Extracting numbers from a String?
    By lolgiggleman in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-12-2014, 06:16 AM
  2. [SOLVED] extracting numbers from a string of text and numbers
    By ScottLor in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-05-2013, 04:47 PM
  3. Excel 2007 : Extracting Numbers from A String
    By pxoxyx in forum Excel General
    Replies: 6
    Last Post: 04-28-2010, 01:43 AM
  4. [SOLVED] Extracting numbers of a string
    By Apaxe2000 in forum Excel General
    Replies: 4
    Last Post: 05-12-2006, 11:15 AM
  5. [SOLVED] extracting numbers from string
    By Chris Dowell via OfficeKB.com in forum Excel General
    Replies: 1
    Last Post: 01-12-2005, 06:06 PM

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