Advanced Excel-VLOOKUP function is used

    I believe we are not unfamiliar Excel, which has a large number of built-in functions for the user to call for help users deal with some complex and cumbersome problem, very powerful.

Since yesterday when I use Excel deeply felt the power of technology, it can not help but want to use the experience of Excel yesterday to others.

    The situation is this: Maogai teacher asked me to give classmates to group, to facilitate later on the usual statistical results. In order to consider everyone's feelings, I will let everyone decide for themselves what and in groups, the statistics reported to me a good decision.

    Therefore, I have encountered a more complicated matter: after a student reported to me every name, I need to go to his roster to find school number corresponding list and copy it to the back of the packet in the corresponding name.

    This cumbersome steps a discovery, I think I can help with Excel to automatically populated student number.

A search online, and she has a lot of functions, screened, I find VLOOKUP function best suited to my needs.

    First introduce VLOOKUP function:

    Structure function is:

= VLOOKUP ( lookup value , lookup zone , referenced columns , whether the exact search )

    With '(' and ')'  enclosed content with ','  separated into four regions, four regions have a professional name is called  "parameters" , we pass different arguments to a function can be achieved in different Effect.

And we learn how to use a function that is learning how to fill parameters.

    Of course, this is what I would translate official documents into the tips I understand, perhaps still not well understood.

It does not matter, the case:

    Here, you can see 'Group .xlsx' and  'list .xlsx' in the same folder in;

We open the 'Group .xlsx' to look at:

    Members of that column, is the student's name, school student number that column is to be filled by the VLOOKUP function, the following formula is in school number that column cell to enter:

=IF(C5="","",VLOOKUP(C5,'D:\Users\白茅纯束\Desktop\123\[名单.xlsx]Sheet1'!$A$2:$B$46,2,FALSE))

    Among them, the outermost layer of the IF function used to determine the name of that column is empty. This means that if the index can not be empty if there name out there on the implementation of the index. The benefit of this is to avoid the index value is null and error, something that should not appear appear.

    The next layer is the VLOOKUP function, we have to go into the details:

    The first parameter is C5, because the cell C5 is the first names of the members are located, that is to say in this unit D5 Gerry we have to refer to it left a cell C5 in the index data.

    The second parameter is an address, because in another list called the 'list .xlsx'  files, we want to fill in the correct lookup zone must fill in the path of the file.

Where: D: \ Users \ Imperata pure beam \ Desktop \ 123 \ represents the directory files are located, [list .xlsx] represents a file name, Sheet1 represent the workbook name of the file, $ A $ 2:! $ B $ 46 expressed in this data area referenced in a workbook.

    

    Someone will ask, why in front of A2 to add a $ sign it? This is because it is impossible to learn every student's number field to enter such a long string of formulas, so might as well go directly to learn the simple number after us. We must use to fill feature. Filled during all relative references (no reference character plus $ address) will be replaced by the corresponding address. For example, in the A2 parameter at the time of filling down a grid will become A3; This leads us quote data area changes, which may result in an error. So in order to avoid this, we need to add a $ symbol in front of a relative reference address (of course you can also use the shortcut key F4 in the case of selected text), it becomes an absolute reference.

    The third parameter is used to determine the column you want to get that data resides. For example, in the following below this figure, the student number is the data we need, then the student number in the first column in a few areas of our references in it? In the second column.

    So here we are in the third parameter fill in the number 2 on it.

    Next is the fourth parameter, the fourth parameter is used to tell Excel that you are precise query or fuzzy query. Here I suggest that if you know the exact value of the index, fill it true, or something beyond your control may occur. After all, do pay attention to this piece of data is the accuracy of the data, and if you have even a return to the ambiguous data, it is estimated that you did not dare take to use it.

    Here, it is finished the regular operating items VLOOKUP function. Hey, careful readers already see the title of this article is

Advanced Excel-VLOOKUP function is used

    Yes, the authors found that in use, the second argument of the VLOOKUP function does, it is much playable.

That is, it can not only fill the local path, but also can get the address of a fill in any data!

    Whoops! It was awesome

    Some people will ask, what difference does it make?

    A big difference!

    On the example, I use this packet to the student's school number information, and that perhaps next to a what form it? Do I have to work on the same device the whole table to a list? This is too much trouble.

    There is, of yesterday when this function is in use on computer operation, but careful people can see, there is a group of five most classmate's name Motian up. What if what the students asked me to help him change the temporary grouping, I certainly can not then the whole again on the computer. Then I naturally using a mobile phone to give him change it on the line, but the phone did not file path relative. A change that can not function index number information to the school.

    At this time, if a file link to replace the local file path, we can solve this problem.

    Microsoft do not know at what time, people have developed a collaboration features. That is, an author in a document written in one device, the other author can be accessed on another device, if authorized, it can be edited.

    Here, we use OneDrive service is provided by Microsoft.

    First, save the file as a list of the files stored on Microsoft's servers

    Then, copy the file Address

    Then you can copy and paste your address to get your second parameter inside the last formula is this:

=IF(C5="","",VLOOKUP(C5,'https://d.docs.live.net/***.xlsx[名单.xlsx]Sheet1'!$A$2:$B$46,2,FALSE))

    For information protection classmates, I am in this with ***  instead of the file path.

    After this changing for the better, fill the drop-down, you can be networked in any device in use VLOOKUP function to get the data you want.

    Of course, Microsoft's server, after all, far away in the United States, open the file load time might be a little long, if you want a higher efficiency. So, there will also be a cloud service provider where your Excel file, and then set about access, you'll be able to access the table of your existence through a cloud of links. Common cloud cloud storage such as Sina, Baidu Cloud, Ali cloud, etc., have provided the cloud data storage services, the other I do not know, but I know there is free flow of Sina cloud 300M per day, for a small table, it is clear or enough of.

    But with respect to Microsoft's cloud storage OneDrive drawback it is not convenient in terms of changes to the file, applies only to fixed data files. But in this day and age, the same thing really is not much of it. Readers can choose which method to use according to their needs. Specific use cloud storage in this I will not say, want to know you can search the Internet on their own.

    Well, today's article on this point. How, learning are not they make you feel happy?

Scan the QR code, Follow us yo

Published 10 original articles · won praise 0 · Views 487

Guess you like

Origin blog.csdn.net/weixin_44549795/article/details/103360158