+ Reply to Thread
Results 1 to 6 of 6

Macro if contains word in column A, put symbol in column E

  1. #1
    Registered User
    Join Date
    10-15-2012
    Location
    Belgrade
    MS-Off Ver
    Excel 2003
    Posts
    3

    Macro if contains word in column A, put symbol in column E

    Hi, I am new here and I need urgent help.

    I have excel sheet with million rows, and I need macro which will, if cells in column A contains specific word or part of a word, for example just "Nick", then put letter "S" in column E in that same row.

    Many thanks for helping me.

  2. #2
    Valued Forum Contributor
    Join Date
    03-17-2012
    Location
    Warsaw, Poland
    MS-Off Ver
    2007/2010
    Posts
    555

    Re: Macro if contains word in column A, put symbol in column E

    Please Login or Register  to view this content.
    Last edited by Bishonen; 10-15-2012 at 07:58 AM.
    If you think that my answer was helpful, please click on the "Add to this user's Reputation" button.

  3. #3
    Registered User
    Join Date
    10-15-2012
    Location
    Belgrade
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Macro if contains word in column A, put symbol in column E

    thank you Bishonen for quick replay, but this does not function for me,

    because in column A, "Nick" is only a part of sentence, I have for example in Cell A1 "Nick Cave 1236 New York", and I want macro which will find specific word "Nick Cave" and in the same row in column J put symbol "S".

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro if contains word in column A, put symbol in column E

    In Bishonen's code, change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Registered User
    Join Date
    10-15-2012
    Location
    Belgrade
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Macro if contains word in column A, put symbol in column E

    Thank you for reply, it works

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro if contains word in column A, put symbol in column E

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.

+ 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