Вы находитесь на странице: 1из 6

VLOOKUP Challenges

Challenge #1: What is amount payable after quantity discount?


Method I
Unit Price $50 Discount Table
Customer Qty. Bought Amount Payable Quantity Bought (upto)
Joseph 26 1
John 45 3
Josh 97 5
Jamie 76 10
Jackie 46 25
Johnson 9 100
Jonathan 12
Jagjit 78 How to calculate?
Jairam 54 Joseph bought 26 units, which is between 25 a
Jessy 1 100. So he will get 50% discount. Jessy bought
Javed 27 unit, so she will get 0% discount.

Jimmy 13
Juno 77

Challenge #2: What is amount payable after accumulated quantity discount?

Unit Price $50 Discount Table

Customer Qty. Bought Amount Payable Quantity Bought (upto)


Josh 5 1
Joseph 15 3
Jamie 12 5
Jackie 1 10
Joseph 5 25
Joseph 2 100
John 12
Josh 10 How to calculate?
Jackie 5 Josh bought 5 units initially, so she gets 15%
Joseph 15 discount and pays $212.5. Later she bought 10
Jackie 12 more units, so her total qty bought is 15. Now
gets 25% discount on the 10 items and pays -
John 1 $375.
Jamie 11

Challenge #3: What is the closest price per unit?


Pricing Table

Customer Qty. Bought Price per unit Quantity Bought (upto)


Joseph 7 1
John 2 3
Josh 5 5
Jamie 8 10
Jackie 9 25
Johnson 10 100
Jonathan 14
Jagjit 23 How to calculate?
Jairam 27 Joseph bought 7 units. Price per unit is $43 sinc
Jessy 89 is closer to 5, we pick $43 as unit price.
Javed 11 Similarly, Javed bought 11 units hence the pirc
per unit will be $40.
Jimmy 43
Juno 51 If qty is equally close to 2 price points, we
pick the higher price.
% Discount
0%
10%
15%
20%
25%
50%

s, which is between 25 and


% discount. Jessy bought 1
% discount.

% Discount
0%
10%
15%
20%
25%
50%

tially, so she gets 15%


12.5. Later she bought 10
al qty bought is 15. Now she
the 10 items and pays -
Price per
Unit
$50
$46
$43
$40
$35
$30

Price per unit is $43 since 7


$43 as unit price.
t 11 units hence the pirce

se to 2 price points, we
e.
Amount
Payable
212.50
562.50
450.00
50.00
187.50
75.00
450.00
375.00
200.00
375.00
450.00
37.50
412.50
delta with delta with lower of the
Result
lower limit higher limit two
#N/A #N/A #N/A #N/A
#N/A #N/A #N/A #N/A
#N/A #N/A #N/A #N/A
#N/A #N/A #N/A #N/A
#N/A #N/A #N/A #N/A
#N/A #N/A #N/A #N/A
#N/A #N/A #N/A #N/A
#N/A #N/A #N/A #N/A
#N/A #N/A #N/A #N/A
#N/A #N/A #N/A #N/A
#N/A #N/A #N/A #N/A
#N/A #N/A #N/A #N/A
#N/A #N/A #N/A #N/A

Вам также может понравиться