Multiple condtion formula

SelinaR

Board Regular
Joined
Feb 2, 2012
Messages
65
Office Version
  1. 2021
Platform
  1. Windows
  2. Mobile
  3. Web
Hi all,
I've read multiple previous threads and after much experimenting, still can't find what I need.
I need an answer in Heading 5 (E3) for if the following conditions are met in column Q, R & S (Heading 17 to 19)

*if Q, R, and S all have N/A or Y to return E3 a Y (yes) answer
*if Q, R, and S have N in any of the three columns --> then return E5 as N (no)

1604284742183.png


thanks for your help.
 

Attachments

  • Formula.JPG
    Formula.JPG
    72.4 KB · Views: 10

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
If that is a formal Excel table then try this in E3 (adjusting for the correct table name & headings)
Excel Formula:
=IF(COUNTIF(Table4[@[Heading 17]:[Heading 19]],"N"),"N","Y")

Otherwise try
Excel Formula:
=IF(COUNTIF(Q3:S3,"N"),"N","Y")
 
Upvote 0
I have a question:in the row 4,two conditions are satisfied at the same time,that is, N (condition 2) and Y or N / A (condition 1), which condition has higher priority
 
Upvote 0
I have a question:in the row 4,two conditions are satisfied at the same time,that is, N (condition 2) and Y or N / A (condition 1), which condition has higher priority
My interpretation is that condition 1 is not met there
*if Q, R, and S all have N/A or Y to return E3 a Y (yes) answer
 
Upvote 0
Hiya - thanks for getting back to me so quickly.
For Row 4 - as any of the 3 have an N the return answer would be N

row 3, 4, and 7 all have an N so answer N
row 5 & 6 don't have a "no" only Y & N/A - therefore return answer is Y
The overriding factor is any N returns an N
the Y and N/A are equal and should return Y

Hopes that helps
 
Upvote 0
Hiya
This one is the WINNER - AMAZING (y);)

Thanks so much.
 
Upvote 0
Not sure which one, but so long as one of them is it is all good! Thanks for the follow-up. :)
 
Upvote 0
sorry - the paste didn't work --> this one =IF(COUNTIF(Q3:S3,"N"),"N","Y")

:cool:
 
Upvote 0
Thanks - it was just for interest (about whether you had a formal Table or not). (y)
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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