IF Statement Formula Assistance

bdav1216

New Member
Joined
Mar 19, 2016
Messages
37
Office Version
  1. 2016
Platform
  1. Windows
How would I write this?

When Column A has the same value.:

IF Column M OR Column P = "YES" AND Column N, O, Q, R AND S are = "N" or No", output "SS" in Column T
Else
IF Column M or Column P = "No" or "N" AND any of Column N, O, Q, R AND S are = "YES", output "No SS" in Column T
Else
If Column M OR Column P = "YES" AND any of Column N, O, Q R AND S are = "YES", output "Hybrid" in Column T
Else
IF all Columns (M, N, O, P, Q, R, S) are = "N" or "No", output "None"
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Use this Formula At T1 and drag it down:
Excel Formula:
=IF(AND(OR(M1="Yes",P1="Yes"),OR(AND(N1="No",O1="No",Q1="No",R1="No",S1="No"),AND(N1="N",O1="N",Q1="N",R1="N",S1="N"))),"SS",IF(AND(OR(M1="No",P1="No",M1="N",P1="N"),AND(N1="Yes",O1="Yes",Q1="Yes",R1="Yes",S1="Yes")),"NO SS",IF(AND(OR(M1="Yes",P1="Yes"),AND(N1="Yes",O1="Yes",Q1="Yes",R1="Yes",S1="Yes")),"Hybrid",IF(AND(OR(M1="No",P1="No",M1="N",P1="N"),OR(AND(N1="No",O1="No",Q1="No",R1="No",S1="No"),AND(N1="N",O1="N",Q1="N",R1="N",S1="N"))),"None",""))))
 
Upvote 0
Hello,

Most of that examples are not outputting a value so wanted to provide a few examples:

The 'SS' and 'NONE' value appears to be outputting, but am not getting values for 'No SS' or 'Hybrid'

COLUMN MCOLUMN NCOLUMN OCOLUMN PCOLUMN QCOLUMN RCOLUMN SCURRENT RESULTEXPECTED RESULT
YESNONOYESNONONOSSSS
NO YESNONNNN___NO SS
NONONONONONOYES___NO SS
YESNONONONOYESNO___HYBRID
NNNNNNNNONENONE
NONONONONONOYES___NO SS
NONONOYESNONONOSSSS
YESNONOYESNONONOSSSS
NONONOYESNOYESNO___HYBRID
NOYESNONNNN___NO SS
YESNONONONOYESNO___HYBRID
 
Last edited:
Upvote 0
Change formula to this (I don't noticed "Any"):
Excel Formula:
=IF(AND(OR(M1="Yes",P1="Yes"),OR(AND(N1="No",O1="No",Q1="No",R1="No",S1="No"),AND(N1="N",O1="N",Q1="N",R1="N",S1="N"))),"SS",IF(AND(OR(M1="No",P1="No",M1="N",P1="N"),OR(N1="Yes",O1="Yes",Q1="Yes",R1="Yes",S1="Yes")),"NO SS",IF(AND(OR(M1="Yes",P1="Yes"),OR(N1="Yes",O1="Yes",Q1="Yes",R1="Yes",S1="Yes")),"Hybrid",IF(AND(OR(M1="No",P1="No",M1="N",P1="N"),OR(AND(N1="No",O1="No",Q1="No",R1="No",S1="No"),AND(N1="N",O1="N",Q1="N",R1="N",S1="N"))),"None","")))
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,038
Members
448,940
Latest member
mdusw

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