SlideShare una empresa de Scribd logo
1 de 2
Descargar para leer sin conexión
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

Más contenido relacionado

Más 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
 

Más 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
 

Último

Último (20)

Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
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
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
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...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
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
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
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
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
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
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 

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