How to combine Vlookup function with Left function
In Excel the concept of a combined or nested function is extremely familiar to those who frequently have to process data at a more advanced level, including the Vlookup function combining the Left function. When combining these two functions, the Left function will separate the values to get to the left, then the Vlookup function looks for information that you need to quickly and accurately. The following article will show you how to use Vlookup function with Left function in Excel.
- How to use Vlookup function in Excel
- How to combine Sumif and Vlookup functions in Excel
- Use VLOOKUP to join two Excel tables together
How to find the value using Vlookup function with Left function
Syntax Vlookup function
The function is used to find the value of a certain column.
Function syntax is = VLOOKUP (lookup_value, table_array, col_index_num, [range_lookup] .
Inside:
- Lookup_value: The value used to search.
- Table_array: Table of values to detect in the form of absolute address needs a $ sign in front.
- Col_index_num: The order of the column to retrieve data on the detector value table.
- Range_lookup: Search range, True or 1 (relative detection), Flase or 0 (absolute detection).
Note , with lookup_value press F4 3 times, for table_array value press F4 1 time.
Using F4 will help you a lot:
- F4 press 1 time: For absolute value, fix the column and fixed line.
- F4 presses twice: To have a relative column value and relative line, that is, the line fixation is not fixed.
- F4 press 3 times: To have relative and absolute column values, that is to fix the column but not to fix the line.
Left function syntax
Left function is used to cut the characters to the left of a character string.
Use function syntax = LEFT (text, n) .
Inside:
- Text is a string of characters you want to separate.
- N is the number of characters you want to separate from the left.
For example Vlookup function with Left function
We will do with the data table as shown below.
First of all, we will find out how to use the Left function and Vlookup function on Excel. You will use the Left function to get Sector Code from the Class column.
Step 1:
In the Code field cell B4 enter the formula = LEFT (A4.3) to get the 3 characters to the left of cell A4.
Step 2:
Press Enter and we will get the Sector Code character CN1 which is cut from the Class CN12 character string. The industry code in Table 1 is similar to Table 2. At the same time, we will see the character function fx in the cell inserted in the Left formula.
Step 3:
Drag the formula in cell B4 down to the remaining cells, the Left function formula will automatically be copied and the Code Sector result will be automatically filled.
Step 4:
Next to cell C4, enter the Vlookup function formula = VLOOKUP ($ B4, $ F $ 4: $ G $ 7.2,0). Inside:
- $ B4 is the value used to search in the Industry code column.
- $ F $ 4: $ G $ 7 is the search data area in Table 2 with the complete Industry Code name.
- 2 is the order in which the values needed in the data area here are the Sector column in Table 2.
- 0 is the absolute scope of search.
Step 5:
When pressing Enter, the user will get the industry name as Technology corresponding to the established Sector Code.
Step 6:
But doing so will take time, we will proceed to combine two functions, Vlookup and Left function together. In cell D4 enter the formula = VLOOKUP (LEFT (A4.3), $ F $ 4: $ G $ 7.2,0) and press Enter.
This means that we will change the value used to search for $ B4 to LEFT (A4.3).
Step 7:
When we press Enter we will also get the result that the Industry name here is Technology.
Finally, you just need to drag down below to complete the branch name is done.
In general, how to combine Vlookup function with Left function in Excel is very simple, you just need to add the Left function with the characters that you want to get from a character area, then localize the data to get the results in vertical rows. With such a combination, we only need to enter the formula once.
See more:
- How to use PRODUCT function in Excel
- Simple way to convert Excel files to PDF
- Function error in Microsoft Excel 2003
I wish you all success!
You should read it
- LOOKUP function searches in Excel
- The LEFT function, how to use the left-hand string cutting function in Excel
- LEFT function in Excel, how to use LEFT function and illustrative examples
- How to use the FIND function in Excel?
- How to use MID functions to get strings in Excel
- How to use Excel's VALUE function
- Do you know the structure and usage of the LEFT function in Excel?
- How to combine Vlookup function with If function in Excel
May be interested
- VLOOKUP function - Usage and detailed examplesvlookup is one of the most used excel functions. the following article details how to use and detailed examples when using the vlookup function.
- How to use Vlookup function between 2 sheets, 2 different Excel fileshow to use vlookup function between 2 sheets, 2 different excel files. normally the vlookup function applies on the same file in a certain workbook, but in some cases where the work is not so simple, the condition area and the area you need to access the data belong to belongs to two other sheets. together
- How to use the FIND function in Excel?the find function in excel is a function that finds characters in a text string, having the same purpose as string separators like the mid function in excel or the left function or the right function.
- LEFT function in SQL Serverthe left function in sql server allows you to extract a substring from a large string, starting from the leftmost character.
- How to automatically display names when entering code in Excel - Combine IF function and Vlookup functioninstead of entering the name and code in excel, users can combine the if function and vlookup function to automatically display the name when entering the code.
- LEFT function in Excel, how to use LEFT function and illustrative examplesleft function in excel, how to use left function and illustrative examples. left function in excel is a function of string processing function, you use left function when you need to cut the character string to the left of the text string. if you need to learn more about mid functions, be patient
- How to use the XLOOKUP function in Excel?excel's new xlookup function replaces vlookup, which provides a powerful replacement for one of excel's most popular functions. this article will guide you how to use this xlookup function.
- How to filter duplicate data on 2 Excel sheetsto filter duplicate data from 2 sheets in excel, you can use the vlookup function.
- How to combine Index and Match functions in Excelcombining the index and match functions in excel helps you find values accurately and quickly.
- How to fix VLOOKUP error in Excelvlookup error makes many microsoft excel users sweat every time they think of it. if you're not too familiar with excel, vlookup is one of the most difficult functions.