+ Reply to Thread
Results 1 to 4 of 4

Removing text from numbers

  1. #1
    Registered User
    Join Date
    12-29-2008
    Location
    California, U.S.A.
    MS-Off Ver
    Excel 2003
    Posts
    2

    Removing text from numbers

    I have a column of data which has numbers and units (small example below). I need to remove the text (units) and at the same time multiply the number by a value which is based on what the text is:

    -999.9uA needs to become -999.9*10^-6

    -98.40mA needs to become -98.40*10^-3

    etc. Can anyone help?

    Thanks!
    Last edited by ucmexcel; 12-30-2008 at 12:40 PM.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565
    Hi ucmexcel,

    Welcome to the forum.

    Have a look at the attached where I've created a User Defined Function (udf) and used Excel's VLOOKUP* function to achieve your desired result (hopefully).

    HTH

    Robert

    * I made the assumption that the text multiplier are always the last two characters of the string.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517

    An alternative

    As an alternative, try:
    Please Login or Register  to view this content.
    LEFT(A1,LEN(A1)-1) strips off the Amps
    Then the two substitutes replace m by E-3 and u by E-6

    VALUE then converts the new text string to the required number.

    Mark

    Note that if the units are always going to be A then this can be simplified to:
    Please Login or Register  to view this content.
    Mark
    Last edited by Mark@Work; 12-29-2008 at 09:28 PM. Reason: After Thought

  4. #4
    Registered User
    Join Date
    12-29-2008
    Location
    California, U.S.A.
    MS-Off Ver
    Excel 2003
    Posts
    2
    Thanks to both of you! I really appreciate the help.

+ 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