Vlookup Training

Embed Size (px)

Citation preview

  • 8/4/2019 Vlookup Training

    1/2

  • 8/4/2019 Vlookup Training

    2/2

    Advanced Examples:

    Unsorted

    A B C D

    1 Tenant # Tenant Name Monthly Rent # of Months When performing a text search

    2 2005 Equity Office 5,000.00 12 you should always specify FALSE

    3 2136 Jimmy Johns 750.00 5 for the range_lookup parameter.

    4 3567 Equal 7,500.00 10

    5 7890 CVS 6,333.33 8

    Result

    =VLOOKUP("Equity Office",B2:D7,2) Equity Lifestyles

    =VLOOKUP("Equity Office",B2:D7,2,FALSE) Equity Office

    =VLOOKUP(A2,A2:D5,3)*VLOOKUP(A2,A2:D5,4) 60,000.00

    5,000.00 * 12 = 60,000.00

    A B C D E

    1 Tenant # Tenant Name 2011 Rent 2012 Rent 2013 Rent

    2 2005 Equity Office 5,000.00 5,500.00 6,000.00

    3 2136 Jimmy Johns 750.00 1,000.00 1,250.00

    4 3567 Equal 7,500.00 8,000.00 8,500.00

    5 7890 CVS 6,333.33 7,333.33 8,333.33

    6

    7 Year 2011 Enter

    8 Tenant # 2005 Enter

    9 Rent $ 5,000.00 Formula

    =VLOOKUP(B8,A2:E20,IF(B7=2011,3,(IF(B7=2012,4,5))))

    2005 TRUE Result

    Column 3 5,000.00

    7 Year 2012 Enter

    8 Tenant # 2005 Enter

    9 Rent $ 5,500.00 Formula

    =VLOOKUP(B8,A2:E20,IF(B7=2011,3,(IF(B7=2012,4,5))))

    2005 FALSE = 2012

    TRUE Result

    Column 4 5,500.00

    7 Year 2013 Enter

    8 Tenant # 2005 Enter

    9 Rent $ 6,000.00 Formula

    =VLOOKUP(B8,A2:E20,IF(B7=2011,3,(IF(B7=2012,4,5))))

    2005 FALSE = 2013

    FALSE = 2013 Result

    Column 5 6,000.00

    Remarks:

    When searching text values in the fir

    column of table_array, ensure that t

    data in the first column of table_arra

    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 unexpec

    value.

    When searching number or date valu

    ensure that the data in the first colum

    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, typ

    tilde (~) preceding the character.

    Example of IF(ISNA) Formula:

    .

    =IF(ISNA(VLOOKUP(B8,A2:,2,FALSE)),"Item Not FoundVLOOKUP(B8,A:2:E2,2,FALE))