Results 1 to 9 of 9

Multiple Results of Vlookup() - Alternate [VBA Code]

Threaded View

  1. #1
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    Multiple Results of Vlookup() - Alternate [VBA Code]

    I have the following Vlookup() in place. The problem is there are multiple values it could return and as Vlookup() is designed to return the first match.

    How do I get around this? Is there an alternate function to check for a match in the "range" of matchs instead of the first match.

                   Set lookupsht = ActiveWorkbook.Sheets("Contiguous")
                            contig_part = Application.VLookup(body_part(1), lookupsht.Range("A1:B38"), 2, False)
                            If contig_part = body_part(2) Then contiguous = True
    Last edited by lloydgodin; 05-03-2012 at 12:50 PM. Reason: incomplete sentence

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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