ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Simple If Function Question (https://www.excelbanter.com/excel-programming/389975-simple-if-function-question.html)

NewUser22

Simple If Function Question
 
I have a working If function that says, IF(AB, A-C+D, E), and I want
to add an additional intruction to this that states that IF(B=0, E, 0)
as opposed to it defaulting to the "A-C+D" calculation. How can I add
this additional funtion to the current function. I think it has
something to do with an "AND" or an "OR". Any help will be appreciated.


Mike

Simple If Function Question
 
not sure what you need but try this
=IF(AND(A1B1,B1=0),E1,0)

"NewUser22" wrote:

I have a working If function that says, IF(AB, A-C+D, E), and I want
to add an additional intruction to this that states that IF(B=0, E, 0)
as opposed to it defaulting to the "A-C+D" calculation. How can I add
this additional funtion to the current function. I think it has
something to do with an "AND" or an "OR". Any help will be appreciated.



Vergel Adriano

Simple If Function Question
 
NewUser22,

try

=IF(AND(A1B1,B10), A1-C1+D1,E1)


--
Hope that helps.

Vergel Adriano


"NewUser22" wrote:

I have a working If function that says, IF(AB, A-C+D, E), and I want
to add an additional intruction to this that states that IF(B=0, E, 0)
as opposed to it defaulting to the "A-C+D" calculation. How can I add
this additional funtion to the current function. I think it has
something to do with an "AND" or an "OR". Any help will be appreciated.




All times are GMT +1. The time now is 07:18 PM.

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