If formula help needed

marquiese

New Member
Joined
Apr 6, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I am trying to build a formula that will help with the following problem:


If A and B is Yes , then C = Mission Critical
If A is Yes and B is No, then C = Critical Impact Replacement
If A is No and B is Yes, then C = Scarce Non-Critical
If A is No and B is No, then C = Mass Market
I need to get this into one formulated cell. I have been struggling for several hours. I would love any advice. I have tried If and, If or, but I can only get the first problem solved, the rest error out.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Give this a try:

=IF(AND(A2="Yes",B2="Yes"),"Mission Critical",IF(AND(A2="Yes",B2="No"),"Critical Impact Replacement",IF(AND(A2="No",B2="Yes"),"Scarce Non-Critical","Mass Market")))
 
Upvote 0
An alternative to avoid nested IFS.

Excel Formula:
=SWITCH(A2&B2,"YesYes","Mission Critical",  "YesNo","Critical Impact Replacement", "NoYes","Scarce Non-Critical","NoNo","Mass Market")
 
Upvote 0
An alternative to avoid hard coding values:

1712450793648.png



Excel Formula:
=+INDEX($F$2:$H$4,XMATCH($A2,$F$2:$F$4),XMATCH($B2,$F$2:$H$2))
 
Upvote 0

Forum statistics

Threads
1,215,234
Messages
6,123,773
Members
449,123
Latest member
StorageQueen24

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