Lookup in Excel function uses Daquan

I am here is based on the number for name change information query corresponding number:

Note: The number must be on both sides of unity in ascending order, or can not lookup

 

 

The following is a reference to the original Liezi:

The workplace, often used Vlookup function. But, you know Lookup function? Lookup function is used to find the value in a certain range, and then returns the data of other column.

Is not it feel a little disoriented? Let's look at a few cases together with Rego!

Case number one

As shown, the time necessary to obtain sales of 350,352, the name of the sales staff.

Resolution:

grammar:

=Lookup ( G2,D:D,A:A)

That Lookup (lookup value, Look, the return value).

The results shown below.

It can be found, when 350 sales, returns Elias; 352 sales, the return Li Jie.

Analysis: Because sales of 350, the data is fuzzy look in the D column, 350 if not found, it will be matched with less than 350 and 350 closest to the data, you can see from the chart, sales of 325 to meet the demand, so Elias returns; Similarly, when sales of 352, returned Li Jie.

Therefore, it is found Lookup lookup values ​​are not reliable, because it is a fuzzy search.

Case II

So look for the most appropriate use numerical Lookup under what circumstances it?

Consider the following case, ask the sales staff assessment level.

As illustrated, the need to A, B data organized into columns E, F column data. Specifically as shown in FIG.

 

Resolution:

grammar:

= Lookup (1,0 / (conditions), lookup zone or array)

It represents the last record in the lookup zone, to meet the conditions.

step1: Finishing B column data. = IF input in cell C2 (A1 = A2, C1 & "," & B2, B2), to drag directly.

Step2: F2 cell input

= LOOKUP (1,0 / (E2 = A: A), C: C) to complete.

He explained, this formula represents the return, the condition E2 = A: Find the last record in the region A.

Guess you like

Origin www.cnblogs.com/suqq/p/11540720.html