+ Reply to Thread
Results 1 to 4 of 4

Remove units to express a concentration or strength as just a number

  1. #1
    Registered User
    Join Date
    09-17-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Remove units to express a concentration or strength as just a number

    I have a column of various concentrations (strengths) of medicines eg.

    10mg/5ml
    50mg/ml
    500mcg/5ml
    1mmol/ml

    I require a formula that will remove the units and express the resulting fraction as a number, so for the above examples, this would be:

    2
    50
    100
    1

    Can any one please help. Thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Remove units to express a concentration or strength as just a number

    bit messy but

    Please Login or Register  to view this content.
    (entered with CTRL+SHIFT+ENTER)

    see attached book seems to work

    example.xlsx

    i just realised i left Colmn B on that can be deleted it was just an interim cell while i confirmed it working
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  3. #3
    Registered User
    Join Date
    09-17-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Remove units to express a concentration or strength as just a number

    Thanks Twiggy.
    This seems to work on your example sheet, but when I copy the formula into mine I get a #VALUE! error. Also, when I enter more data and drag the formula further down the column on your example sheet I get a #NAME? error. Any idea what I'm doing wrong?
    PS - what is the purpose of the section of the formula $A$65:$A$90? - is the actual reference critical?

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Remove units to express a concentration or strength as just a number

    did you enter it with control+Shift+enter not just enter its an array formula.

    and that referace is just telling what rows to use in the char part

    as in

    =CHAR(ROW(A65)) will return A
    so in an array CHAR(ROW(A65:A90) means ABCDEFGHIJKLMNOPQRSTUVWXYZ

+ 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