+ Reply to Thread
Results 1 to 3 of 3

extract numbers from text

  1. #1
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723

    extract numbers from text

    hi,

    how can i extract the 123.3 from "123.3 euros" the amount could always be different as can be the text

    thanks
    steve

  2. #2
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,674
    If the amount is always at the start and followed by a space

    =LEFT(A1,FIND(" ",A1)-1)+0

  3. #3
    Forum Guru mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,100
    The array formula
    =MAX(IF(ISERROR(VALUE(LEFT($A$1,ROW(A1:A30)))),0,VALUE(LEFT($A$1,ROW(A1:A30))))) (entered with Contol-Shift-Return)
    will return the value of the numeral starting the text in A1.

    Daddylonglegs formulation is better (faster, easier to edit), but requires the data to be in a set format.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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