How to automatically display names when entering code in Excel - Combine IF function and Vlookup function
When working with a list of names in Excel, the number of people in a table will certainly be many and what should you do if you want to find that person's information? Manually searching for each name is not feasible. The method of using the 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 quickly find anyone's information in Excel's nameplate?
In this case, we can combine the IF function and the Vlookup function. We will then assign each person in the table a separate code. And when entering any code, that person's information will automatically appear. So managing employees or students on Excel will be much easier.
How to automatically display names when entering code in Excel
We will work with the student table as below. The requirement is to have a student code in Table 2. Entering the code in Table 1 will automatically display the student's name with that code.
Step 1:
In the Full Name column in Table 1, we will enter the formula as below and press Enter =IF(B4='''','''',VLOOKUP(B4,$F$4:$G$7,2,0 )) .
In there:
- B4 is the student code column in Table No. 1.
- F4 is the student code column in Table No. 2.
- G7 is the Full Name column in Table 2.
- The $ character fixes columns or rows in an Excel table.
After pressing Enter, we will see the function symbol in the table as shown below.
Step 2:
Next, highlight the Code column and Full name column in Table 2 as reference data for the formula. Then, place the mouse pointer in the cell where the formula was entered in Table 1, then drag down to the cell below the correct number of students to copy the Excel formula .
Thus, the formula combining IF with Vlookup has been applied to all cells in the Full Name column in Table 1.
Step 3:
Now in Table 1, you enter code M1 in the Code column and press Enter , immediately the student name associated with that code will be displayed in the Full Name column in Table 1.
Finally, you just need to enter that code, or drag the results down to the remaining cells to complete the nameplate. Student ID and name will also automatically display.
By combining the IF function and Vlookup function like this, displaying information in Excel data tables will be much faster and simpler. We also do not need to search manually, or search again in case of the same name. Student names will automatically be displayed according to the assigned student code.
Wishing you success!
You should read it
- How to automatically display names when entering code in Excel
- Good fb names, sum up the best fb names
- Fix names in contacts not showing on iOS
- Facebook name or best Facebook name combination
- The interesting mystery behind how to put code names and numbers of famous Linux distributions, you know?
- How to find names in Excel
- How to arrange names in alphabetical order in Word
- 1000 beautiful girls names for you to choose for your little princess
- Code Snippet in VS 2005
- How to fix iPhone not showing names in contacts
- Nokia is about to launch 5 new products
- How to Unlock SIM card without PUK code
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