100% found this document useful (1 vote)
160 views20 pages

VLOOKUP Versus INDEX and MATCH Versus DGET

Uploaded by

Oriando
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
160 views20 pages

VLOOKUP Versus INDEX and MATCH Versus DGET

Uploaded by

Oriando
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

 

exceldemy.com
Optimised just now
View original
Your email address

To search type and hit enter

Submit

ADVANCED EXCEL / FORMULAS / FUNCTIONS


4

VLOOKUP versus INDEX and MATCH versus DGET


BY TARYN N · PUBLISHED MARCH 18, 2017 · UPDATED MARCH 18, 2017
Microsoft Excel provides efficient functions that allow one to search for and lookup data. Of the
lookup functions – VLOOKUP, INDEX and MATCH and the database function DGET are the most
useful and most widely utilized.

The syntax for the VLOOKUP Function is the following:

=VLOOKUP (lookup_value, table_array, col_index_num, [range_lookup])

https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-
07498555&format=300x250&output=html&ad_type=image&url=https%3A%2F%2Fwww.exceldemy.com%2Fvlookup-index-and-mat
78978&correlator=1015094244166&ref=https%3A%2F%2Fgoogleweblight.com%2F%3Flite_url%3Dhttps%3A%2F%2Fwww.excelde
index-and-match-and-dget%2F%26ei%3DXTSKQhQD%26lc%3Den-
D695%26host%3Dwww.google.co.id%26ts%3D1498199104%26sig%3DALNZjWnDmXqomcvBr96ECeN5BvaYWolglw&ifi=1
it may have moved permanently to a new web address.

where lookup_value is the value you want the function to use in order to find the matching
output value, table_array is the range that contains all the columns of interest, the col_index_num
specifies the number of the column containing the output value that we want to lookup,
[range_lookup] is a true or false value – where TRUE denotes an approximate match and FALSE is
an EXACT match.

The syntax for the INDEX and MATCH combined formula for lookups is the following:

=INDEX (range, MATCH (lookup_value, lookup_range, match_type))

where range is the destination range that contains the value one wants to lookup, and the
subsequent match function in this combination formula tells the index function the position of
that value in order to retrieve it.

The syntax for the DGET function is the following:

=DGET (database, field, criteria)

where database is the entire data set and the first row contains the labels or column headings,
field indicates the column that is used in the function, and criteria is the group of cells that
contains the conditions that one wants to specify.

Each lookup function has its advantages and associated disadvantages. So, let’s get started with a
simple example to illustrate those advantages and disadvantages.
Table of Contents [hide]

1 Introduction
2 VLOOKUP
2.1 INDEX and MATCH
3 DGET function
4 Conclusion
5 Download working file
6 Useful links:

Introduction
The United States Tennis Association has a rankings system, called the National Tennis Ratings
Program (NTRP) which designates NTRP ratings based on the tennis player’s skill level. For the
Adult NTRP Ratings, skill level is designated by looking at the results of the player at hand, in
USTA League and/or USTA NTRP adult tournaments. The scale starts at 2 and increases in
increments of 0.5 all the way up to 7.

A hypothetical tennis coach is interested in retrieving the USTA rankings of certain players at his
clinics, in order to pitch equally ranked players against each other in future matches. The source
data is shown below:
VLOOKUP
1) For our example, we want to enter a player’s name and then find their NTRP rating, using the
VLOOKUP Function.

2) In Cell I6, we enter the value Ian Roberts, which is the name of the player whose NTRP rating
we want to find.
3) In Cell I7, we enter the following formula:

=VLOOKUP (I6, $B$6: $E$105, 4, FALSE)

4) Upon pressing CTRL-ENTER, VLOOKUP retrieves the value of 4.0 which is the player Ian
Roberts’s NTRP rating.
The main advantage of the VLOOKUP Function is that it is easy to learn, additionally many Excel
users are familiar with the function.  Thus, when sharing sheets or when collaborating with co-
workers, everybody is on the same page when it comes to understanding and using the formulas
in the workbook.

The disadvantage of VLOOKUP is that it can only do lookups from left to right. In other words,
one looks up a value in column, and the match must be in column to a right of that value or else
VLOOKUP returns an error message.

Additionally, VLOOKUP can be prone to error in larger spreadsheets. So, in these cases its best to
try other lookup functions such as the INDEX and MATCH formula combined and the DGET
Function.

INDEX and MATCH


1) For our next example, we still want to enter a player’s name and then find their NTRP rating
but this time we are going to use INDEX and MATCH, in order to retrieve the rating of the player
at hand.

2) In Cell I6, again we enter the value Ian Roberts, which is the name of the player whose NTRP
rating we want to find, as in the example above.

3) In Cell I7, we enter the following formula:


=INDEX ($E$6: $E$105, MATCH (I6, $B$6: $B$105, 0))

4) Upon pressing CTRL-ENTER, the INDEX and MATCH formula retrieves the value of 4.0 which is
the player Ian Roberts’s NTRP rating.
The main advantage of using the INDEX and MATCH formula is that it is more versatile than
VLOOKUP, and can do left to right and right to left lookups. It is also faster than VLOOKUP in
spreadsheets that contain large amounts of data. The main disadvantage is that it is not as
straight forward to learn as VLOOKUP and slightly less popular.

Now let’s see how to do the same with the database DGET Function.

