If value falls between two prices in a range, return calculation

B5rocksass

Board Regular
Joined
Jan 10, 2017
Messages
56
Office Version
  1. 2016
Platform
  1. Windows
I am working on a template that will autocalculate the price when a specific quantity is entered (after rounding the quantity to the nearest skid size first). Ideally, I'd like to move the prices to a different tab or hide them, so the template only shows only the retrieved price. Please assist.

Ox Paper BD 20210112.xlsx
ABCDEFGHIJ
1HOW IT IS NOWUnit Price by Qty Tier
2QtyUOMItem NoQty Per SkidFinal Qty50075010001500SubTotal
3500EAITEM 1200600$ 40.50$ 33.83$ 30.50$ 27.17$ 24,300.00
41,300EAITEM 21561404$ 1.29$ 1.22$ 1.19$ 1.15$ 1,670.76
5
6IDEAL
7QtyUOMItem NoQty Per SkidFinal QtyUnit PriceSubTotal
8500EAITEM 1200600$ 40.50$ 24,300.00
91,300EAITEM 21561404$ 1.19$ 1,670.76
Sheet3
Cell Formulas
RangeFormula
E8:E9,E3:E4E3=D3*(ROUNDUP(A3/D3,0))
J3J3=E3*F3
J4J4=E4*H4
G8:G9G8=E8*F8
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
What determines which row of prices should be looked at?
 
Upvote 0
What determines which row of prices should be looked at?
The final quantity. if its higher than the tier but lower than another tier, return that tier pricing, but needs to have a nested IF with the possibility of all tiers in use.
 
Upvote 0
Yes, but rows 3 & 4 have different prices, what determines which row should be used?
 
Upvote 0
Yes, but rows 3 & 4 have different prices, what determines which row should be used?
I guess the values in the header need to be specifically written into the formula? If the header 500/750/1000/1500 needs to be removed, i guess the unit price formula should state those values as text, right?
 
Upvote 0
It has nothing to do with the headers, that simply shows which column to get the price from.
What I am asking is which ROW so if something is in the 750 tier what decides if the price is 33.83 or 1.22?
 
Upvote 0
I guess there would need to be an Index/Match per the Item Number, with a link to a table that breaks it down on a subsequent page? I'm sorry but I'm not sure what you are asking
 
Upvote 0
With this
+Fluff v2.xlsm
FGHI
250075010001500
340.533.8330.527.17
41.291.221.191.15
Master

+Fluff v2.xlsm
ABCDEFG
6IDEAL
7QtyUOMItem NoQty Per SkidFinal QtyUnit PriceSubTotal
8500EAITEM 120060040.524300
91300EAITEM 215614041.191670.76
Master
Cell Formulas
RangeFormula
E8:E9E8=D8*(ROUNDUP(A8/D8,0))
F8:F9F8=INDEX(F3:I3,MATCH(E8,$F$2:$I$2,1))
G8:G9G8=E8*F8


How do you know that F8 is 40.5 & not 1.29, likewise why is F9 1.19 & not 30.5?
 
Upvote 0
I guess with something like this on a subsequent (hidden) tab?

Ox Paper BD 20210112.xlsx
ABC
1PART NOQty Price BreaksUnit Price
2ITEM 1500$ 40.50
3ITEM 1750$ 33.83
4ITEM 11,000$ 30.50
5ITEM 11,500$ 27.17
6ITEM 2500$ 1.29
7ITEM 2750$ 1.22
8ITEM 21,000$ 1.19
9ITEM 21,500$ 1.15
Sheet4
 
Upvote 0
How about
+Fluff v2.xlsm
ABCDEFG
1Unit Price by Qty Tier
2QtyUOMItem NoQty Per SkidFinal QtyUnit PriceSubTotal
3500EAITEM 120060040.524300
41300EAITEM 215614041.191670.76
Master
Cell Formulas
RangeFormula
E3:E4E3=D3*(ROUNDUP(A3/D3,0))
F3:F4F3=INDEX($P$3:$S$4,MATCH(C3,$O$3:$O$4,0),MATCH(E3,$P$2:$S$2,1))
G3:G4G3=E3*F3

+Fluff v2.xlsm
OPQRS
1
250075010001500
3ITEM 140.533.8330.527.17
4ITEM 21.291.221.191.15
Master
 
Upvote 0

Forum statistics

Threads
1,215,460
Messages
6,124,949
Members
449,198
Latest member
MhammadishaqKhan

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