excel calculation

  • Thread starter Thread starter Shiblie Bshara
  • Start date Start date
S

Shiblie Bshara

hi,
I need to do a formula that covers the next conditions:

Max= 5000
Total= 5700
Min = ???

if total < max, then min = total*0.06
if total = max, then min = total*0.06
if total > max, then min = (max*0.06)+(total-max)


thanx
 
Hi,

Try this

=IF(B2>B1,(B1*0.06)+(B2-B1),B2*0.06)

Where
B1= max
B2= total

Mike
 
The IF formula is good but you can also use an IF-less formula
With Max in A1 and Total in B1
=(B1*0.06)*(B1<=A1)+((A1*0.06)+(B1-A1))*(B1>A1)
best wishes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top