Pricing Per Unit Formula Help

Foyer8888

New Member
Joined
Aug 28, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hello MrExcel Community,

I am looking for some assistance on building a formula to calculate the price per unit based on a tiered quantity.

1693254027955.png
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
May not be the best option but it works.
Formulas:
D18 =MIN($C$4,C18)
D19 =MIN(C19,$C$4-D18)
D20 =MIN(C20,$C$4-D19-D18)
D21 =MIN(C21,$C$4-D20-D19-D18)
D22 =MIN(C22,$C$4-D21-D20-D19-D18)
 
Upvote 0
May not be the best option but it works.
Formulas:
D18 =MIN($C$4,C18)
D19 =MIN(C19,$C$4-D18)
D20 =MIN(C20,$C$4-D19-D18)
D21 =MIN(C21,$C$4-D20-D19-D18)
D22 =MIN(C22,$C$4-D21-D20-D19-D18)


Thank you for the reply. Perhaps I am doing something wrong, but I entered the formulas exactly as you have listed and am not getting the same results. It seems to work up for 256, but once I get to the second tier and exceed the 1024, the amount continues to add in the Tier 2 line instead of moving to the next tier.
 
Upvote 0
Thank you for the reply. Perhaps I am doing something wrong, but I entered the formulas exactly as you have listed and am not getting the same results. It seems to work up for 256, but once I get to the second tier and exceed the 1024, the amount continues to add in the Tier 2 line instead of moving to the next tier.
1693315675111.png
 
Upvote 0
Ok, apologies for the reply, I realized the change required. The end parenthesis should be after the $C$4. I made this change and it works. Thank you for your help.
Could you please post the final solution, then it is perfectly fine to mark your own answer as the solution as it will help future readers.
 
Upvote 0
Could you please post the final solution, then it is perfectly fine to mark your own answer as the solution as it will help future readers.
Here is the corrected solution.
D18 =MIN($C$4,C18)
D19 =MIN(C19,$C$4)-D18
D20 =MIN(C20,$C$4)-D19-D18
D21 =MIN(C21,$C$4)-D20-D19-D18
D22 =MIN(C22,$C$4)-D21-D20-D19-D18
 
Upvote 0
Solution

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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