The Wayback Machine - https://web.archive.org/web/20250401015041/https://www.geeksforgeeks.org/use-vlookup-in-excel-guide/
Open In App

Excel VLOOKUP Function – Excel Guide for Beginners

Last Updated: 24 Jan, 2025

K

Summarize
Comments
Improve
Suggest changes
Like Article
Like
Share
Report
News Follow

How to do Vlookup in Excel – Quick Steps

  • Prepare Your Data
  • Enter the VLOOKUP Formula >>Press Enter
  • Use a Cell Reference for Flexibility
  • Copy the Formula for Multiple Rows

The VLOOKUP function is one of the most widely used tools in Excel for looking up and retrieving data from a table. Whether you’re working with a single sheet or multiple workbooks, VLOOKUP allows you to search for a value in one column and return a related value from another. If you’re new to Excel or still getting the hang of formulas, this guide is for you. We will cover everything from the basics of how VLOOKUP works to practical examples that show how to search data across sheets, troubleshoot common issues, and master the VLOOKUP formula for any task.

Excel VLOOKUP Function

Excel VLOOKUP Function

What is the VLOOKUP Function in Excel

The term VLOOKUP stands for Vertical Lookup. It is designed to search for a specific value in the first column of a table (lookup column) and retrieve corresponding data from a different column in the same row.

Syntax of VLOOKUP Formula

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

Arguments:

1. lookup_value: The value you want to search for (e.g., a specific ID, name, or product code).

2. table_array: The range of cells that contains the data (the table you’re searching through).

3. col_index_num: The column number (from the table array) that contains the data you want to retrieve. The first column is 1, the second is 2, and so on.

4. [range_lookup] (optional): If TRUE (or omitted), it searches for an approximate match. If FALSE, it searches for an exact match.

  • TRUE indicates an approximate match, and it’s the default value if this argument is omitted.
  • FALSE indicates an exact match.

Note: If nothing is specified by the user, by default this value is set to be ‘True‘ and it searches for an approximate match. This argument is completely optional.

How VLOOKUP Works

VLOOKUP operates by scanning the first column of a table vertically until it finds a match for the lookup value. Once it finds this match, it returns a value from the same row, but from another column, which is specified by the user. This makes it particularly useful for pulling associated information, like retrieving a price from a product ID or a name from an employee ID.

How to Use Excel VLOOKUP Function with Example (For Beginners)

Managing inventory can be tough, especially when you need to quickly find product prices during sales. Instead of manually searching through long lists, Excel’s VLOOKUP function makes it easy. Simply input a product ID, and VLOOKUP retrieves the matching price or related details instantly, saving you time and reducing errors.

Step 1: Prepare Your Data

Make sure your data is arranged with the lookup column (the column you will search) as the first column of your table. For example, if you’re looking up product prices by ID, the IDs should be in the first column:

  • List all product IDs in the first column (A).
  • Product Name in second column (B).
  • Ensure the corresponding prices are in a column to the right of the IDs and Product Name, here we have mentioned that in column (C).
Excel VLOOKUP Function

Prepare your Data

Why Proper Organization Matters:

Having the lookup column as the first column ensures VLOOKUP works correctly. Incorrect table organization can lead to errors or incorrect results.

Step 2: Enter the VLOOKUP Formula

