View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default excel calculation

Hi,

Try this

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

Where
B1= max
B2= total

Mike

"Shiblie Bshara" wrote:

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