5.111. Vlookup Function - 1st

Embed Size (px)

DESCRIPTION

vlook up

Citation preview

  • ID PRICE ID PRICEBellen-134-b25r 5000 134 5000

  • Density0.4570.5250.6060.6750.7460.8350.9461.091.29

    Formula2.17

    100

    #N/A

    #N/A

    1.71

  • Viscosity3.553.252.932.752.572.382.171.951.71

    Description

    Using an exact match, searches for the value 0.7 in column A. Because there is no exact match in column A, an error is returned.

    Using an approximate match, searches for the value 0.1 in column A. Because 0.1 is less than the smallest value in column A, an error is returned.

    Using an approximate match, searches for the value 1 in column A, finds the largest value less than or equal to 1 in column A which is 0.946, and then returns the value from column B in the same row.Using an approximate match, searches for the value 1 in column A, finds the largest value less than or equal to 1 in column A, which is 0.946, and then returns the value from column C in the same row.

    Using an approximate match, searches for the value 2 in column A, finds the largest value less than or equal to 2 in column A, which is 1.29, and then returns the value from column B in the same row.

  • 500400300250200150100500

    Result2.17

    100

    Err:512

    Err:512

    Temperature

  • Item-IDST-340BI-567DI-328WI-989AS-469

    Formula28.9575

    5.7344

    Markup is 30%

    Cost is $3.56

  • ItemStrollerBibDiapersWipesAspirator

    DescriptionCalculates the retail price of diapers by adding the markup percentage to the cost.

    Calculates the sale price of wipes by subtracting a specified discount from the retail price.

    41.45

    If the cost of an item is greater than or equal to $20.00, displays the string "Markup is nn%"; otherwise, displays the string "Cost is under $20.00".

    If the cost of an item is greater than or equal to $20.00, displays the string Markup is nn%"; otherwise, displays the string "Cost is $n.nn".

  • Cost Markup$145.67 30%$3.56 40%$21.45 35%$5.12 40%$2.56 45%

    ResultCalculates the retail price of diapers by adding the markup percentage to the cost. $28.96

    Calculates the sale price of wipes by subtracting a specified discount from the retail price. $5.73

    Markup is 30%

    Cost is $3.56

    $7.72

    If the cost of an item is greater than or equal to $20.00, displays the string "Markup is nn%"; otherwise, displays the string "Cost is under $20.00".

    If the cost of an item is greater than or equal to $20.00, displays the string Markup is nn%"; otherwise, n.nn".

  • ID Last name 1 Davis2 Fontana3 Leal4 Patten5 Burke6 Sousa

    Formula Description49Burke

    Employee not found

    For the employee with an ID of 4, concatenates the values of three cells into a complete sentence.

    For the fiscal year 2004, finds the age of the employee with ID equal to 5. Uses the subtract the birth date from the fiscal year end date and displays the result as an integer using the If there is an employee with an ID of 5, displays the employee's last name; otherwise, displays the message "Employee not found".The ISNA function returns a TRUE value when the VLOOKUP function returns the #NA error value.If there is an employee with an ID of 15, displays the employee's last name; otherwise, displays the message "Employee not found".The ISNA function returns a TRUE value when the VLOOKUP function returns the #NA error value.

    Michael Patten is a Sales Rep.

  • First name TitleSara Sales Rep.Olivier V.P. of SalesKarina Sales Rep.Michael Sales Rep.Brian Sales Mgr.Luis Sales Rep.

    Description

    For the employee with an ID of 4, concatenates the values of three cells into a complete sentence.

    For the fiscal year 2004, finds the age of the employee with ID equal to 5. Uses the YEARFRAC function to subtract the birth date from the fiscal year end date and displays the result as an integer using the INT function.If there is an employee with an ID of 5, displays the employee's last name; otherwise, displays the message

    function returns a TRUE value when the VLOOKUP function returns the #NA error value.If there is an employee with an ID of 15, displays the employee's last name; otherwise, displays the message

    function returns a TRUE value when the VLOOKUP function returns the #NA error value.

  • Birth date8/12/19682/19/19528/30/19639/19/19584/3/19552/7/1963

    Result49

    Burke

    Employee not found

    Michael Patten is a Sales Rep.

  • ITEM'S NAME PART NUMBER QTY PRICE AMOUNT REMARKSHDD 1000-165-B100 50 400 20000TV 1000-165-B102 75 12500 937500MONITOR 1000-166-B100 25 8500 212500PROCESSOR 1000-175-B102 30 4500 135000RAM 1001-165-B100 35 1700 59500CASING 1002-165-B102 125 2500 312500MOTHER BOARD 1003-166-B100 100 4500 450000

    VLOOKUP NORMAL :ITEM'S NAME PART NUMBER QTY PRICE AMOUNT REMARKSHDD 400

    VLOOKUP IF EEEROR & DATA NOT MACHING:MONITOR 8500

    VLOOKUP & DATA VALIDATION:RAM 1700

    VLOOKUP & NAME RANGES:HDD 400

  • REMARKS

    REMARKS

  • How VLOOKUP "sees" it. SALES AMOUNT CATEGORY0
  • COMMISSION PAID - 10.00 50.00 490.00 1,000.00

  • SHOW FULL RECORD: 4 METHODS.

    ID LAST NAME FIRST NAME880-10061 AHMED KARIM880-10062 HOSSAIN RAHIM880-10063 RAHMAN MUNNA880-10064 HOSSAIN MANIK880-10065 AHMED RASEL880-10066 BEGUM1 SHEELA880-10067 AKTER MILA

    NUMBERS ABOVE COLUMN HEADER 2 3ID LAST NAME FIRST NAME

    880-10062 HOSSAIN RAHIM

    BY COLUMNS FUNCTION :ID LAST NAME FIRST NAME

    880-10065 AHMED RASEL

    BY ROW FUNCTION :ID 880-10065

    LAST NAME AHMEDFIRST NAME RASEL

    E-MAIL [email protected] NO 01725-553279

    BY MATCH FUNCTION :ID LAST NAME FIRST NAME

    880-10064 HOSSAIN MANIK

  • E-MAIL MOBILE [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] 01925-555210

    4 5E-MAIL MOBILE NO

    [email protected] 01824-553275

    E-MAIL MOBILE [email protected] 01725-553279

    E-MAIL MOBILE [email protected] 01854-663279

  • PARTIAL TEXT LOOKUP: LEFT and SEARCH.NAME & ID INCOME NAME ID INCOME

    TAFSIR-234-B25R 50000 TAFSIR 234-B25R 50000RASHED-234-B25R 75000 RASHED 234-B25R 75000IQBAL-234-B25R 27000 IQBAL 234-B25R 27000SHEELA-234-B25R SHEELA SHEELA 234-B25R 65000

    =VLOOKUP(LEFT(A5,SEARCH("-",A5)-1),D5:F8,3,0)

    PARTIAL TEXT LOOKUP: MIDNAME & ID INCOME NAME ID INCOME

    TAFSIR-234-B25R #N/A TAFSIR 234 50000RASHED-234-B25R RASHED 234-B25R 75000IQBAL-234-B25R IQBAL 234-B25R 27000SHEELA-234-B25R SHEELA 234-B25R 65000

    PARTIAL TEXT LOOKUP: RIGHTNAME & ID INCOME NAME ID INCOME

    TAFSIR-234-B25R #N/A TAFSIR B25R 50000RASHED-234-B25R RASHED 234-B25R 75000IQBAL-234-B25R IQBAL 234-B25R 27000SHEELA-234-B25R SHEELA 234-B25R 65000

  • ITEM'S NAME HDD TV MONITOR PROCESSORPART NAME 1000-165-B100 1000-165-B102 1000-166-B100 1000-175-B102QTY 50 50 75 25PRICE 5000 400 12500 8500AMOUNT 250000 20000 937500 212500REMARKS

    HLOOKUP NORMAL :ITEM'S NAME PRICEMONITOR 12500

    VLOOKUP IF EEEROR & DATA NOT MACHING:MONITOR ITEM'S NAME NOT MATCH

    VLOOKUP & DATA VALIDATION:RAM #N/A

    VLOOKUP & NAME RANGES:HDD #N/A

  • MOUSE KEYBOARD PENDRIVE HEADPHONE1001-165-B100 1002-165-B102 1003-166-B100 1003-166-B100

    30 35 125 1004500 1700 2500 4500

    135000 59500 312500 450000

    ITEM'S NAME NOT MATCH

  • Axles Bearings4 45 76 8

    Formula Description (Result)4

    7

    5

    11

    Err:502

    Looks up Axles in row 1, and returns the value from row 2 that's in the same column. (4)Looks up Bearings in row 1, and returns the value from row 3 that's in the same column. (7)Looks up B in row 1, and returns the value from row 3 that's in the same column. Because B is not an exact match, the next largest value that is less than B is used: Axles. (5)

    Looks up Bolts in row 1, and returns the value from row 4 that's in the same column. (11)

    Looks up 3 in the first row of the array constant, and returns the value from row 2 in same column. (c)

  • Bolts9

    1011

    Description (Result)Looks up Axles in row 1, and returns the value from row 2 that's in the

    Looks up Bearings in row 1, and returns the value from row 3 that's in the

    Looks up B in row 1, and returns the value from row 3 that's in the same column. Because B is not an exact match, the next largest value that is less than B is used: Axles. (5)

    Looks up Bolts in row 1, and returns the value from row 4 that's in the

    Looks up 3 in the first row of the array constant, and returns the value from row 2 in same column. (c)

    Sheet3VLOOKUP EXAMPE1VLOOKUP EXAMPE2VLOOKUP EXP3VLOOKUP EXP-4VLOOKUP EXP-5VLOOKUP (EXAM-5)VLOOKUP (EXAM-6)HLOOKUP EXP-1HLOOKUP (EXAM-2)