DGET function
1) For the DGET example, we still want to enter a player’s name and then find their rating,
however when using the DGET function we have to setup our worksheet a little bit differently. We
can use the DGET function to retrieve a single value based on input criteria. So, in this case our
input criteria is going to be Ian Roberts, and our field we want to retrieve the matching NTRP
Rating from, is NTRP rating.

2) We setup our criteria range in A2:E3 as shown, the field names in the criteria must match the
column names of the database range. We enter the value Ian Roberts in Cell B3 as shown below.

3) Now that we have setup our criteria range, in Cell I7 we type the following formula:

=DGET ($A$6: $E$106, “NTRP Rating”, $A$2: $E$3)


4) Upon pressing CTRL-ENTER, DGET retrieves the value of 4.0 which is the player Ian Roberts’s
NTRP rating.
The main advantage of using the DGET function is that can handle multiple criteria, and larger
data sets with ease. The main disadvantage however, is that it is not as widely utilized as
VLOOKUP and INDEX and MATCH, so other users of the spreadsheet would be unfamiliar with it.
Also, the setup required initially can prove counter-intuitive to some users, since it has a slight
SQL query feel to it.

Conclusion
Excel has many useful lookup functions, that can assist with retrieving values under specified
conditions.
Please feel free to comment and tell us which lookup function you use most often in your
spreadsheets.

Download working file


VLOOKUP-vs-INDEX-MATCH-vs-DGET.xlsx

Useful links:
The NTRP Tennis Ranking System explained

The VLOOKUP Function

The HLOOKUP Function

The INDEX Function

The MATCH Function

The DGET Function

Using INDEX and MATCH to do complex lookups

Get a PDF Version of This Article!

(Visited 1,734 time, 2 visit today)

18
SHARES

Read More...

Index Function Excel [Examples, Make Dynamic Range, INDEX MATCH]


VLOOKUP Function in Excel: Learn with Examples
Use of Offset Function in Excel [Offset – Match Combo, Dynamic Range]
Excel Dynamic Named Range [4 Ways]
Top Excel Functions and Features for Management Consultants

Taryn N
Taryn is a Microsoft Certified Professional, who has used Office Applications such as Excel and
Access extensively, in her interdisciplinary academic career and work experience. She has a
background in biochemistry, Geographical Information Systems (GIS) and biofuels. She enjoys
showcasing the functionality of Excel in various disciplines.

In her spare time when she’s not exploring Excel or Access, she is into graphic design, amateur
photography and caring for her two pets, Pretzel and Snoopy.
Shop Related Products

$149.00 $217.23

$53.95 (30)

$51.77 $59.95

(1)

$2.99
(2)

$30.59 $49.99

(12)

$35.08 $54.99

(50)

$33.98 $34.00

(8)

$3.24 $3.60

(217)
Ads by Amazon

NEXT STORY

How to Use the Database Functions in Excel

PREVIOUS STORY

How to Use the Excel DAYS Function with a Practical Example

YOU MAY ALSO LIKE...

The FVSCHEDULE Excel Function

APRIL 19, 2017

How to Use Solver in Excel [Explained with a Real Life Example]

FEBRUARY 15, 2017


4 RESPONSES

Comments 4 Pingbacks 0

khiari March 31, 2017 at 1:15 PM


Thank you very much, it’s interinsting

Reply

Taryn N March 31, 2017 at 9:56 PM

You are very welcome. Thank you for reading and doing Excel with us

Reply

Anna April 16, 2017 at 7:14 AM


This was well written and easy to understand. I must admit I was not familiar with DGET but I will try using
it. Thanks!

Reply

Taryn N April 16, 2017 at 9:37 PM

You are most welcome. I’m glad you found the tutorial useful and yes the database functions are v ery helpful when it comes to

looking up data with criteria

Reply

LEAVE A REPLY

Comment

Name *

Email *

Website
Solve the Math *

nine  ×  1  = 

Post Comment

FOLLOW:

LOGIN

Username

Password

Remember Me

Login →

Register
Lost Password

RECENT POSTS

ADVANCED EXCEL / FORMULAS / FUNCTIONS

How to Use the FORMULATEXT Function in Excel

ADVANCED EXCEL / TRAINING

40+ Free Online Excel Course with Certificates

ADVANCED EXCEL / CHARTS

How to Make a Single Line Graph in Excel – [The Easy Way]!

ADVANCED EXCEL
[8 Tips] How to Make Excel Tables Look Good!

POPULAR POSTS

Top 20 Advanced Essential Excel Skills You Need to Know

Learn Excel VBA Programming & Macros [Free Tutorials,…

102 Microsoft Excel Formulas & Functions Cheat Sheet…

How to Make a Frequency Distribution Table & Graph in…

How to Reference PivotTable Data in Excel Formulas with…

Excel 2013 Scenario Manager To Do Scenario Analysis

Conditional Formatting in Excel 2013 [Multiple, Based on…

ActiveX Controls Excel [Check box, Combo box, List box, Text

What is active cell in Excel

How to Make FOR LOOP in Excel Using Formulas?

CATEGORIES

Categories Select Category

ARCHIVES

Archives Select Month

ExcelDemy.com is a participant in the Amazon Services LLC Associates


Program, an affiliate advertising program. I earn a small commission if you buy any products using
my affiliate links to amazon.

To search type and hit enter

Submit
ExcelDemy.com © 2017. All Rights Reserved.

Powered by WordPress. Theme by Press Customizr.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy