Solved

# Complete Excel if formula

Posted on 2011-09-07
241 Views
I have this formula  =IF(A3<0.7,A3+0.78,A3*INDEX({1.25,1.3,1.4,1.45,1.5,1.65,1.8,1.85,1.9,1.95,2},MATCH(A3,{99999,1999.99,999.99,399.99,299.99,229.99,149.99,99.99,49.99,11.99,2.5},-1)))
I need the result to be zero if A3 is zero

So if A3 = 0 then 0 else =IF(A3<0.7,A3+0.78,A3*INDEX({1.25,1.3,1.4,1.45,1.5,1.65,1.8,1.85,1.9,1.95,2},MATCH(A3,{99999,1999.99,999.99,399.99,299.99,229.99,149.99,99.99,49.99,11.99,2.5},-1)))
0

LVL 10

Accepted Solution

SANTABABY earned 125 total points
=IF(A3=0,0,IF(A3<0.7,A3+0.78,A3*INDEX({1.25,1.3,1.4,1.45,1.5,1.65,1.8,1.85,1.9,1.95,2},MATCH(A3,{99999,1999.99,999.99,399.99,299.99,229.99,149.99,99.99,49.99,11.99,2.5},-1))))
0

LVL 2

Expert Comment

Couldn't you do this:
IF(A3=0,0,IF(A3<0.7,A3+0.78,A3*INDEX({1.25,1.3,1.4,1.45,1.5,1.65,1.8,1.85,1.9,1.95,2},MATCH(A3,{99999,1999.99,999.99,399.99,299.99,229.99,149.99,99.99,49.99,11.99,2.5},-1))))
0

Author Closing Comment

Thanks for the quick response!
0

## Featured Post

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;…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…