Solved

Excel Formula

Posted on 2011-02-19
3
287 Views
Last Modified: 2012-05-11
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.
0
Comment
Question by:sandramac
  • 3
3 Comments
 
LVL 30

Expert Comment

by:SiddharthRout
ID: 34933973
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
0
 
LVL 30

Expert Comment

by:SiddharthRout
ID: 34933979
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
0
 
LVL 30

Accepted Solution

by:
SiddharthRout earned 500 total points
ID: 34933990
Another alternative

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

Sid
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now