+ Reply to Thread
Results 1 to 3 of 3

Search a range for any identical string in another range

  1. #1
    Forum Contributor
    Join Date
    04-30-2014
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    113

    Search a range for any identical string in another range

    Hi there,

    I have a macro that I am using to find if a certain string ("ID1") is found in a range. I posted the code below.

    I've had to make some changes to my workbook and I now, instead of looking for a single string, I have to find if any strings in a certain range (sheet("Template2"), column "AH") is found in the other range.

    Can anyone suggest how I can change my code below to do that?

    Please Login or Register  to view this content.
    Thanks,

    Goeff

  2. #2
    Forum Contributor
    Join Date
    04-30-2014
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Search a range for any identical string in another range

    I think I can manage to loop this search for each value in the AH column range but that seems inefficient. Or this the way to do it?

  3. #3
    Forum Contributor
    Join Date
    04-30-2014
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Search a range for any identical string in another range

    In case more information could be helpful, I am looking to see any of the following (in column AH - can be up to 14 strings):

    Temp ID
    41946_Office
    41953_Office
    41960_Office
    41967_Office

    is found in column "P" of sheet "ref."

    These strings are the result of a concatenate formula.

    Thanks!
    Last edited by Geoff.; 12-31-2014 at 02:35 PM. Reason: added detail

+ 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. String search in a Range - Userform
    By Ringhio in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2014, 06:32 AM
  2. extracting data from a range if a cell value is identical to a range name
    By blue_clouds_mountain in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2013, 05:28 PM
  3. [SOLVED] Search for string with repeats in the searching range
    By Hallet in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-05-2012, 05:58 PM
  4. Replies: 1
    Last Post: 10-07-2010, 07:51 PM
  5. Replies: 24
    Last Post: 04-15-2009, 09:24 AM

Tags for this Thread

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