Excel Help index match or other option

Mohammed Wahid

New Member
Joined
Jul 23, 2017
Messages
1
I want to put discount per unit for each qty purchase for its respective category, discount is depend upon category and qty range.

Discount range table

[TABLE="width: 256"]
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl67, width: 64"]
Category[/TD]
[TD="class: xl67, width: 64"]Min QTY[/TD]
[TD="class: xl67, width: 64"]Max Qty[/TD]
[TD="class: xl65, width: 64"]$ Disc /unit[/TD]
[/TR]
[TR]
[TD="class: xl68"]A[/TD]
[TD="class: xl69, width: 64"]1[/TD]
[TD="class: xl69, width: 64"]5[/TD]
[TD="class: xl70, width: 64"]$1 [/TD]
[/TR]
[TR]
[TD="class: xl71"]A[/TD]
[TD="class: xl72, width: 64"]6[/TD]
[TD="class: xl72, width: 64"]10[/TD]
[TD="class: xl73, width: 64"]$2 [/TD]
[/TR]
[TR]
[TD="class: xl74"]A[/TD]
[TD="class: xl75, width: 64"]11[/TD]
[TD="class: xl75, width: 64"]11 +[/TD]
[TD="class: xl76, width: 64"]$3 [/TD]
[/TR]
[TR]
[TD="class: xl77"]B[/TD]
[TD="class: xl78, width: 64"]1[/TD]
[TD="class: xl78, width: 64"]5[/TD]
[TD="class: xl79, width: 64"]$2 [/TD]
[/TR]
[TR]
[TD="class: xl74"]B[/TD]
[TD="class: xl75, width: 64"]6[/TD]
[TD="class: xl75, width: 64"]10[/TD]
[TD="class: xl76, width: 64"]$3 [/TD]
[/TR]
[TR]
[TD="class: xl71"]B[/TD]
[TD="class: xl72, width: 64"]11[/TD]
[TD="class: xl72, width: 64"]11 +[/TD]
[TD="class: xl73, width: 64"]$4 [/TD]
[/TR]
[TR]
[TD="class: xl68"]C[/TD]
[TD="class: xl69, width: 64"]1[/TD]
[TD="class: xl69, width: 64"]5[/TD]
[TD="class: xl70, width: 64"]$3 [/TD]
[/TR]
[TR]
[TD="class: xl71"]C[/TD]
[TD="class: xl72, width: 64"]6[/TD]
[TD="class: xl72, width: 64"]10[/TD]
[TD="class: xl73, width: 64"]$4 [/TD]
[/TR]
[TR]
[TD="class: xl80"]C[/TD]
[TD="class: xl81, width: 64"]11[/TD]
[TD="class: xl81, width: 64"]11 +[/TD]
[TD="class: xl82, width: 64"]$5

[/TD]
[/TR]
</tbody>[/TABLE]

-------------------------------------------------


Here, in $ Disc / Unit column i want it to read from above table

[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]Category[/TD]
[TD="class: xl65, width: 64"]QTY[/TD]
[TD="class: xl66, width: 64"]$ Disc /unit[/TD]
[/TR]
[TR]
[TD="class: xl68"]A[/TD]
[TD="class: xl69"]2[/TD]
[TD="class: xl67"][/TD]
[/TR]
[TR]
[TD="class: xl68"]B[/TD]
[TD="class: xl69"]4[/TD]
[TD="class: xl67"][/TD]
[/TR]
[TR]
[TD="class: xl68"]C[/TD]
[TD="class: xl69"]2[/TD]
[TD="class: xl67"][/TD]
[/TR]
[TR]
[TD="class: xl68"]A[/TD]
[TD="class: xl69"]7[/TD]
[TD="class: xl67"][/TD]
[/TR]
[TR]
[TD="class: xl68"]A[/TD]
[TD="class: xl69"]7[/TD]
[TD="class: xl67"][/TD]
[/TR]
[TR]
[TD="class: xl68"]A[/TD]
[TD="class: xl69"]16[/TD]
[TD="class: xl67"][/TD]
[/TR]
[TR]
[TD="class: xl68"]B[/TD]
[TD="class: xl69"]7[/TD]
[TD="class: xl67"][/TD]
[/TR]
[TR]
[TD="class: xl68"]C[/TD]
[TD="class: xl69"]5[/TD]
[TD="class: xl67"][/TD]
[/TR]
[TR]
[TD="class: xl68"]A[/TD]
[TD="class: xl69"]1[/TD]
[TD="class: xl67"][/TD]
[/TR]
[TR]
[TD="class: xl68"]C[/TD]
[TD="class: xl69"]13[/TD]
[TD="class: xl67"][/TD]
[/TR]
[TR]
[TD="class: xl68"]A[/TD]
[TD="class: xl69"]6[/TD]
[TD="class: xl67"][/TD]
[/TR]
[TR]
[TD="class: xl68"]C[/TD]
[TD="class: xl69"]9[/TD]
[TD="class: xl67"][/TD]
[/TR]
[TR]
[TD="class: xl68"]B[/TD]
[TD="class: xl69"]3[/TD]
[TD="class: xl67"][/TD]
[/TR]
[TR]
[TD="class: xl68"]A[/TD]
[TD="class: xl69"]4[/TD]
[TD="class: xl67"][/TD]
[/TR]
[TR]
[TD="class: xl68"]C[/TD]
[TD="class: xl69"]3[/TD]
[TD="class: xl67"][/TD]
[/TR]
</tbody>[/TABLE]


Kindly help me out on this.
 
Welcome to the MrExcel board!

This is an array formula so should be entered without the {} but confirmed with Ctrl+Shift+Enter, not just Enter. If confirmed correctly, Excel will insert the {}. The formula can then be copied down.

Excel Workbook
ABCD
1CategoryMin QTYMax Qty$ Disc /unit
2A151
3A6102
4A1111 +3
5B152
6B6103
7B1111 +4
8C153
9C6104
10C1111 +5
11
12
13
14CategoryQTY$ Disc /unit
15A21
16B42
17C23
18A72
19A72
20A163
21B73
22C53
23A11
24C135
25A62
26C94
27B32
28A41
29C33
Discount
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top