VLookup - incorrect results - Excel 2007

Posted on 2011-04-21
Last Modified: 2012-05-11
I am using the following vlookup formula on a spreadsheet:


My spreadsheet has two sheets:
Sheet 1 contains my vlookup formula in cell A2
My second sheet is named “numbers”

My problem is this:
The vlookup formula is not providing the correct results on all fields –
I show the results below – notice that “11120” and “11110” show a result on “sheet1” as “5” – the “11120” should show a result of “4” on sheet1
Sheet1 also shows wrong results for 11132 & 11133 (both shows “9” on Sheet1

col-a      col-b
1      10000
2      11000
3      11100
5      11120
5      11110
6      11126
7      11127
8      11128
9      11131
9      11132
9      11133

Numbers sheet:
col-a      col-b
10000      1
11000      2
11100      3
11120      4
11110      5
11126      6
11127      7
11128      8
11131      9
11132      10
11133      11

Any help you could provide would be appreciated.
Question by:mmj1
    LVL 81

    Expert Comment

    by:zorvek (Kevin Jones)


    LVL 81

    Accepted Solution

    The fourth parameter to the VLOOKUP function is range_lookup. From Excel Help:

    Optional. A logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match:
    •If range_lookup is either TRUE or is omitted, an exact or approximate match is returned. If an exact match is not found, the next largest value that is less than lookup_value is returned.
     Important   If range_lookup is either TRUE or is omitted, the values in the first column of table_array must be placed in ascending sort order; otherwise, VLOOKUP might not return the correct value.

    For more information, see Sort data in a range or table.

    If range_lookup is FALSE, the values in the first column of table_array do not need to be sorted.

    •If the range_lookup argument is FALSE, VLOOKUP will find only an exact match. If there are two or more values in the first column of table_array that match the lookup_value, the first value found is used. If an exact match is not found, the error value #N/A is returned.


    Author Closing Comment

    Thanks very much -- that corrected my issue.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
    How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
    The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
    This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now