IF conditional Help

Bahaa

New Member
Joined
Oct 3, 2013
Messages
46
I have rows and columns and need to insert the below in concept in formula

Columns are Major Minor and Insignificant
Rows are LIkely possible and Unlikely

=IF(AND(OR(H5="Likely",H5="Possible", H5="Unlikely"),AND(J5="Insignificant","Minor","Major ")),"X","")

If columns with a certain selection were equal to likely or possible or unlikely and at the same time rows were equal to insignificant or minor or major then insert x

Thanks in advance for all replies
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
How about:

Book1
GHIJKL
4
5likelyMinorX
6
Sheet
Cell Formulas
RangeFormula
K5K5=IF(AND(OR(H5={"Likely","Possible","Unlikely"}),OR(J5={"Insignificant","Minor","Major "})),"X","")
 
Upvote 0
How about:

Book1
GHIJKL
4
5likelyMinorX
6
Sheet
Cell Formulas
RangeFormula
K5K5=IF(AND(OR(H5={"Likely","Possible","Unlikely"}),OR(J5={"Insignificant","Minor","Major "})),"X","")
Many thanks Dante
The case here is that i have other cells as well that match same criteria but i need to make sure that exact cells contain certain text
if H5 = Likely or possible or unlikely but J5 contains exactly insignificant
and If H5= Unlikely and J5 exactly contains Minor
and If H5 = Unlikely and J5 exactly contains Major

Hope u get my point
 
Upvote 0
I think I have not understood.
But according to your last request, you need this:

=IF(AND(OR(H5={"Likely","Possible","Unlikely"}),J5="Insignificant"),"X",IF(AND(H5="Unlikely",OR(J5={"Minor","Major"})),"X",""))

If not, you could write all the combinations you need to validate.
 
Upvote 0
What data do you have in H5 and what do you have in J5?
 
Upvote 0
You will want something like

=INDEX({"X","X","X";"X","X","";"X","",""},MATCH(H5,{"Likely","Possible","Unlikely"},0),MATCH(J5,{"Major","Minor","Insignificant"},0))

You may need to move the X's around slightly.
 
Upvote 0
You will want something like

=INDEX({"X","X","X";"X","X","";"X","",""},MATCH(H5,{"Likely","Possible","Unlikely"},0),MATCH(J5,{"Major","Minor","Insignificant"},0))

You may need to move the X's around slightly.
Thanks Jason
But did not understand how i should move x
I have in H5 Column a list and i should choose either LIkely or Unlikely or Possible and in J5 a list where i should choose either Minor or Major or Insignificant
I need to make sure that when i select H5 Likely or Unlikely or Possible and J5 at the same time should be insignificant , then X should be placed in the K cell
And if i select J5 Minor or Major and H5 at the same time should be Unlikely then X should appear in K cell

I have this formula bit no results =IF(AND(OR(H5={"Likely","Possible","Unlikely"}),J5="Insignificant"),"X",IF(AND(H5="Unlikely",OR(J5={"Minor","Major"})),"X",""))

Thanks
 
Upvote 0
You will want something like

=INDEX({"X","X","X";"X","X","";"X","",""},MATCH(H5,{"Likely","Possible","Unlikely"},0),MATCH(J5,{"Major","Minor","Insignificant"},0))

You may need to move the X's around slightly.
Capture.PNG
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

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