Excel if or statements

domobrien

New Member
Joined
Feb 23, 2010
Messages
7
I've got 3 IF statements that I'm trying to combine:
=IF(AND(D57="Yes",D58="No"),F55,0)

=IF(AND(D57="No",D58="Yes"),G55,0)

=IF(AND(D57="Yes",D58="Yes"),H55,0)

I can't work out the OR syntax. any help appreciated!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Try this

=IF(CONCATENATE(D57,D58)="YESNO",F55,0)+IF(CONCATENATE(D57,D58)="NOYES",G55,0)+IF(CONCATENATE(D57,D58)="YESYES",H55,0)

Regards
Joe
 
Upvote 0
What do you do for "No" "No" ??
Code:
=IF(D57="Yes",IF(D58="Yes",H55,F55),IF(D57="Yes",G55,"N/A"))

lenze
 
Upvote 0
NO NO would result in 0

But if you wanted it to show N/A


=IF(CONCATENATE(D57,D58)="NONO","N/A",(IF(CONCATENATE(D57,D58)="YESNO",F55,0)+IF(CONCATENATE(D57,D58)="NOYES",G55,0)+IF(CONCATENATE(D57,D58)="YESYES",H55,0)))

Joe
 
Upvote 0

Forum statistics

Threads
1,215,161
Messages
6,123,371
Members
449,097
Latest member
thnirmitha

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