Você está na página 1de 2

Description: When using a VLOOKUP your essentially saying Heres a value.

Go to another
location, find a match for my value, and then show me the words or numbers that reside in a cell that corresponds to that matching value. It searches for a value in the first column of a table and returns a value in the same row from another column of the table.

Lookup_value: Required.

The value to

Syntax:

search for in the first column of the table or range. The lookup_value argument can be a value or a reference. If the value you supply for the lookup_value argument is smaller than the smallest value in the first column of the table_array argument, VLOOKUP returns the #N/A error value.

=VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)

Table_array:

Required. The range of

What value are you searching for?

Where do you want to search?

Which column contains search result?

Should value be an exact match?

cells that contains the data. You can use a reference to a range (for example, A2:D8), or a range name. The values in the first column of table_array are the values searched by lookup_value. These values can be text, numbers, or logical values. Uppercase and lowercase text is equivalent.

Basic Examples:
1 A 2 3 4 5 6 Co # 15340 16770 31020 58970 B Property Santa Monica Bus Prk Colorado Center Warner Center 1888 Century Park East Formula =VLOOKUP(31020,$A$3:$D$6,2) =VLOOKUP(31020,$A$3:$D$6,3) =VLOOKUP(31020,$A$3:$D$6,4) B Property Santa Monica Bus Prk Colorado Center Warner Center 1888 CPE Formula =VLOOKUP(58980,$A$13:$D$16,2) =VLOOKUP(58980,$A$13:$D$16,3) =VLOOKUP(58980,$A$13:$DE$16,4) * 58980 is not available. Formula result is next value <58980. =VLOOKUP(58980,$A$13:$D$16,2,TRUE) =VLOOKUP(58980,$A$13:$D$16,3,TRUE) =VLOOKUP(58980,$A$13:$D$16,4,TRUE) =VLOOKUP(58980,$A$13:$D$16,2,FALSE) =VLOOKUP(58980,$A$13:$D$16,3,FALSE) =VLOOKUP(58980,$A$13:$D$16,4,FALSE) We do not have a match; FALSE = #N/A 1888 CPE 1 489385 #N/A #N/A #N/A C # of Bldgs 20 6 12 1 Result Warner Center 12 344196 C # of Bldgs 20 6 12 1 Result 1888 CPE 1 489385 D Sq Ftg. 1049828 1087952 344196 489385

Col_index_num: Required.

The column

12 A 13 14 15 16 17 Co # 15340 16770 31020 58970

D Sq Ftg. 1049828 1087952 344196 489385

number in the table_array argument from which the matching value must be returned. A col_index_num argument of 1 returns the value in the first column in table_array; a col_index_num of 2 returns the value in the second column in table_array, and so on. If the col_index_num argument is: Less than 1, VLOOKUP returns the #VALUE! Error value. Greater than the number of columns in table_array, VLOOKUP returns the #REF! error value.

Range_lookup: Optional. A logical value


that specifies whether you want VLOOKUP to find an exact match or an approximate match. If range_lookup is either TRUE or is omitted, an exact or approximate match is returned. If an exact match is not found, the next largest value that is less than lookup_value is returned. Important: If range_lookup is either TRUE or omitted, the values in the first column of table_array must be placed in ascending order; otherwise, VLOOKUP might not return the correct value. If range lookup is FALSE, the values in the first column of table_array do not need to be sorted. If the range_lookup argument is FALSE, VLOOKUP will find only an exact match. If there are two or more values in the first column of table_array that match the lookup_value, the first value found is used. If an exact match is not found, the error value #N/A is returned.

Advanced Examples:
A 1 Tenant # 2 3 4 5 Unsorted B Tenant Name C Monthly Rent 5,000.00 750.00 7,500.00 6,333.33 Result =VLOOKUP("Equity Office",B2:D7,2) =VLOOKUP("Equity Office",B2:D7,2,FALSE) =VLOOKUP(A2,A2:D5,3)*VLOOKUP(A2,A2:D5,4) 5,000.00 A 1 Tenant # 2 3 4 5 6 7 Year 8 Tenant # 9 Rent $ 2011 Enter 2005 Enter 5,000.00 Formula * B Tenant Name 12 = C 2011 Rent 5,000.00 750.00 7,500.00 6,333.33 Equity Lifestyles Equity Office 60,000.00 60,000.00 D 2012 Rent 5,500.00 1,000.00 8,000.00 7,333.33 E 2013 Rent 6,000.00 1,250.00 8,500.00 8,333.33 D # of Months When performing a text search 12 you should always specify FALSE 5 for the range_lookup parameter. 10 8

Remarks:
When searching text values in the first column of table_array, ensure that the data in the first column of table_array does not contain any leading spaces, trailing spaces, inconsistent use of quotation markts, or nonprinting characters. In these cases, VLOOKUP might return an incorrect or unexpected value. When searching number or date values, ensure that the data in the first column of table_array is not stored as text values. In this case, VLOOKUP might return an incorrect or unexpected value. If range_lookup is FALSE and lookup_value is text, you can use the wildcard characters the question mark (?) and asterisk (*) in lookup_value. A question mark matches any single character; an asterisk matches any sequence of characters. If you want to find an actual question mark or asterisk, type a tilde (~) preceding the character. Example of IF(ISNA) Formula:

2005 Equity Office 2136 Jimmy Johns 3567 Equal 7890 CVS

2005 Equity Office 2136 Jimmy Johns 3567 Equal 7890 CVS

=VLOOKUP(B8,A2:E20,IF(B7=2011,3,(IF(B7=2012,4,5)))) 2005 7 Year 8 Tenant # 9 Rent $ 2012 Enter 2005 Enter 5,500.00 Formula TRUE Column 3 Result 5,000.00

1.

=IF(ISNA(VLOOKUP(B8,A2:E2 ,2,FALSE)),"Item Not Found", VLOOKUP(B8,A:2:E2,2,FALS E))

=VLOOKUP(B8,A2:E20,IF(B7=2011,3,(IF(B7=2012,4,5)))) 2005 FALSE = 2012 TRUE Column 4 7 Year 8 Tenant # 9 Rent $ 2013 Enter 2005 Enter 6,000.00 Formula Result 5,500.00

=VLOOKUP(B8,A2:E20,IF(B7=2011,3,(IF(B7=2012,4,5)))) 2005 FALSE = 2013 FALSE = 2013 Column 5 Result 6,000.00

Você também pode gostar