+ Reply to Thread
Results 1 to 5 of 5

Change text in one column if contains specific word

  1. #1
    Registered User
    Join Date
    08-05-2019
    Location
    Cedar Rapids
    MS-Off Ver
    IA
    Posts
    6

    Change text in one column if contains specific word

    I need some help with a macro. Part of my macro needs to replace words in column A if a specific word is in column B (not all words will contain either word.

    Below is what the report will originally look like
    Column A. , Column B
    Sam , Seed
    Dave , Turf
    Trent , Grass

    The result should look like this:
    Corp , Seed
    Corp , Turf
    Trent , Grass

    Any help would really be appropriated. The attachment has a better example.
    Attached Files Attached Files
    Last edited by wolverine21; 08-05-2019 at 03:09 PM.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,176

    Re: Change text in one column if contains specific word

    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    08-05-2019
    Location
    Cedar Rapids
    MS-Off Ver
    IA
    Posts
    6

    Re: Change text in one column if contains specific word

    So, it was working in the original file that I sent but I'm trying it in the file I actually need to use and it doesn't seem to be working. I'll add the attachment to the original question. I can't seem to figure out how to attach it to this reply.

  4. #4
    Registered User
    Join Date
    08-05-2019
    Location
    Cedar Rapids
    MS-Off Ver
    IA
    Posts
    6

    Re: Change text in one column if contains specific word



    It's not letting me attach the file I'm trying to use.

  5. #5
    Registered User
    Join Date
    08-05-2019
    Location
    Cedar Rapids
    MS-Off Ver
    IA
    Posts
    6

    Re: Change text in one column if contains specific word

    I figured it out. I had to capitalize the words SEED and TURF in what you sent. Thank you!!

+ 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. Change font colour of Specific Text within specified column
    By mowens74 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-13-2018, 07:39 AM
  2. If text is of specific formt change another column colour to grey and add text in another
    By Louisa Venter in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-08-2017, 10:53 AM
  3. Replies: 0
    Last Post: 07-09-2017, 11:01 AM
  4. [SOLVED] In a specific column find text and change the format
    By Louisa Venter in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-22-2015, 02:43 PM
  5. [SOLVED] how do I format a column to change color when another column has a specific word in it?
    By officegirl14 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-23-2014, 06:15 PM
  6. [SOLVED] If change in one column using specific word, then copy row to another tab, repeat.
    By mastro78 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-18-2012, 12:16 PM
  7. Replies: 3
    Last Post: 06-06-2009, 12:17 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