+ Reply to Thread
Results 1 to 4 of 4

converting text to numbers

  1. #1
    Registered User
    Join Date
    10-05-2007
    Posts
    2

    converting text to numbers

    i have a set of values that is ranges from a,b,c. i need to change the values of these numbers so a =1, b=0 and c=0. i can't do it manually as there is over 300 a's,b's and c's. is there a quick way to change these in excel?
    thanks for your help!!

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Select Column > Ctrl + H > find dialog box = A replace dialog box = 1

    then repeat for next two criteria

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    10-05-2007
    Posts
    2
    WOW! thank you so much i searched for so long, you're a life saver!

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Glad it helped. Here's a formula that could do the same

    If data in A1 enter this in B1 and drag down then paste special values and delete column A

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(LOWER(A1),"a",1),"b",0),"c",0)

    VBA Noob

+ 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