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
 
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
 
Back
Top