Embedded If, AND & OR confusion

iluvsafc

New Member
Joined
Jun 15, 2009
Messages
26
Hi all. i'm possible over thinking this one but i've been trying to get my head round this for ages and thought i'd consult the experts!

1616422474836.png


In cell BZ i'm looking for a formula that would output a sum of CC & CF if CA,CB,CD & CE all equal "Yes". But it would also need to only equal 1 month if only that month had a "Yes" in both e.g. if CA & CB = YES then output CC but if CA & CB and also CD & CE = "Yes" then add CC & CF.

At the moment i've came up with the following but it still adds up CC&CF even if there is a no in come of the cellls.

=IF(IF(AND(CA8="Yes",CB8="YES"),CC8)*OR(CA8="Yes",CB8="YES",CD8="Yes",CE8="Yes"),CC8+CF8)

Any help would save my sanity and would of course be greatly appreciated!

Regards,
Lee
 

Attachments

  • 1616422443269.png
    1616422443269.png
    6.4 KB · Views: 2

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
How about
Excel Formula:
=IF(AND(CA8="Yes",CB8="YES"),CC8,0)+IF(AND(CD8="Yes",CE8="Yes"),CF8,0)
 
Upvote 0
How about
Excel Formula:
=IF(AND(CA8="Yes",CB8="YES"),CC8,0)+IF(AND(CD8="Yes",CE8="Yes"),CF8,0)
Not quite right, try this:

Excel Formula:
=IF(AND(CA8="Yes",CB8="YES"),CC8+IF(AND(CD8="Yes",CE8="Yes"),CF8,0),0)
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,733
Members
448,987
Latest member
marion_davis

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