VLookup Formula Returning "Close Match" Not Exact

I think my issue is that Numbers is locating "close matches" and importing that data instead of an exact match. But maybe there is another problem. I'll let you all be the judge.


I am trying to use the VLookup formula to pull information from "Sheet2" into a specific cell in"Sheet1". I have the formula working the way I want.


This is entered into the cell I want to populate in Sheet1

=IFERROR(VLOOKUP(A7,Sheet2::Table 1::A:AF,14),"")


It returns the value from cell 14 on Sheet2 from the row that matches A7 (7549 Westgate St). It populates everything correctly. Got it. Good.


My issue is that A8 is a similar value, but not exactly the same as A7 (7549 Westgate St). However, as I add the formula to additional cells it populates the information into row 8 as if A8 (7740 Westgate St) is an exact match. But it is not. It should just leave the cell blank because there is no match on Sheet2. Make sense?


Is there a way to tell Numbers to look for an exact match instead of a near match?

MacBook Pro with Retina display, iOS 10.1

Posted on Dec 18, 2016 6:58 AM

Reply
3 replies

Dec 18, 2016 7:48 AM in response to mattpritch2

Reviewing the argument list for VLOOKUP reveals that there is an argument at the end of the list call "Close match":


Here is the details about VLOOKUP:

The VLOOKUP function returns a value from a collection of columns by using the left column of values to pick a row and a column number to pick a column in that row.

VLOOKUP(search-for, columns-range, return-column, close-match)

  • search-for: The value to find. search-value can contain any value.
  • columns-range: A collection of cells. columns-range must contain a reference to a single range of cells, which may contain any values.
  • return-column: A number value that specifies the relative column number of the cell from which to return the value. The leftmost column in the collection is column 1.
  • close-match: An optional modal valuethat determines whether an exact match is required.
    • close match (TRUE, 1, or omitted): If there’s no exact match, select the row with the largest left-column value that is less than or equal to the search value. If you use close match, you can’t use wildcards in search-for.
    • exact match (FALSE or 0): If there’s no exact match, returns an error. If you use exact match, you can use wildcards in search-for. You can use the wildcard ? (question mark) to represent one character, an * (asterisk) to represent multiple characters, and a ~ (tilde) to specify that the following character should be matched rather than used as a wildcard.


Here is your formula:

=IFERROR(VLOOKUP(A7,Sheet2::Table 1::A:AF,14),"")


So you have omitted the last argument which give VLOOKUP guidance how to behave in such situations.


Change your formula to:

=IFERROR(VLOOKUP(A7,Sheet2::Table 1::A:AF,14, FALSE),"NOT FOUND")


this will now report when an exact match is not found. IF you just want the cell empty on no exact match, then change the formula to:

=IFERROR(VLOOKUP(A7,Sheet2::Table 1::A:AF,14, FALSE),"")

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

VLookup Formula Returning "Close Match" Not Exact

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.