+ Reply to Thread
Results 1 to 6 of 6

Macro to change text in cell depending on the text in another cell in the same row

  1. #1
    Registered User
    Join Date
    08-03-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    24

    Macro to change text in cell depending on the text in another cell in the same row

    Hello,

    I'm basically having trouble trying to create a macro that would change the text in a column F depending on specific text in column O on the same row. A if statement would not work as there is already data in Column F
    eg. If any cell in column O says "Enroll" or "Nominate" then cells in Column F says "OPEN POT" in the corresponding row.

    I'm trying to manipulate this macro that I saw on an older thread, but I can't get it too work.


    Please Login or Register  to view this content.
    Thanks in advance!!
    Last edited by Cutter; 08-03-2012 at 10:16 AM. Reason: Added code tags

  2. #2
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: Macro to change text in cell depending on the text in another cell in the same row

    Try this small change:

    Please Login or Register  to view this content.
    I hope that helps.

    ---------- Post added at 10:03 AM ---------- Previous post was at 10:00 AM ----------

    BTW I don't get why you say an If statement won't work... This should do just the same:

    Please Login or Register  to view this content.
    .?*??)
    `?.???.?*??)?.?*?)
    (?.?? (?.?
    Pichingualas <---
    ??????????????????????????

    Wrap your code with CODE TAGS.
    Thank those who helped you, Don't forget to add to their REPUTATION!!! (click on the star below their post).
    Please mark your threads as [SOLVED] when they are (Thread Tools->Mark thread as Solved).

  3. #3
    Registered User
    Join Date
    08-03-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Macro to change text in cell depending on the text in another cell in the same row

    Thanks mate!

  4. #4
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: Macro to change text in cell depending on the text in another cell in the same row

    No problem

    Please mark your threads as [SOLVED] when they are (Thread Tools->Mark thread as Solved).

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Macro to change text in cell depending on the text in another cell in the same row

    Hello Misbah211, and welcome to the forum.

    Please notice that code tags have been added to your post(s). The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at top of the page and read Rule #3.
    Thanks.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  6. #6
    Registered User
    Join Date
    08-03-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Macro to change text in cell depending on the text in another cell in the same row

    Ah sorry, I didn't read the forum rules properly as I was in a rush at the time. But thank you, I will remember next time![COLOR="Silver"]

    ---------- Post added at 05:04 PM ---------- Previous post was at 05:01 PM ----------
    Last edited by Misbah211; 08-04-2012 at 04:47 AM.

+ 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