0% found this document useful (0 votes)
38 views

Excel VLOOKUP Examples

The document provides two examples of using VLOOKUP in Excel to look up values based on a lookup value. The first example shows using an exact match to look up a product price based on a product ID. The second example shows using an approximate match to look up a unit price based on a sales quantity. Both examples demonstrate changing the lookup value and observing how the returned value changes.

Uploaded by

Youcef BOUSBA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

Excel VLOOKUP Examples

The document provides two examples of using VLOOKUP in Excel to look up values based on a lookup value. The first example shows using an exact match to look up a product price based on a product ID. The second example shows using an approximate match to look up a unit price based on a sales quantity. Both examples demonstrate changing the lookup value and observing how the returned value changes.

Uploaded by

Youcef BOUSBA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Excel VLOOKUP example, using an exact match

You have the following table:

Product ID Available Stock Price


2345 500 15
5457 234 28
9823 155 13
1233 122 12
2344 166 24

You've been asked to come up with a way to check the price of a product when a product ID is typed into a give

Product ID 9823
Price

You write a VLOOKUP function which looks like this:

Product 5457
Price formula =VLOOKUP(B20,$A$6:$C$10,3,0)
Price 28

Try changing the value in the yellow cell to see the price in B22 change
Note what happens if you enter a value in B20 that isn't in the Product ID column above.
a product ID is typed into a given cell
Excel VLOOKUP example, using a nearest match

You have the following table:

Quantity Unit Price customer name


0 20 adnan
10 18 omar
50 16 ahmad
100 13 ali
200 12 mohammad

You've been asked to come up with a way to check the price of a product for a given sales quantity
The method you use should handle any sales quantity that is entered

You write a VLOOKUP function which looks like this:

customer name 199


Price formula =VLOOKUP(B18,$A$6:$C$10,2,1)
Price 13

Try changing the value in the yellow cell to see the price in B20 change
Note what happens if you enter a value in B18 that isn't in the Product ID column above.
given sales quantity
employee id employee name salary born date type
1 adnan 1000 1/1/1989 local
2 omar 50000 1/1/1989 outsource
4 khalid 4500 24/5/1991 outsource

salaries
1000

4500

adnan
omar
khalid

50000
get employee info by
employee ID
enter employee Id 1

salary 1000
name adnan
born date 1/1/1989
type local
total salaries
55500

hello I am adnan
adnan
omar
khalid
number of our employees
3
number of all employees
3

numbrer of local employees


1
number of outsourcing employees

2
hello I am adnan

You might also like