+ Reply to Thread
Results 1 to 14 of 14

Change the words in the columns

  1. #1
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Change the words in the columns

    Hi All,

    is it possible to have a code or macro that will automatically changed a work in column? For example: if the word in column A:A has the word AE then its shgould be replace by SP. Something like that?

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Change the words in the columns

    Can be done using formulas too..

    Request you to attach a sample workbook, with words that need to be changed..
    Cheers!
    Deep Dave

  3. #3
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Change the words in the columns

    Attached is thue sample file
    Attached Files Attached Files

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Change the words in the columns

    Hi,

    Se the file attached..
    Attached Files Attached Files

  5. #5
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Change the words in the columns

    Hi again can you check the file it seems like it has a problem..

    For Sp it has aSP and BP its BPll?

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Change the words in the columns

    I am sorry, the attached formula was incorrect.. Check out this file..
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Change the words in the columns

    If you automatically want to check/change the entire cell value then try this worksheet event code (put in the respective Sheet module):

    Please Login or Register  to view this content.
    E.g. if you put in AE in Col.A, the value will be changed to SP.

  8. #8
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Change the words in the columns

    Hi NeedForExcel,

    i still got below Capture.JPG

  9. #9
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Change the words in the columns

    Is that not what you want?

    Then I guess I am mis-understanding the problem..

    Can you tell me the desired output?

  10. #10
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Change the words in the columns

    Hi berlan,

    I will have a button that will run the macro. how can i cahnge it?:

  11. #11
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Change the words in the columns

    I just want that if a cell contains AE it will be SP when i run a formula or macro.

  12. #12
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Change the words in the columns

    Maybe:

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Change the words in the columns

    Thanks! Exactly what i need!

  14. #14
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Change the words in the columns

    You're welcome. Glad to help out and thanks for the feedback and the rep.

+ 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. Replies: 4
    Last Post: 07-21-2013, 05:01 PM
  2. [SOLVED] Find matching words in 10 columns and add row numbers of matching words
    By zeke 29 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-03-2012, 09:57 AM
  3. change numbers to words
    By aranechan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2011, 01:31 PM
  4. Need some help. How to change words across document?
    By Mushroomhero in forum Excel General
    Replies: 3
    Last Post: 08-29-2008, 11:16 AM
  5. change words into numbers
    By Hibore222 in forum Excel General
    Replies: 3
    Last Post: 08-05-2007, 02:06 AM

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