+ Reply to Thread
Results 1 to 4 of 4

Change text to match that of a list of text

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    Warks
    MS-Off Ver
    Excel 2013
    Posts
    91

    Change text to match that of a list of text

    The title's probably confusing, I'll try and explain. Cells A1:A33 contain the names of the home side for a football match and cells K1:K33 the away side. Cell W2:W17 lists all the teams but with added data (G1 to G4) to the ends of the team name. What I'm trying to do is run a macro to change all the team names in the A and K column to match the text in column W. So for example in A1 is the team name "Odd", by running a macro I'd like that to be replaced by "Odd G4" from column W. Likewise in K1 is the team name "Molde" which would be changed/replaced by "Molde G4" from column W.

    I'm basically trying to run a macro to change/replace all team names in column A and K to the values in column W.

    Not even sure if this is possible but thought it was worth a shot. Thanks for any replies in advance.

    Sample 17.xlsx

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Change text to match that of a list of text

    Hi Consty,
    try it
    Please Login or Register  to view this content.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Change text to match that of a list of text

    You could also try this formula approach

    Sort Column W ascending (A-Z)
    Then in say Y1, drag/fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then copy the result and Paste Special > Values to A1

    [EDIT]
    You have Stromsgodset in Column A and Stromgodset G1 in Column W
    Attached Files Attached Files
    Last edited by Marcol; 07-02-2013 at 01:37 PM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    10-10-2012
    Location
    Warks
    MS-Off Ver
    Excel 2013
    Posts
    91

    Re: Change text to match that of a list of text

    I just noticed I had a typo. Thank you both for your replies, I've used the macro this time around but it's handy to know this can be accomplished with a formula as well.

+ 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