How to automatically display names when entering code in Excel
When working with Excel name list tables, how many people in a table will be very much and what if you want to find that person's information? It is not feasible to search manually for each name. The method using Ctr + F key and entering the name of the employee who wants to find information is also chosen by many people. But this case only applies to tables that do not have the same name. So how to find the quick information of anyone in the name table on Excel?
In this case, we can combine the IF function and the Vlookup function. Then we will assign each person in the table a separate code. And when entering any code, the person's information will automatically appear. So managing employees, or students on Excel, will be much easier.
- How to combine Sumif and Vlookup functions in Excel
- How to use the SUMIF function in Excel
- How to use Vlookup function in Excel
How to automatically display names when entering code in Excel
We will work with student tables as shown below. The requirement is to have a student code in Table 2, entering the code in Table 1 will automatically show the student name with that code.
Step 1:
In the Name column in Table 1, we will enter the formula below and press Enter = IF (B4 = '' '', '' '', VLOOKUP (B4, $ F $ 4: $ G $ 7.2,0 )) .
Inside:
- B4 is the student code column in Table 1.
- F4 is the student code column in Table 2.
- G7 is the last name column in Table 2.
- $ Character to fix column or row in Excel table.
When pressing Enter, we will get the function symbol in the table as shown below.
Step 2:
Next, you highlight the Code and column columns. They are named in Table 2 for reference data for the formula. Then, place the mouse pointer in the formula entered in Table 1, and then drag it down to the lower cell to match the number of students to copy the Excel formula .
Thus, the formula for combining IF and Vlookup has been applied to all cells in the Last Name column in Table 1.
Step 3:
Now in Table 1, press the M1 code in the Code column and press Enter , immediately the student name associated with that code will be displayed in the Last name column in Table 1.
Finally, you just need to enter the code again, or drag the results to the remaining cells to complete the name table. Student codes and names will also be automatically displayed.
By combining such IF and VLupup functions, displaying information in Excel data tables is much faster and simpler. We also do not need to manually detect, or find again with the case of the same name. The student name will automatically be displayed according to the student code assigned.
See more:
- How to use AVERAGEIF function in Excel
- This is a simple way to find and delete Hyperlink in Excel
- How to use the LEN function in Excel
I wish you all success!
You should read it
- How to automate Vlookup with Excel VBA
- VLOOKUP function to use and specific examples
- How to use Lookup function in Excel
- How to combine Vlookup function with If function in Excel
- How to use Hlookup function on Excel
- LOOKUP function searches in Excel
- How to combine Vlookup function with Left function
- How to use the LOOKUP function in excel?
- Basic Excel functions that anyone must know
- Look up data in Excel tables: Replace VLOOKUP with INDEX and MATCH
- How to use the SUM function to calculate totals in Excel
- How to use the LEN function in Excel
Maybe you are interested
Should I buy a tablet with 4G LTE/5G connectivity or just WiFi?
How to adjust line spacing in Word tables very easily
10 Useful Table Formatting Tips in Microsoft Word
What's notable about Free Fire OB34 Summon?
How to update Windows offline using Portable Update
Quickly fix Unmountable Boot Volume error on Windows 10/11