Excel Formula to Calculate Tiered Pricing

I am struggling to write a set of formulas that produce the results in the attached spreadsheet and is based on the highlighted number entered.  It should calculate the tiered cost for any number entered up to 200,000.  I feel sure there is a concise and advanced set of formulas that will achieve the results, but I cant get there.  I will need to use the logic quite often going forward.

Your help is greatly appreciated.

The corresponding Excel workbook is attached.
Pricing-Example.xlsx
mcarsonsrAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rgonzo1971Commented:
HI,

pls try example in G5

=(MIN(5000,D3)*0.96)+MAX(0,(MIN(5000,D3-5000)*0.92))+MAX(0,(MIN(10000,D3-10000)*0.9))+MAX(0,(MIN(10000,D3-20000)*0.85))+MAX(0,(MIN(10000,D3-30000)*0.8))+MAX(0,(MIN(10000,D3-40000)*0.75))+MAX(0,(MIN(10000,D3-50000)*0.7))+MAX(0,(MIN(10000,D3-60000)*0.65))+MAX(0,(MIN(10000,D3-70000)*0.6))+MAX(0,(MIN(120000,D3-80000)*0.55))

Open in new window

EDIT the Version1 has the formula distributed over E5:E14

 Regards
Copy-of-Pricing-Example.xlsx
Copy-of-Pricing-ExampleV1.xlsx
Ejgil HedegaardCommented:
Use this formula in E5, copy down.

=IF(C4>$D$3,0,IF(C5<=$D$3,SUM(C5,-C4)*D5,SUM($D$3,-C4)*D5))
Pricing-Example.xlsx
Rgonzo1971Commented:
Hi,

the distributed formula in E5 to fill down

=MAX(0,(MIN(C5-C4,$D$3-C4)*D5))

Open in new window

Regards

Regards

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mcarsonsrAuthor Commented:
Both solutions work and thank you.  What is the protocol regarding point distribution?  Rgonzo1971 solution came through first, but want to be fair.  Just not sure how to assign the points in this situation.

Thank you valuable assistance!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.