How do I make Cell B21 = I1 or I2 or I3 or I4 depending on conditions of other cells

legolas97

New Member
Joined
May 24, 2022
Messages
30
Office Version
  1. 365
Platform
  1. Windows
How do I make Cell B21 = I1 or I2 or I3 or I4 depending on conditions of other cells

If B11 and B15 = Yes, I need B23 to =I1

if B11 = Yes and B15 = No, I need B23 to =I2

If B11 = No and B15 = Yes, I need B23 to =I3

So on. If someone can give me an idea of how to code this, I can attempt to do so! Any help is much appreciated!


Debug 9.png
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Try this formula in cell B23:
Excel Formula:
=IF(AND(B11="Yes",B15="Yes"),I1,IF(AND(B11="Yes",B15="No"),I2,IF(AND(B11="No",B15="Yes"),I3,IF(AND(B11="No",B15="No"),I4,""))))
 
Upvote 0
Solution
Try this formula in cell B23:
Excel Formula:
=IF(AND(B11="Yes",B15="Yes"),I1,IF(AND(B11="Yes",B15="No"),I2,IF(AND(B11="No",B15="Yes"),I3,IF(AND(B11="No",B15="No"),I4,""))))
Thanks a bunch you genius! hehe
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

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