+ Reply to Thread
Results 1 to 3 of 3

Criteria based find and replace

  1. #1
    Registered User
    Join Date
    06-09-2011
    Location
    St louis, mo
    MS-Off Ver
    Excel 2007
    Posts
    33

    Criteria based find and replace

    Attached is a document with basic data for explaining what I need. I am trying to search through a column and if that value were "Red" then the macro would fetch the value from an adjacent cell and replace it. If the value were "Blue" then it would leave it alone. So in the document you will find 5 columns. I want the macro to search through column C and if that equals "Red" then it would copy and paste the values from the adjacent cells in E and F to columns A and B. I added what I want the Pre and Post data to look like to give a better visual in the document.


    Criteria Replace.xlsx

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Criteria based find and replace

    give this a shot
    Attached Files Attached Files
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Registered User
    Join Date
    06-09-2011
    Location
    St louis, mo
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Criteria based find and replace

    This looks and works great. Is there a way to get it to paste special as values?

+ 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. [SOLVED] Find and replace with criteria - VBA code
    By shreeja178 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2014, 04:44 AM
  2. Find and replace with criteria
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-07-2014, 01:52 AM
  3. [SOLVED] Find and replace using cell contents as the search criteria
    By Vlad717 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-08-2013, 03:58 PM
  4. [SOLVED] Find blank cell and replace based on criteria
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-27-2012, 05:36 AM

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