+ Reply to Thread
Results 1 to 4 of 4

How to remove dosage info from the drug name in excel?

  1. #1
    Registered User
    Join Date
    03-20-2014
    Location
    Tampa
    MS-Off Ver
    Excel 2010
    Posts
    1

    How to remove dosage info from the drug name in excel?

    Hi guys,

    My original data is like below -

    ABACAVIR 20 MG/ML
    ABACAVIR 300 MG
    ABACAVIR 300 MG / LAMIVUDINE 150 MG / ZIDOVUDINE 300 MG
    ABACAVIR 600 MG / LAMIVUDINE 300 MG

    I want to remove all the dosage info from the drug names, so they will become -

    ABACAVIR
    ABACAVIR
    ABACAVIR / LAMIVUDINE / ZIDOVUDINE
    ABACAVIR / LAMIVUDINE


    Can any of you help me on this? Thanks a lot!

  2. #2
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: How to remove dosage info from the drug name in excel?

    Your list starts from a1 cell.
    =TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"1",""),"2",""),"3",""),"4",""),"5",""),"6",""),"7",""),"8",""),"9",""),"0",""),"MG",""),"ML",""))

    This is longest solution actually. I am sure here excel experts will suggest smarter formulas.
    Appreciate the help? CLICK *

  3. #3
    Registered User
    Join Date
    04-29-2013
    Location
    Ontario, Canada
    MS-Off Ver
    MS Office 2010
    Posts
    80

    Re: How to remove dosage info from the drug name in excel?

    Here is a spreadsheet that allows you to remove specific words.
    Attached Files Attached Files
    Draconi

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How to remove dosage info from the drug name in excel?

    Here it is

    in B1

    Please Login or Register  to view this content.
    A
    B
    1
    ABACAVIR 20 MG/ML ABACAVIR /
    2
    ABACAVIR 300 MG ABACAVIR
    3
    ABACAVIR 300 MG / LAMIVUDINE 150 MG / ZIDOVUDINE 300 MG ABACAVIR / LAMIVUDINE / ZIDOVUDINE
    4
    ABACAVIR 600 MG / LAMIVUDINE 300 MG ABACAVIR / LAMIVUDINE
    Last edited by AlKey; 03-20-2014 at 08:11 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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. Macro to remove contents and replace with other info
    By Pkeschinger in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-18-2014, 12:20 AM
  2. Replies: 1
    Last Post: 07-24-2013, 03:11 AM
  3. Replies: 1
    Last Post: 06-26-2013, 01:17 PM
  4. I need a Macro or Script to Remove Certain Info...
    By BlackJackal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2005, 07:26 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