SlideShare une entreprise Scribd logo
1  sur  2
Télécharger pour lire hors ligne
20 Excel Functions to Know and Use Before you Die…

                                        The VLOOKUP Function

Continuing our series of ‘20 Functions to Know and Use before You Die’, this time it’s the turn of the
VLOOKUP function.

This is a must have in your functions arsenal. Like the IF statement this is one of the most commonly
used ‘advanced’ functions and one of the more practical ones.

The basic structure of the VLOOKUP function is;

                 1            2              3              4




Which in plain English translates as;

    1. What are you basing your search on?

    2. Where are you going to look it up?

    3. Which column do you want to extract information from? (This must be a number)

    4. Do you want an exact match (FALSE) or near match (TRUE).

Let’s say we have a table of employees and against each employee we have a department name.
However we don’t have the name of their manager, which is in another table. This is where
VLOOKUP is very useful.




First of all identify what it is we are trying to find. In this case we want to look up the manager’s
name based on the department
name. .

Then we need to tell excel which
table we want it to search in.

Generally we would include the
whole table but the important rule
is:

Written by Richard Harker – Business Systems Training Consultant
The text or value you are basing your search on MUST be in the left hand column of your look-up
table.

Our formula then in this case would be;

=VLOOKUP(C2,$H$2:$J$7,2,FALSE)

Note that we are cross-referencing with column 2 in the formula even though the information is in
column I, because column I is the second column in our selected data range.

Excel will automatically look in the left hand column of the selected look up range (this can be in the
same workbook or a completely different one). Unfortunately, you cannot tell it to look anywhere
else when using VLOOKUP. Notice in the example above, I am ignoring the DeptCode column and
starting my selection from column H where the department names are listed. If you don’t do this…it
simply will not work because it will never find ‘Finance’ in column G.

In the event that there is no matching information returned from the VLOOKUP, you will get an
#N/A error message appear in the cell.

So far, we have searched for information based on an exact match which probably is the most likely
way you will be using this function, but what if you want a near match? You’d think that simply
typing in TRUE would do it, but you need to do one thing before finding near matches – sort your
look up data in ascending order.

Depending on the version of Excel you have, you may get different results but this will guarantee
that you get the correct result. If Excel cannot find an exact match, it will search for a value higher
than the one you are looking for and then will select the previous cell and return that as the nearest
match.

All of the above techniques will of course apply to HLOOKUP, where instead of searching down
columns it will search along rows although the most likely scenario is that you will be using VLOOKUP
as most data is set up in vertical lists/tables rather than horizontal ones.

Once you have mastered VLOOKUP, cross matching data across worksheets and even workbooks will
become a breeze and will save you a lot a manual data entry which you are probably doing at the
moment if you are not yet using the ‘must know’ VLOOKUP.



Next time in this series……a bunch of statistical functions.




Written by Richard Harker – Business Systems Training Consultant

Contenu connexe

Plus de Thales Training & Consultancy

If only there was an easier way….of creating a series
If only there was an easier way….of creating a seriesIf only there was an easier way….of creating a series
If only there was an easier way….of creating a series
Thales Training & Consultancy
 

Plus de Thales Training & Consultancy (12)

If only there was an easier way….of creating a series
If only there was an easier way….of creating a seriesIf only there was an easier way….of creating a series
If only there was an easier way….of creating a series
 
Top Tips to Online Learning
Top Tips to Online LearningTop Tips to Online Learning
Top Tips to Online Learning
 
Project Cost and Schedule Control
Project Cost and Schedule ControlProject Cost and Schedule Control
Project Cost and Schedule Control
 
Guide to PRINCE2®
Guide to PRINCE2® Guide to PRINCE2®
Guide to PRINCE2®
 
On course-spring-2011
On course-spring-2011On course-spring-2011
On course-spring-2011
 
Employee Engagement Presentation
Employee Engagement PresentationEmployee Engagement Presentation
Employee Engagement Presentation
 
What is an it course?
What is an it course? What is an it course?
What is an it course?
 
Learning and Skills 2011
Learning and Skills 2011Learning and Skills 2011
Learning and Skills 2011
 
Tips Time Management Presentation
Tips Time Management PresentationTips Time Management Presentation
Tips Time Management Presentation
 
Tips managing projects presentation
Tips managing projects presentationTips managing projects presentation
Tips managing projects presentation
 
Tips communication skills presentation
Tips communication skills presentationTips communication skills presentation
Tips communication skills presentation
 
Assertiveness presentation
Assertiveness presentationAssertiveness presentation
Assertiveness presentation
 

Dernier

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Dernier (20)

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 

20 Excel Functions to Know and Use Before you Die…The VLOOKUP Function

  • 1. 20 Excel Functions to Know and Use Before you Die… The VLOOKUP Function Continuing our series of ‘20 Functions to Know and Use before You Die’, this time it’s the turn of the VLOOKUP function. This is a must have in your functions arsenal. Like the IF statement this is one of the most commonly used ‘advanced’ functions and one of the more practical ones. The basic structure of the VLOOKUP function is; 1 2 3 4 Which in plain English translates as; 1. What are you basing your search on? 2. Where are you going to look it up? 3. Which column do you want to extract information from? (This must be a number) 4. Do you want an exact match (FALSE) or near match (TRUE). Let’s say we have a table of employees and against each employee we have a department name. However we don’t have the name of their manager, which is in another table. This is where VLOOKUP is very useful. First of all identify what it is we are trying to find. In this case we want to look up the manager’s name based on the department name. . Then we need to tell excel which table we want it to search in. Generally we would include the whole table but the important rule is: Written by Richard Harker – Business Systems Training Consultant
  • 2. The text or value you are basing your search on MUST be in the left hand column of your look-up table. Our formula then in this case would be; =VLOOKUP(C2,$H$2:$J$7,2,FALSE) Note that we are cross-referencing with column 2 in the formula even though the information is in column I, because column I is the second column in our selected data range. Excel will automatically look in the left hand column of the selected look up range (this can be in the same workbook or a completely different one). Unfortunately, you cannot tell it to look anywhere else when using VLOOKUP. Notice in the example above, I am ignoring the DeptCode column and starting my selection from column H where the department names are listed. If you don’t do this…it simply will not work because it will never find ‘Finance’ in column G. In the event that there is no matching information returned from the VLOOKUP, you will get an #N/A error message appear in the cell. So far, we have searched for information based on an exact match which probably is the most likely way you will be using this function, but what if you want a near match? You’d think that simply typing in TRUE would do it, but you need to do one thing before finding near matches – sort your look up data in ascending order. Depending on the version of Excel you have, you may get different results but this will guarantee that you get the correct result. If Excel cannot find an exact match, it will search for a value higher than the one you are looking for and then will select the previous cell and return that as the nearest match. All of the above techniques will of course apply to HLOOKUP, where instead of searching down columns it will search along rows although the most likely scenario is that you will be using VLOOKUP as most data is set up in vertical lists/tables rather than horizontal ones. Once you have mastered VLOOKUP, cross matching data across worksheets and even workbooks will become a breeze and will save you a lot a manual data entry which you are probably doing at the moment if you are not yet using the ‘must know’ VLOOKUP. Next time in this series……a bunch of statistical functions. Written by Richard Harker – Business Systems Training Consultant