NBVC,
I hate to even ask, but can you revise the formula with the updated reference table? I'm having trouble implementing it and referencing the correct item.
NBVC,
I hate to even ask, but can you revise the formula with the updated reference table? I'm having trouble implementing it and referencing the correct item.
This is how I revised my formula (with the proper fields):
![]()
=SUM(MIN(CEILING(B17,1000),Calculations!A29)*Calculations!B28,MAX(0,MIN(SUM(Calculations!A28:A30),CEILING(B17,1000)-SUM(Calculations!A28:A31)))*Calculations!B29,MAX(0,MIN(SUM(Calculations!A28:A31),CEILING(B17,1000)-SUM(Calculations!A28:A31)))*Calculations!B30,MAX(0,MIN(SUM(Calculations!A28:A32),CEILING(B17,1000)-SUM(Calculations!A28:A32)))*Calculations!B31,MAX(0,MIN(SUM(Calculations!A28:A33),CEILING(B17,1000)-SUM(A28:A33)))*Calculations!B32,MAX(0,(CEILING(B17,1000)-SUM(A28:A33)))*Calculations!B33)/1000
B17 = the value (or price)
It kicks out a completely wrong #.
Here you go.
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Hey NBVC,
Thanks again for all of your help but same issue.
The formula is performing the first calculation, but it's not adding the others.
For instance, a value of 400,000 kicks out 972.50. This takes care of the first 250,000 of the value, but we need to add that 972.50 to 150,000 x the next tier and so forth.
Does this make sense?
Also, any reason you go from 501 to 1000001 in your reference table?
I would think it should go:
0
250.01
500.01
1000.01
5000.01
15000.01
Am I wrong?
Forgot to multiply by 1000 on the first couple.
Also, changed the formula to:
Try that.![]()
=SUM(MIN(CEILING(Purchase!B3,1000),A3)*B2,MAX(0,MIN(SUM(A2:A4),CEILING(Purchase!B3,1000)-SUM(A2:A3)))*B3,MAX(0,MIN(SUM(A2:A5),CEILING(Purchase!B3,1000)-SUM(A2:A4)))*B4,MAX(0,MIN(SUM(A2:A6),CEILING(Purchase!B3,1000)-SUM(A2:A5)))*B5,MAX(0,MIN(SUM(A2:A7),CEILING(Purchase!B3,1000)-SUM(A2:A6)))*B6,MAX(0,(CEILING(Purchase!B3,1000)-SUM(A2:A7)))*B7)/1000
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks