Link to home
Start Free TrialLog in
Avatar of sandramac
sandramac

asked on

Excel Formula

Hello trying to build a formula to do the following
If cell P5 contains "PL" anywhere in that cell then take O5*.5, else if P5 does not contain PL, but there is a 'SN" and AM5 is greater than 10 and  I5 is less than 1.25 then O5*15, else O5*10. if niether PL or SN then 0.
Avatar of SiddharthRout
SiddharthRout
Flag of India image

Try this

=IF(ISERROR(IF(FIND("PL",P5,1),O5*0.5,IF(FIND("SN",P5,1),IF(AND(AM5>10,I5<1.25),O5*15,O5*10),0))),0,IF(FIND("PL",P5,1),O5*0.5,IF(FIND("SN",P5,1),IF(AND(AM5>10,I5<1.25),O5*15,O5*10),0)))

Sid
The above formula is for Excel 2003. For 2007/2010 try this

=IFERROR(IF(FIND("PL",P5,1),O5*0.5,IF(FIND("SN",P5,1),IF(AND(AM5>10,I5<1.25),O5*15,O5*10),0)),0)

Sid
ASKER CERTIFIED SOLUTION
Avatar of SiddharthRout
SiddharthRout
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial