Excel query with regards to IF statements -
i have following formula in excel sheet works perfectly:
=if(f5>=30.01,(39+(c5*0.08)),if(and(f5>=20.01,f5<=30),(39+(c5*0.07)),if(and(f5>=10.01,f5<=20),(39+(c5*0.06)),if(and(f5>=5.01,f5<=10),(39+(c5*0.05)),if(and(f5>=2.01,f5<=5),(39+(c5*0.04)),if(and(f5>=1.01,f5<=2),(39+(c5*0.03)),if(and(f5>=0.25,f5<=1),(39+(c5*0.02)),if(and(f5>=0,f5<=0.245),(0.03*c5*f5)))))))))
i wondering if tell me how edit if result of formula less '43', number inputted cell should 43?
i have been trying edit accordingly while , i'm not sure need make happen.
the rest of formula works need to, need sheet not produce result less 43.
thank assistance!
you don't need , statements nature of nested ifs picks them off scaling down, here current formula amended:
=if(f5>=30.01,(39+(c5*0.08)),if(f5>=20.01,(39+(c5*0.07)),if(f5>=10.01,(39+(c5*0.06)),if(f5>=5.01,(39+(c5*0.05)),if(f5>=2.01,(39+(c5*0.04)),if(f5>=1.01,(39+(c5*0.03)),if(f5>=0.25,(39+(c5*0.02)),if(f5>=0,(0.03*c5*f5)))))))))
you wrap in max formula either result or 43, whichever larger so:
=max(if(f5>=30.01,(39+(c5*0.08)),if(f5>=20.01,(39+(c5*0.07)),if(f5>=10.01,(39+(c5*0.06)),if(f5>=5.01,(39+(c5*0.05)),if(f5>=2.01,(39+(c5*0.04)),if(f5>=1.01,(39+(c5*0.03)),if(f5>=0.25,(39+(c5*0.02)),if(f5>=0,(0.03*c5*f5))))))))),43)
Comments
Post a Comment