Results 1 to 4 of 4

Need code to pull numeric data out of an alphanumeric string (string not constant)

Threaded View

harrydnyc Need code to pull numeric... 04-09-2013, 11:56 AM
AndyLitch Re: Need code to pull numeric... 04-09-2013, 12:26 PM
Marcol Re: Need code to pull numeric... 04-09-2013, 12:33 PM
harrydnyc Re: Need code to pull numeric... 04-09-2013, 04:44 PM
  1. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need code to pull numeric data out of an alphanumeric string (string not constant)

    Your profile states 2003, but your sample is 2007 or above.

    This should work for either.

    1/. Insert two columns after Column B "Rate"

    2/. Put this formula in C2, Drag across to D2, then down as required.
    Formula: copy to clipboard
    =IF(B2="","",IF(COLUMNS($C:C)=1,TRIM(MID(SUBSTITUTE(" "&TRIM($B2)," ",REPT(" ",255)),COLUMNS($C:C)*255,255)),TRIM(MID(SUBSTITUTE(" "&TRIM($B2)," ",REPT(" ",255)),COLUMNS($C:C)*255,255))*1))

    3/. Copy Columns C:D and paste special > Values if required.

    This trims the results and returns a number rather than a string for your rates.
    Last edited by Marcol; 04-09-2013 at 12:39 PM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

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