ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Trouble constructing IF statement (https://www.excelbanter.com/excel-worksheet-functions/219904-trouble-constructing-if-statement.html)

Joe[_13_]

Trouble constructing IF statement
 
I am trying to display one of two results in a cell depending on the results
of several True / False tests.

If both "A AND B" are true or if "C" is true I want to display the results
of the same formula. If neither "A AND B" or "C" are true I want the cell to
be blank.

I am getting an error message on the "logical test" of my first IF statement
which currenly looks like

=IF(((D1415) AND (G14="Y")),((I14*N14)/12),IF(C14.8,((I14*N14)/12),""))

Any suggestion on correcting the error in the equation or offering a
different way to successfully achieve the results I am looking for will be
appreciated.
--
Joe Schwartz

T. Valko

Trouble constructing IF statement
 
Try it like this:

=IF(OR(AND(D1415,G14="Y"),C140.8),I14*N14/12,"")

--
Biff
Microsoft Excel MVP


"Joe" (donotspam) wrote in message
...
I am trying to display one of two results in a cell depending on the
results
of several True / False tests.

If both "A AND B" are true or if "C" is true I want to display the results
of the same formula. If neither "A AND B" or "C" are true I want the cell
to
be blank.

I am getting an error message on the "logical test" of my first IF
statement
which currenly looks like

=IF(((D1415) AND (G14="Y")),((I14*N14)/12),IF(C14.8,((I14*N14)/12),""))

Any suggestion on correcting the error in the equation or offering a
different way to successfully achieve the results I am looking for will be
appreciated.
--
Joe Schwartz





All times are GMT +1. The time now is 09:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com