Multiple if statement

kac1125

Board Regular
Joined
Jul 31, 2014
Messages
74
Office Version
  1. 365
Platform
  1. Windows
Hello,

Need help with the following If statement:
For Cell B1 if A1 = False and A2 = False then B1 =Yes Also, if A1 = True and A2 = False B1 = No finally if A1=True and A2 = True B1 = Yes please help me combine these into one if statement.

Thank you in advance!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
If cells A1 and A2 can only contain True of False, one way is:
Excel Formula:
=IF(AND(A1<>"",A1=A2),"Yes","No")
 
Upvote 0
If cells A1 and A2 can only contain True of False, one way is:
Excel Formula:
=IF(AND(A1<>"",A1=A2),"Yes","No")
Thank you so much! One more criteria I forgot to add was A1 = False and A2 = True I want B1 = Yes. How can I incorprate that into the above formula?
 
Upvote 0
So, basically the only time it should be "No" is if A1 is True and A2 is False?
Then try:
Excel Formula:
=IF(AND(A1="True",A2="False"),"No","Yes")

Note that if your values are Boolean values instead of String values, you may need to use:
Excel Formula:
=IF(AND(A1=TRUE,A2=FALSE),"No","Yes")
 
Upvote 0

Forum statistics

Threads
1,215,454
Messages
6,124,932
Members
449,195
Latest member
Stevenciu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top