ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If/Or Formula Functions (https://www.excelbanter.com/excel-discussion-misc-queries/112610-if-formula-functions.html)

Dawnvz32

If/Or Formula Functions
 
I am trying to create a formula from a spreadsheet. I need the formula to
identify if column a and b are both yes OR if column c and d both equal yes
then the formula should equal true. A & B have to both = yes or C & D both
have to equal yes, so if A & B = Yes, Yes and C & D = Yes, No then that is a
true statement because I only need yes yes to appear once for a true value.

Thanks,

Kevin B

If/Or Formula Functions
 
The following formula should do the trick:

=IF(OR(AND(A1="Yes",B1="Yes"),AND(C1="Yes",D1="Yes ")),TRUE,FALSE)
--
Kevin Backmann


"Dawnvz32" wrote:

I am trying to create a formula from a spreadsheet. I need the formula to
identify if column a and b are both yes OR if column c and d both equal yes
then the formula should equal true. A & B have to both = yes or C & D both
have to equal yes, so if A & B = Yes, Yes and C & D = Yes, No then that is a
true statement because I only need yes yes to appear once for a true value.

Thanks,



All times are GMT +1. The time now is 02:42 PM.

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