+ Reply to Thread
Results 1 to 5 of 5

Find and Replace - Value selected at random from a list

  1. #1
    Registered User
    Join Date
    05-11-2012
    Location
    Brighton, England
    MS-Off Ver
    Excel 2011 Mac
    Posts
    3

    Find and Replace - Value selected at random from a list

    OK that is one hell of a confusing title.

    What I have is 500 city names with 10 variations on the description. For example: Come and visit [City] find everything you need for a fantastic trip here

    I want to randomly apply these 10 variations to the 500 cities but also replace [City] with the relevant city name.

    I was hoping to use a macro as it's something I will be doing a lot over the next few weeks for thousands of values. Doe anyone have any idea if it's possible and also how to do it, I have no issue using 2 macros either.

    If you need any more information please let me know.

    Thanks,

    Rhys

  2. #2
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Find and Replace - Value selected at random from a list

    Can you upload a workbook (or a mockup of your workbook)?

  3. #3
    Registered User
    Join Date
    05-11-2012
    Location
    Brighton, England
    MS-Off Ver
    Excel 2011 Mac
    Posts
    3

    Re: Find and Replace - Value selected at random from a list

    Sample.xlsx

    Here is a sample with a smaller list, so we have 10 descriptions, lots of city names and I want them to appear at random with the relevant city name.

  4. #4
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Find and Replace - Value selected at random from a list

    Backup your data.
    Run: RandomFindAndReplace

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-11-2012
    Location
    Brighton, England
    MS-Off Ver
    Excel 2011 Mac
    Posts
    3

    Re: Find and Replace - Value selected at random from a list

    You Sir are a magician. I cannot thank you enough, the time you have saved me defies all description.

+ 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