First we assume that there is such a sales form, which records the book data of readers all over the country.
This example enters the following query formula in cell F3 (red cells):
=lookup (2,1/(A2:A18=F2)/(C2:C18=F4), (B2:B18))
It does this by entering the address in cell F2 and entering a number in the F4 cell to find out which books are sold in the area. Lookup here is one of the query functions of Excel. Of course, you can modify this formula to suit your needs according to your own needs.
For example, there is a form that records some information about the employees of the company. In this example, in cell D10, the lookup function is still used to query with the following formula:
=lookup (1,1/(A2:A7=C10), C2:C7)
The role of the company, according to the user input conditions to compare, get the desired results. This example is based on the user entered the name criteria to inquire about the qualifications of the employee.
Of course, the query in Excel is not only lookup, but also multiple functions and their combination (the arguments in brackets can be omitted). For specific use of these functions, you can refer to the Help documentation for Excel. In Excel 2016, you can click on "Tell me what I want to do", and then enter the name of the function you want to know, such as VLOOKUP, click Get help, you can get the explanation, and even the relevant video teaching tutorials.
Formula 1:vlookup
Format: =vlookup (Lookup_value,table_array,col_index_num,[range_lookup])
Formula 2:dget
Format: =dget (Database,field,criteria)
Formula 3:offset+match
Format: =offset (Reference,match (lookup_value,lookup_array,[match_type],cols,[height],[width))
Formula 4:index+match
Format: =index (Array,match (Lookup_value,lookup_array,[match_type],[column_num))