+ Reply to Thread
Results 1 to 2 of 2

Keen searching until a value is found

  1. #1
    Registered User
    Join Date
    06-07-2010
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2010
    Posts
    44

    Keen searching until a value is found

    I've got a sheet with 2 values 1 in column A and one in column B. I want to search through column A until I match a value in column B. I'm sure this is done using the .FindNext function.

    Bit unclear so I'll illustrate with an example,

    A B
    5 S
    6 F
    7 R
    5 Q
    5 G
    5 H
    3 N
    2 M

    So I want to keep searching until I get a 5 in A and an H in B.

    Also, if possible, how do I deal with a find error if nothing is found that match the criteria?

    What's the best code for this?
    Last edited by hojkoff; 04-10-2013 at 05:59 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Keen searching until a value is found

    Please Login or Register  to view this content.
    Elegant Simplicity............. Not Always

+ 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