Select a cell where you want the price to appear when you type a product ID.

  • Select a Cell for the Result: Click in the cell where you want the VLOOKUP result to appear, here we have selected D2.
  • Start the Formula: Type =VLOOKUP( in cell D2.
Enter-the-VLOOKUP-Formula

Enter the VLOOKUP Formula

Step 3: Define the Lookup Value

Enter the value you want to search for in the formula:

  • Use a cell reference, like A2, or type a value directly in quotes, such as "001".
  • Example: If searching for a product ID in cell D2, start the formula as:
    =VLOOKUP(A2, or =VLOOKUP("001",
  • Add a comma after the lookup value to move to the next part of the formula.
Define-the-Lookup-Value

Define the Lookup Value

Step 4: Specify the Table Array

  • Select the data range where you want to search, e.g., A1:C4 (IDs in column A and Prices in column C).
  • Highlight the range by clicking and dragging.
  • Add a comma after selecting the table array.
Specify-the-Table-Array

Specify the Table Array

Step 5: Indicate the Column Index Number

  • Enter the column number from which you want to retrieve the data.
  • For example, if prices are in the third column (C), type 3 in the formula: =VLOOKUP(D2, A1:C4, 3,.
  • Add a comma after the column number.

Purpose of col_index_num: The col_index_num in a VLOOKUP formula specifies which column in the table_array to pull the data from, once a match is found for the lookup_value in the first column of that array.

Why Use 3?
In the range A1:C4:

  • Column A has Product IDs.
  • Column B has Product Names.
  • Column C has Prices.

The number 3 tells Excel to return data from the third column (Prices).

This instructs Excel to look within the range A1 to C4 and return the value from the third column of the range when it finds a match.

Indicate-the-Column-Index-Number

Indicate the Column Index Number

Step 6: Choose the Range Lookup Type

  • Decide if you need an exact match or an approximate match for your search.
  • For exact matches (e.g., finding the exact price for a product ID), type FALSE in the formula.
  • Add a closing parenthesis ) to complete the formula.

Purpose of range_lookup:

  • FALSE: Ensures VLOOKUP finds an exact match for the lookup value.
  • TRUE: Allows approximate matches, typically used when the data is sorted.

Why Use FALSE?

Using FALSE ensures VLOOKUP only returns a value if the exact Product ID exists in the first column (e.g., column A).

  • If no match is found, it shows #N/A, preventing incorrect results.
  • This is important for precise searches, like finding exact prices or IDs.

By setting the parameter to FALSE, your formula ensures accuracy and avoids errors caused by approximate matches.

This ensures that the exact Product ID entered in cell D2 is matched in column A, and the corresponding price from column C is returned. If no exact match is found, the function will display an #N/A error, indicating the ID is not in the list. This is safer than returning an incorrect or approximate price.

Choose-the-Range-Lookup-Type

Choose the Range Lookup Type

Step 7: Complete and Execute the Formula

  • Press Enter: Your complete formula in cell D2 should look like this:
=VLOOKUP(A2, A1:C4, 3, FALSE)
  • View the Result: After pressing Enter, cell D2 should display $1, which is the price of the product with ID 001.
Complete-and-Execute-the-Formula

Complete and Execute the Formula

How to VLOOKUP between two Excel Spreadsheets

Using the VLOOKUP function to connect data between two Excel sheets within the same workbook is a powerful way to improve efficiency and smooth your workflow. Here’s an easy step-by-step guide to help you use VLOOKUP across two sheets.

Example:

Imagine you have an Excel workbook with two sheets.

Sheet1 (“Employee Info“) contains a list of employee IDs and their names.

Employee ID Employee Name
101 John Doe
102 Jane Smith
103 Emily White

Sheet2 (“Contact Details“) contains a list of employee IDs and their corresponding email addresses.

Employee ID Email
101 john.doe@email.com
102 jane.smith@email.com
103 emily.white@email.com

Goal:

Use VLOOKUP to display employee email addresses in Sheet1 based on their IDs.

Step 1: Set Up VLOOKUP in Sheet1

Navigate to Sheet1 (“Employee Info”) and click on cell C2 (right next to the first Employee ID).

Set-Up-VLOOKUP-in-Sheet1

Set Up VLOOKUP in Sheet1

Step 2: Enter the VLOOKUP Formula

Type in the following formula in cell C2 of Sheet1:

=VLOOKUP(A2, Sheet2!A:B, 2, FALSE)

Here’s a simple explanation of each part of the formula:

  • A2: Refers to the cell in Sheet1 containing the Employee ID you want to look up.
  • Sheet2!A:B: Tells Excel to search in columns A to B of Sheet2. The “Sheet2!” notation indicates the data is on another sheet.
  • 2: Specifies that the result you want (the email address) is in the second column of the range in Sheet2.
  • FALSE: Ensures the formula returns an exact match for the Employee ID.
Enter-the-VLOOKUP-Formula-in-Sheet1

Enter the VLOOKUP Formula

Step 3: Apply and Copy the Formula

  • Press Enter: After typing the formula in cell C2, press Enter. The result, “john.doe@email.com” will appear for Employee ID 101.
  • Copy the Formula: Click on cell C2.
  • Drag the Fill Handle: Use the small square at the bottom-right corner of the cell. Drag it down to copy the formula to the other cells in Column C.
  • Auto-Adjust: Excel will automatically adjust the formula for each row, showing the corresponding email addresses for the other Employee IDs (C3, C4, etc.).
Execute-and-Extend-the-Formula

Execute and Extend the Formula

Step 4: Verify the Results

Check that the correct email addresses appear next to the corresponding employee names in Sheet1. The complete “Employee Info” table should now look like this:

Troubleshooting

  • If you get an #N/A error, check to ensure that the Employee IDs match exactly between Sheet1 and Sheet2. Verify that there are no extra spaces or different formats (e.g., numbers stored as text).
  • Ensure that the VLOOKUP range includes all rows in Sheet2 if new data is added later.

How to VLOOKUP between two Workbooks

VLOOKUP is a powerful tool that can pull data from one workbook to another, making it easy to consolidate and analyze information stored in separate files. Here’s a step-by-step guide on how to use VLOOKUP across two Excel workbooks.

Example:

Suppose you’re working with sales data and you have two Excel workbooks:

Workbook1 (“Sales Data.xlsx“) contains sales transaction details including Transaction IDs and the amounts.

image

Prepare your Data in Sheet1

Workbook2 (“Employee Sales.xlsx“) contains Transaction IDs and the corresponding employee names who made the sales.

image

Prepare your Data in Sheet2

Goal

You want to add a third column to the “Sales Data.xlsx” workbook that displays each employee’s name associated with the transactions by linking the data using the Transaction ID.

Step 1: Open Both Workbooks

  • Open “Sales Data.xlsx” (Workbook1) and “Employee Sales.xlsx” (Workbook2) simultaneously.
  • This ensures Excel can reference the second workbook while creating the VLOOKUP formula.

Step 2: Set Up VLOOKUP in Workbook1

  • Go to Workbook1 (“Sales Data.xlsx”).
  • Select cell C2 (next to the first Transaction ID).
Set-Up-VLOOKUP-in-Workbook1

Set Up VLOOKUP in Workbook1

Step 3: Enter the VLOOKUP Formula

Type in the following formula in cell C2 of “Sales Data.xlsx“:

=VLOOKUP(A2, '[Employee Sales.xlsx]Sheet1'!$A$1:$B$3, 2, FALSE)

Here’s what each part of the formula does:

  • A2: The cell contains the first Transaction ID in “Sales Data.xlsx” that you are using as the lookup value.
  • ‘[Employee Sales.xlsx]Sheet1’!$A$1:$B$3: Specifies the range in “Employee Sales.xlsx” where the VLOOKUP should search for the Transaction ID. Ensure that the range includes all necessary rows and columns, and it’s important to use absolute references (with $) so the range does not shift when the formula is copied.
  • 2: Indicates that the value you want to return (the employee name) is in the second column of the specified range.
  • FALSE: Specifies that you need an exact match for the Transaction ID.
Enter-the-VLOOKUP-Formula-in-Sales-Data-Workbook

Enter the VLOOKUP Formula in Sales Data Workbook

Step 4: Execute and Extend the Formula

Press Enter to execute the formula in cell C2. If correctly entered, cell C2 will now display “John Doe“, corresponding to Transaction ID T001.

To apply the same formula to the other transactions:

  • Click on cell C2.
  • Drag the fill handle down through the column to fill the rest of the cells in Column C with the VLOOKUP formula, adjusting it for the subsequent rows (C3, C4, etc.).
Execute-and-Extend-the-Formula

Execute and Extend the Formula

Step 5: Verify the Results

Check that the correct employee names appear next to the corresponding transaction IDs in “Sales Data.xlsx“. The complete table should look like this:

Troubleshooting

  • If you get an #N/A error, ensure that the Transaction IDs match exactly between the two workbooks. Also, verify that both workbooks are open while using VLOOKUP.
  • If Workbook2 is closed, Excel may not be able to retrieve the data. In some cases, Excel can store and display the cached result, but it’s best to have both files open during setup.

Common Troubleshooting Tips for VLOOKUP Function in Excel

Sometimes you may find that VLOOKUP not working, so in the below examples, you can find why your VLOOKUP Function not working and how to fix the error.

1. Handling #N/A Errors

  • Issue: The #N/A error is commonly returned when VLOOKUP cannot find a match.
  • Fix: Ensure that the lookup_value actually exists in the first column of your table_array. Double-check for any typing errors or mismatched data types (e.g., numbers stored as text).

2. Correcting #VALUE! Errors

  • Issue: This error typically appears if the col_index_num is less than 1 or greater than the number of columns in the table_array.
  • Fix: Make sure the col_index_num accurately reflects the column from which you want to retrieve the data, counting only within the confines of your defined table_array.

3. Resolving #REF! Errors

  • Issue: A #REF! error occurs when the col_index_num points to a column outside the range of the table_array.
  • Fix: Adjust your table_array to include enough columns or correct the col_index_num to reference a column within the existing array.

4. Troubleshooting Inaccurate Results

  • Issue: Sometimes VLOOKUP might return a correct format result, but the data itself is inaccurate or not what was expected.
  • Fix: This can happen if the range_lookup argument is set to TRUE, leading to approximate matches. Set the range_lookup to FALSE for exact matches. Also, ensure the table data is sorted correctly if using TRUE for approximate matching.

5. Issues with Text Formatting

  • Issue: VLOOKUP is case-insensitive but does consider formatting. Numbers formatted as text or vice versa can cause issues.
  • Fix: Ensure that data in the lookup column and the lookup value have consistent formatting. Use Excel’s ‘Text to Columns’ or ‘Format Cells’ features to correct formatting discrepancies.

6. Problems from Merged Cells

  • Issue: Merged cells in the lookup column can disrupt VLOOKUP’s ability to correctly identify and return results.
  • Fix: Avoid using merged cells in the lookup column of your table_array. If merging is necessary for visual purposes, try only merging cells in columns that are not part of the table_array.

7. Performance Issues in Large Sheets

  • Issue: In very large datasets, VLOOKUP can slow down Excel’s performance, especially if used multiple times or on large arrays.
  • Fix: Consider using Excel’s INDEX and MATCH functions as an alternative, which can be more efficient in handling large datasets. Additionally, optimizing the table_array to include only the necessary rows and columns can improve performance.

Version Compatibility

  • Excel 2000 to Office 365: VLOOKUP works consistently across these versions without significant changes.
  • Pre-2000 Versions: VLOOKUP is available but check specific documentation for interface differences.

Device Compatibility

Windows and Mac:

  • VLOOKUP operates identically in Excel for both Windows and Mac. There are no functional differences, though some shortcuts and interface elements may vary.

Mobile Devices (iOS and Android):

  • VLOOKUP is available in Excel mobile apps but can be difficult to use due to smaller screens and simplified interfaces.

Chromebooks:

  • Excel Online: Supports VLOOKUP just like the desktop versions, accessible via a web browser.
  • Android App: Available on compatible Chromebooks, works the same as on other mobile platforms but with the typical constraints of mobile devices.

Conclusion

The VLOOKUP function is a valuable tool that can save you time and effort when working with large datasets in Excel. From looking up information within a single sheet to comparing data across multiple workbooks, VLOOKUP simplifies the process of finding and organizing key data. With the examples and tips shared in this guide, you now have the knowledge to use VLOOKUP confidently in your Excel projects. Whether you’re a beginner or looking to refine your skills, VLOOKUP can be a game-changer for anyone working with spreadsheets.

How to use VLOOKUP in Excel – FAQs

What is the exact function of VLOOKUP?

The VLOOKUP function searches for a value in the first column of a table and returns a value from another column in the same row.

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

How do I enter a VLOOKUP formula in Excel?

  • Click the cell where you want the result to appear.
  • Type =VLOOKUP( to begin the formula.
  • Type the value you want to search for, or reference the cell containing it (e.g., A2).
  • Enter the range of cells where the data is located (e.g., B2:F100).
  • Type the column number from the table range that contains the data you want to retrieve (e.g., 4 for the fourth column).
  • Enter FALSE for an exact match or TRUE for an approximate match.
  • Finish the formula by typing ).
  • Hit Enter to apply the formula and see the result.

How do I use VLOOKUP to match data from another sheet?

To use VLOOKUP with data from another sheet, include the sheet name and an exclamation mark before the range. For example:

=VLOOKUP(A2, Sheet2!A1:B100, 2, FALSE)

This searches for the value in A2 within the range A1:B100 on Sheet2 and returns data from the second column with an exact match.

How do I use VLOOKUP to find values in Excel?

To use VLOOKUP in Excel, type =VLOOKUP(, then enter:

  • The value to search for.
  • The data range.
  • The column number to return a value from.
  • TRUE (approximate match) or FALSE (exact match).

Press Enter to see the result. Ensure the lookup value is in the first column of the range.

How to do VLOOKUP between two sheets?

To perform a VLOOKUP between two sheets, you need to include the sheet name in the table array part of your VLOOKUP formula. If you’re on Sheet1 and want to fetch data from Sheet2, your formula might look like this: =VLOOKUP(A2, Sheet2!A$1:B$100, 2, FALSE). This formula states that Excel should look for the value from A2 of Sheet1 in the range A$1:B$100 of Sheet2 and return the value from the second column of that range, ensuring an exact match.

How to match two columns in Excel?

To match two columns in Excel, use VLOOKUP. For example:

=VLOOKUP(A2, C$1:C$100, 1, FALSE)

This checks if the value in A2 exists in column C and returns the match if found. Ensure the lookup column is to the left of the data column

How to use lookup formula in Excel?

The =LOOKUP() formula in Excel finds a value in a row, column, or array. You provide the value to search for and the range to search in.

Example:

=LOOKUP(A2, A1:B100)

This searches for the value in A2 within the range A1:B100.

For more control, use VLOOKUP or HLOOKUP to specify the direction and data to retrieve.

How to use VLOOKUP in Google Sheets?

Using VLOOKUP in Google Sheets is simple:

  • Type =VLOOKUP(.
  • Enter the value to look up, the data range (same or another sheet), the column number for the result, and FALSE for an exact match.
  • For example:
  • =VLOOKUP(A2, ‘Other Sheet’!A$1:B$100, 2, FALSE)
  • This searches for the value in A2 in the range A1:B100 on the sheet ‘Other Sheet’ and returns data from the second column with an exact match.


K

News
Improve
Discuss
Do you want to advertise with us?Click here to know more

Excel VLOOKUP Function - Excel Guide for Beginners

article_img
How to do Vlookup in Excel - Quick StepsPrepare Your DataEnter the VLOOKUP Formula >>Press EnterUse a Cell Reference for Flexibility Copy the Formula for Multiple RowsThe VLOOKUP function is one of the most widely used tools in Excel for looking up and retrieving data from a table. Whether you’re working with a single sheet or multiple workbooks, VLOOKUP allows you to search for a value in one column and return a related value from another. If you're new to Excel or still getting the hang of formulas, this guide is for you. We will cover everything from the basics of how VLOOKUP works to practical examples that show how to search data across sheets, troubleshoot common issues, and master the VLOOKUP formula for any task.Excel VLOOKUP FunctionWhat is the VLOOKUP Function in ExcelThe term VLOOKUP stands for Vertical Lookup. It is designed to search for a specific value in the first column of a table (lookup column) and retrieve corresponding data from a different column in the same row.Syntax of VLOOKUP FormulaVLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])Arguments:1. lookup_value: The value you want to search for (e.g., a specific ID, name, or product code).
Read More

Using CHOOSE Function along with VLOOKUP in Excel

article_img
In Excel, managing space is a very important point to consider. Now, let's suppose you are in a situation where you want to compare multiple columns in the Excel dataset, and you want to derive results, This is not possible using the VLOOKUP function alone. So, to make a function capable of doing something like this, we will introduce a special function known as CHOOSE function. But, if you don't want to use CHOOSE function, then you have to use a helper column, making the job a little hectic. So, in this article, we will see how to use VLOOKUP along with CHOOSE function. First, we will see the syntax of CHOOSE FUNCTION in brief. CHOOSE FUNCTION: Syntax: =CHOOSE(ARRAY DIMENSIONS(INDEX VALUE(S)),VALUE(1),VALUE(2),VALUE(3),.....) Here, Here we will define array dimensions, ie how many columns should the array have.The next parameter(s) will define what value will go in the subsequent array columns, ie VALUE1 will get filled in the first column, and so on. Example: Here we will use this dataset. Let's suppose we have people in a sales firm, and they are evaluated for bonuses. Now, we want to know who did sales for BED SHEETS, by using VLOOKUP and CHOOSE function. So, first of all,
Read More

Excel VLOOKUP with Dynamic Column Reference

article_img
Suppose anytime you work with colossal tables of data and you want to implant a VLOOKUP function that dynamically updates to the accompanying portion as you copy it across. In that case, the VLOOKUP with the COLUMNS capacity is what you truly care about. That is; the col_index_num a piece of the VLOOKUP capacity intensely revives as you copy it across your worksheet. Before learning VLOOKUP with Dynamic Column Reference, let's first learn what is VLOOKUP function, VLOOKUP VLOOKUP is utilized when one necessities to track down the worth of a cell/data of that cell that is available elsewhere (can likewise be available in another sheet). The following is the capability of VLOOKUP, =VLOOKUP(lookup_value,table_array,col_index_num,[range_lookup]) Example: Okay, we ought to imagine this summary is hundreds or even a considerable number of sections long and we really want to find a quick strategy for getting expenses and maker information on demand (other than CTRL+F for Find clearly). In the table underneath we have the Book Title, Author, and Price. The book title is found utilizing a Data Validation List or Drop Down List, and in sections C and D we want a VLOOKUP equation that finds t
Read More

How to Return Multiple Matching Rows and Columns Using VLOOKUP in Excel?

article_img
VLOOKUP function is a premade (already made by Ms-Excel) function in Excel by which we can search for any information in a given spreadsheet. We can use the VLOOKUP function in two ways, first is VLOOKUP with an exact match and VLOOKUP with an approximate match. VLOOKUP with exact match means that kind of data from which we can able to find same to same i.e; exact value from the given table. But VLOOKUP with the approximate match is something in which we can not able to find exact value from data But we can find approximate value, for eg., when we are finding the grade of students for their results then that grade comes from approximation means that grade lies between some value i.e; marks 50 - 60 lies under Grade B and if some student got 55 marks then they lie under grade B for that particular subject, So, here approximation occurs, which lies in VLOOKUP with an approximate match. Whenever we use any formula in excel the syntax is =FormulaName and by default, formulas are always in uppercase only, although we can write in lowercase also, for eg. =VLOOKUP(). Returning Multiple Matching Rows and Columns Using VLOOKUP VLOOKUP function has four parameters VLOOKUP(lookup_value, table
Read More

E

How to VLOOKUP to Return Multiple Values in One Cell in Excel?

article_img
Almost everyone works with lots of data ranging from medium to high volume datasets, and extracting information from such a sheet can become easier, with little to advanced knowledge of excel. Excel is widely used to perform simple to complex data analysis. It is a great tool for generating meaningful & insightful reports for quick decision-making. So, out of hundreds of functions available in Excel, the chosen one for today's article is the most common & popular "VLOOKUP". VLookup Fetching the relevant value from a table or a range by row is made possible with VLOOKUP. For the benefit of all, let's quickly describe VLOOKUP with the syntax given below. It returns one value from the first match in the same row. = VLOOKUP(lookup_value,table_array,col_index_num,range_lookup) VLOOKUP SyntaxVLOOKUP to Return Multiple Values in One Cell in Excel Below given screenshot shows that VLOOKUP returns only one value but, there are multiple entries for the same person. The goal here is to return all the items sold by one person in one cell. There are various options however, let's look at 2 methods to achieve the goal: Method 1: Using "VLOOKUP" with some workaround and a few more
Read More

How to VLOOKUP to Return Blank or Specific Value Instead of 0 or N/A in Excel?

Excel is widely used for data management, and practically everyone utilizes it these days. At the same time, it is extremely user-friendly. Excel offers a number of functions and formulae that may make boring tasks much easier. VLOOKUP() is another extremely helpful method that is commonly used to 'look up' any data from a large table or a range by row. It allows for approximate or precise matching dependent on whether one of its arguments is 'True' or 'False'. In general, the VLOOKUP() method is used to retrieve data from a table, list, or range. It primarily offers two features: approximate match and exact match.  In this article, we will see how to Return a Blank or a Specific value instead of 0 or N/A in Excel. There are several ways to achieve that. All are discussed below. Method 1: Using IF and VLOOKUP togetherReturning Blank in Place of 0: Using the IF and VLOOKUP together we can return a Specific Value or Return Blank.Dataset used in this Tutorial Syntax of IF function in Excel -  = IF (CONDITION, [VALUE_IF_CONDITION_TRUE], [VALUE_IF_CONDITION_FALSE]) Explanation:  CONDITION - Conditions that yields either True (1) or False (0) values. For example - say we want to check if
Read More

How to Find Duplicate Values in Excel Using VLOOKUP?

article_img
In this article, we will look into how we can use the VLOOKUP to find duplicate values in Excel. To do so follow the below steps: Let's make two columns of different section to check VLOOKUP formula on columns:Created Two Columns Here is the formula we are going to use:=VLOOKUP(List1,List2,TRUE,FALSE)In this formula, the List-1 names will be searched in List-2. If there exists any duplicate name, the formula will return the name from List-1. Let`s look closely at our example for better clarification.In C2 we will write this formula =VLOOKUP(A2:A10,B2:B10,TRUE,FALSE) and then press enter. Now, we will see this result:Here Himesh is duplicate value Here the Himesh is found because the VLOOKUP function searches this name from Section A to Section B. When the same name is found it will output the result from Section A.Now drag the list and see all values.Here we drag the formulated Cells The #N/A results are found because, in those particular cells, the names from column A are not found in column B.In the Result column, you’re seeing a total of 2 duplicate values ( Himesh, Pragya). #N/A values are representing the unique values of column Section A.Using VLOOKUP to find duplicate valu
Read More

I

How to Apply Conditional Formatting Based On VLookup in Excel?

VLOOKUP is an Excel function to lookup data in a table organized vertically. VLOOKUP supports approximate and exact matching, and wildcards (* ?) for partial matches. Conditional Formatting Based on Vlookup: 1. Using the Vlookup formula to compare values in 2 different tables and highlighting those values which is only present in table 1 using conditional formatting. We have a Table containing old products of any grocery shop in 'Old Product' sheet and an updated table having new products in worksheet 'New'. We want to highlight rows in New table containing those items which are not in Old Product Table. Old Product Select the data from New table except the Headers. (The table in which we want to highlight rows.)Go to Home->Conditional Formatting->New Rule. In the dialog box appeared, Select the rule type - "Use a formula to determine which cells to format;";Under Edit the rule description enters the following formula: =ISNA(VLOOKUP($A2,'Old Product'!$A$1:$B$8,1,FALSE))Then click Format. Formula explanation: Inside VLOOKUP, 1st parameter is $A2 which is first name in New table.2nd parameter is Old Product Table.3rd parameter is column we want to compare which is 1 as we wan
Read More

Different Ways to Perform a Case-Sensitive Vlookup in Excel

article_img
In Excel datasets, sometimes you must have noticed, that there are many values in a table that are case-sensitive in nature. And if we want a particular type of value from our dataset, but unfortunately that value also has some duplicates, but with different case sensitivity, so here we need to search on the basis of case sensitivity. To make conditions worse, you only know one method to perform the search functions,i.e none other than VLOOKUP, and in nature, it is case-insensitive nature. What will you do? The only option to perform VLOOKUP in case of insensitivity is to optimize it using different methods. But first, let us see how VLOOKUP is case-insensitive, by using an example: Now, let's suppose we have this dataset of a company, and what we want, is how much "KaTy" has earned, and we only know the VLOOKUP function to perform it. So, applying VLOOKUP straightforward to find "KaTy" is not possible. Nonetheless, the output of applying VLOOKUP is going to be VLOOKUP will look for approximation, rather than going for an exact match.VLOOKUP will look for the first encountered value and will return it. This is a problem, as first, we want an exact match to the keyword provided, and
Read More

VLOOKUP On Multiple Criteria Columns Using Helper Method & CHOOSE Function

article_img
In this article, we will see how we can combine multiple values, and use them as lookup criteria for searching specific value(s) in the excel dataset. For this purpose, we will use the VLOOKUP formula, the most basic formula to perform a lookup for value(s) on excel. We will see a modified form of VLOOKUP to perform a lookup using multiple values. First, let us see a general formula: Formula: =VLOOKUP(v1&v2,dataset_part,column,0) Here, Here v1 and v2 signify those two cells, which will be used for lookup in combination.The Dataset_part signify the starting cell value and the ending cell value, upon which lookup is to be performed. This can consist of the whole dataset as well.The column signifies from which column the value has to be picked up.Here 0 signifies the approximation of lookup in vlookup. It can be set to 1 to enable approximation. Now, let us see in brief, or a summary, how VLOOKUP will work in the Multiple Criteria Column. Here, we have 2 ways of modifying VLOOKUP to make it capable of doing a lookup on multiple criteria, they are: Helper Column.CHOOSE function. Helper column will be a sort of redundant work, as we have to provide merged values of those columns on
Read More
three90RightbarBannerImg