Solved

Excel Formula

Posted on 2011-02-19
3
292 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
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…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

840 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