Calculation based on variables

phitho

New Member
Joined
Aug 26, 2014
Messages
34
I am having a time and a half with something that is probably super easy for anyone else, but here goes...

I have 3 cells:

Cell1 is a dropdown with 3 options (O1, O2, O3).
Cell2 is a Qty
Cell3 is where I would calculate the cost.

For Cell2, I have price breaks for different purchasing volumes: 1-100, 101-200, and 201-300

In a costing table, I have 3 lines, O1, O2, and O3. I then have 3 columns per line, with a discounted price for each Option. The column's pricing is based on volume: 1-100, 101-200, and 201-300.

With all these conditions, I'm banging my head trying to find how to calculate each price based on Option and volume.

Any help is greatly appreciated!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Perhaps:

ABCDE
1
21-100101-200>200
30101201
4A$2.00$1.90$1.80
5B$0.60$0.55$0.40
6C$1.50$1.30$1.10
7
8
9B201$0.40
a
Cell Formulas
RangeFormula
D9D9=INDEX(Prices,MATCH(B9,Items,),MATCH(C9,Qty,1))
Named Ranges
NameRefers ToCells
Items=a!$B$4:$B$6D9
Prices=a!$C$4:$E$6D9
Qty=a!$C$3:$E$3D9
 
Upvote 0
Solution
Try:

Book1 (version 1).xlsb
ABCDEFGH
1OptionQtyPriceOptionQty1Qty2Qty3
2O2114O1123
3O2456
4O3789
Sheet9
Cell Formulas
RangeFormula
C2C2=VLOOKUP(A2,E2:H4,MATCH(B2,{0,101,201})+1)
 
Upvote 0
Both answers return the right Qty from the range, but I need to calculate cost based on Qty. Using StephenCrump's post, if I have a Qty of 90 of Option B, it would be 90*$0.60. If I had 115, it would be 115*$0.55, and so on...

Thanks again, I've already learned how to use Match, which is great! :)
 
Upvote 0
With Stephen's layout, how about
Excel Formula:
=INDEX(Prices,MATCH(B9,Items,),MATCH(C9,Qty,1))*C9
 
Upvote 0

Forum statistics

Threads
1,214,518
Messages
6,119,996
Members
448,935
Latest member
ijat

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