+ Reply to Thread
Results 1 to 8 of 8

Find and Replace Loop that looks up values in range for Search criteria

  1. #1
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    Find and Replace Loop that looks up values in range for Search criteria

    Hi guys,

    I want a code to be able to take the value in S, loop through column I to see if it finds that string embedded anywhere in the text descriptions, if there is a match, I would like to replace the value in column Q of the corresponding row where we got a match with the value in V

    For example. In the table S7:V20 there this data

    Is there a way to make a code to accomplish this? Any help would be greatly appreciated
    Last edited by lougs7; 09-21-2018 at 09:39 AM.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Find and Replace Loop that looks up values in range for Search criteria

    Beause you want to replace values in column "Q" you want a macro not a formula,... is it ?
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Find and Replace Loop that looks up values in range for Search criteria

    In Sheets "Database"
    No such sheet available...
    Code would search I:I for "EUR/USD Premium-Quote"
    No such values available in Col I
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Find and Replace Loop that looks up values in range for Search criteria

    Is it what you need
    Please Login or Register  to view this content.
    Last edited by PCI; 09-06-2018 at 03:23 PM.

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Find and Replace Loop that looks up values in range for Search criteria

    For current upload ... perhaps this ....
    In Column S of that table I have names of securities
    loops through your Find/replace table and replaces description codes ...
    Please Login or Register  to view this content.
    Last edited by sintek; 09-06-2018 at 02:27 PM.

  6. #6
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Find and Replace Loop that looks up values in range for Search criteria

    Please Login or Register  to view this content.

  7. #7
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Find and Replace Loop that looks up values in range for Search criteria

    .......................................
    Thanks.gif

  8. #8
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Find and Replace Loop that looks up values in range for Search criteria

    Thank you Lougs7 for the rep and if you were using the code I sent you have seen there a buch of Const you may adjust versus you next modifications

+ 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 Loop + a Loop to remove Duplicate values
    By lougs7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2018, 07:43 AM
  2. Find and replace multiple values based on criteria
    By samuelhzb in forum Excel General
    Replies: 6
    Last Post: 01-04-2015, 01:25 PM
  3. Find and Replace values in a selected Range
    By jskasango in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-13-2014, 09:11 AM
  4. [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
  5. updating find and replace values in a macro loop
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-10-2013, 03:25 AM
  6. Loop to find a criteria within range, then output results to individual lines
    By bologne in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-17-2011, 12:30 PM
  7. Find and Replace Values in Range
    By ThatGirlinMS in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-12-2006, 12:45 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