+ Reply to Thread
Results 1 to 4 of 4

Find all and replace based on a named range

  1. #1
    Registered User
    Join Date
    06-15-2011
    Location
    Converse, TX
    MS-Off Ver
    Excel 2016
    Posts
    72

    Find all and replace based on a named range

    As the title suggests, I would like to find and replace all items on 'Sheet1' based on a named range (dubbed "codes") from 'Sheet2'. See the example tables below for clarification.

    Current Format for Sheet1 and Sheet 2:
    Sheet1 Sheet2 - Named Range
    Management | Repair | All Services | Dispatch Management | Repair |
    Management | Upgrade | All Services | Dispatch Management | Upgrade |
    Management | Downgrade| Pest | Dispatch Management | Downgrade|
    Management | Cancel | Lawn | Dispatch Management | Cancel |

    Example of what Sheet 1 Would look like once the 'find all and replace' macro has completed:
    Sheet1
    All Services | Dispatch
    All Services | Dispatch
    Pest | Dispatch
    Lawn | Dispatch

    Any ideas how I can get something like this to work?

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Find all and replace based on a named range

    try this macro
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-15-2011
    Location
    Converse, TX
    MS-Off Ver
    Excel 2016
    Posts
    72

    Re: Find all and replace based on a named range

    Quote Originally Posted by rcm View Post
    try this macro
    That gets what I need half way there. The only issue with the macro you provided is that it only does a like for like. Meaning it only checks removes A2 on sheet1 from a2 on sheet2. What I would need would be something along the lines of it checking the list for any of those items. The list that I am looking to work with will be in excess of 20+ items and definitely wont be in any specific order. I'll upload a better example here in a few minutes. Just need to set up a workbook.

    Edit:
    Here's the workbook with the example that I am referring to. Book2.xlsx
    Last edited by klturi421; 01-25-2016 at 11:48 PM.

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Find all and replace based on a named range

    Sorry, I read it to lightly, but here it is
    Please Login or Register  to view this content.

+ 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. Replies: 1
    Last Post: 11-28-2013, 05:38 AM
  2. Select a range named and replace values
    By Kamusksn in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-08-2013, 08:22 AM
  3. Code to find named range doesn't find the correct field range?
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-12-2012, 05:54 PM
  4. Using VBA on a named range to replace select statement
    By Tosca1978 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2012, 05:24 AM
  5. replace each content linked together to a named range
    By dvb_24 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-24-2011, 03:11 AM
  6. Find/Replace Cell Values with Named Ranges
    By enk529 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2010, 06:07 PM
  7. Replace a value in a column with related value in a Named Range
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-19-2008, 09:14 PM
  8. Replies: 1
    Last Post: 06-03-2006, 10:55 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