+ Reply to Thread
Results 1 to 3 of 3

Returning 2nd, 3rd, 4th value with vlookup?

  1. #1
    Registered User
    Join Date
    12-05-2016
    Location
    San Francisco, CA
    MS-Off Ver
    2013
    Posts
    12

    Returning 2nd, 3rd, 4th value with vlookup?

    My company does inspections and the result of the inspection- blank cell or pass - is located on another work sheet.

    Currently we are using a VLOOKUP to return the result of the inspection to the master worksheet. The formula looks like this: "=IFERROR(VLOOKUP(H1396,'Inspection Database'!H:X,17,FALSE),"")" Whereas the H1396 is the unique identifier (APN) of the property inspected. The issue is that a property can be inspected multiple times before it passes;therefore creating multiple rows with the unique identifier.

    When it does finally pass the row in which it did will say "Pass" but it could have three or four other rows above it with a blank. The VLOOKUP returns the first match, so if a house has multiple inspections before a pass it will show a "0" on the main worksheet.
    Is there a way to ignore the blanks and only return a value if it is a "Pass"?

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Returning 2nd, 3rd, 4th value with vlookup?

    Hi Jonsmith2212 and welcome to the forum.

    Since VLOOKUP only matches the first match it finds try INDEX / SMALL / IF

    Since I don't have a layout of your data a made up a bare-bones data base of APN numbers and Status.

    In B2 put the APN number in question.

    Then array enter this formula in A2 and fill down. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This should give you an idea on how to obtain multiple criteria matches

    See the attached.
    Dave

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Returning 2nd, 3rd, 4th value with vlookup?

    Or you can get the rows of APN data using
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and data using INDEX
    I am using the example provided by @FlameRetired

+ 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. Using vLookup based on results from a vLookup & returning an undetermined list
    By NormalityBan in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-14-2014, 05:02 AM
  2. Vlookup not returning a value, just not the right value.
    By Kashus in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-06-2013, 06:37 PM
  3. VLOOKUP now returning #REF!
    By Tony Vargo in forum Excel General
    Replies: 10
    Last Post: 07-02-2010, 10:54 AM
  4. Vlookup returning #N/A
    By JEllison in forum Excel General
    Replies: 3
    Last Post: 11-13-2008, 03:18 PM
  5. [SOLVED] vlookup returning sum
    By Rose in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  6. vlookup returning sum
    By Rose in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  7. [SOLVED] vlookup returning sum
    By Rose in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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