0% found this document useful (0 votes)
80 views2 pages

Can It Be Possible

This document discusses using the VLOOKUP function to find discount rates based on product and quantity ordered. It explains that using TRUE as the range_lookup parameter will return an exact or approximate match, whereas FALSE will only return an exact match. It provides examples of using VLOOKUP with TRUE to find a 10% discount for 2500 units of Product A, and using MATCH and VLOOKUP together to find a 5% discount for 100 units of Product B by first getting the column index dynamically. The key things to remember are that the lookup values must be in ascending order for accurate results, and VLOOKUP may not find the highest lower value if the data is not ordered.

Uploaded by

Pavan Sharma
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views2 pages

Can It Be Possible

This document discusses using the VLOOKUP function to find discount rates based on product and quantity ordered. It explains that using TRUE as the range_lookup parameter will return an exact or approximate match, whereas FALSE will only return an exact match. It provides examples of using VLOOKUP with TRUE to find a 10% discount for 2500 units of Product A, and using MATCH and VLOOKUP together to find a 5% discount for 100 units of Product B by first getting the column index dynamically. The key things to remember are that the lookup values must be in ascending order for accurate results, and VLOOKUP may not find the highest lower value if the data is not ordered.

Uploaded by

Pavan Sharma
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Can it be possible….?

Friends, just go - TRUE (1) as Range_Lookup: This


through the following case and tell me is function will return the exact match,
there any possibility available to solve the and if the same is unavailable, it will
issue with the help of VLOOKUP function. return the approximate match. In
other words, if VLOOKUP can't find
A dealer wants to give a festival offer to his lookup_value, it uses the largest
customers. He announces the following value that is less than or equal to
discounts. lookup_value.

Units Product Product Product To solve the above said cases we have to use
A B C TRUE (1) as Range_lookup.
Upto 0% 5% 0%
499 To illustrate, I am going to take the 3 rd case -
>=500 0% 15% 5% Y orders 2500 units of product A. (to explain
>=1000 10% 20% 10% the first 2 cases, we need some assistance
Price 10.00 8.00 25.00 from other function to get the result. We can
(Rs) get the result for the first 2 cases with the
help of combined functions only.)
Pick the appropriate discount rates for the
following cases with the help of VLOOKUP CASE 3:
function:

1. Z orders 100 units of product B


2. X orders 600 units of Product
C.
3. Y orders 2500 units of product
A.

Without looking at the solution try these


Syntax is =vlookup(2500,A1:B4,2,1)
cases... if you are unable to find the solution
then read further
The function will return 10% as result as
“2500” will not exactly match with the
VLOOKUP Function
database. So, the function will look for the
next highest value that is less than 2500.
Recall the syntax of VLOOKUP function. i.e.,
=vlookup(Lookup_value,table_array,col_inde
To check this formula, you can try with some
x,range_lookup)
other units (say 499 units, 950 units or with
exact values 0, 500 and 1000)
Here, we are giving FOUR Input parameters.
Let us concentrate only on the fourth
OTHER CASES
parameter now to solve this case.
In the previous case, we have used 2 as
Range_lookup
column index to find the discount rate for
2500 units of Product A. we know that the
While using Vlookup function, we are used to
details of Product A are available under
assign FALSE (0) as Range_Lookup. What will
column 2. How can we assist the system to
be the result if I assign TRUE (1) as
find the column index automatically instead
Range_Lookup?
of feeding the column index manually?
- FALSE (0) as Range_Lookup:
MATCH Function
VLOOKUP will find the exact match,
and if it is not found, it will return an
error value (#N/A). This function will return the relative
position of an item from the selected
area (i.e row or column)
Syntax:

=match(lookup_value,lookup_array,m
atch_type)
Let us now find the Column index of Product
B

=match(“Product B”,A1:D1,0)
Now, Try the rest (You already know how to
The function will return 3 as result. use) to get the net value of the ordered
quantity.
COMBINED FUNCTION
Things to REMEMBER
Now we are going to solve the first 2 cases.
For that we have to combine VLOOKUP • To get the accurate result from the
function and MATCH function to get the VLOOKUP function, lookup_values (i.e.
desired result. in this example “Units” column)
should be in ascending order.
CASE 1: • If it is not so, the function may not
find the largest value that is lower
than the lookup value.

Here we have two inputs i.e ITEM and ORDER


QTY. First, we need to find the discount rate
for Product B when the ordering quantity is
100 units.

Instead of giving column index manually,


here we have inserted MATCH function to get
the column index. (To test this function,
change the item name as Product A or
Product C)

You might also like