2 IF statements in the same cell

pink

New Member
Joined
Jan 18, 2005
Messages
10
'IF(AND(OR(L9=1,L9=2),OR(M9=3,M9=4)),Sheet1!$D$32, IF(AND(OR(L9=3,L9=4),OR(M9=1,M9=2)),Sheet1!$D$33, IF(OR(M9=3,M9=4),Sheet1!$D$33,0)))'

This is my original formula, it works, but I also need to include another completely unrelated IF statement that says

'IF(OR(M9=3,M9=4), Sheet1!$D$32,0)'

This formula also works, but I need them to work together and independantly, in the same cell. If the second statement is true, I still need it to check if the first one is true, and to add the values together.

Is there any way to do that?

Thanks.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
It sounds like you just want to add them:

=IF(AND(OR(L9=1,L9=2),OR(M9=3,M9=4)),Sheet1!$D$32, IF(AND(OR(L9=3,L9=4),OR(M9=1,M9=2)),Sheet1!$D$33, IF(OR(M9=3,M9=4),Sheet1!$D$33,0)))+IF(OR(M9=3,M9=4), Sheet1!$D$32,0)

Is that what you want?
 
Upvote 0

Forum statistics

Threads
1,215,593
Messages
6,125,715
Members
449,254
Latest member
Eva146

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