ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Is it possible to use multiple IF and OR (https://www.excelbanter.com/excel-discussion-misc-queries/51621-possible-use-multiple-if.html)

Lynn Bales

Is it possible to use multiple IF and OR
 
SPS looks like

ColA ColB ColC ColD ColE ColF
N N N N N N
N N N Y
Y N N
N N

I need to create a new column that says if there is only N's OR blanks in
any row from Col A-F, put a Y, so in the example above ColG would have a Y in
rows 1 and 4.

Is this doable with IF/OR/AND?

Thanks
Lynn

Dave O

Is it possible to use multiple IF and OR
 
Hi, Lynn-
You could count the Ns and blanks; the opposite way to think of that
same scenario is the absence of Ys. If you like that logic, you can
use the formula
=IF(COUNTIF(A1:F1,"Y")=0,"Y","")
.... to put a Y in column G.


Lynn Bales

Is it possible to use multiple IF and OR
 
Thanks Dave that did the trick alright. I never would have thought of it
backwards like that!

"Dave O" wrote:

Hi, Lynn-
You could count the Ns and blanks; the opposite way to think of that
same scenario is the absence of Ys. If you like that logic, you can
use the formula
=IF(COUNTIF(A1:F1,"Y")=0,"Y","")
.... to put a Y in column G.




All times are GMT +1. The time now is 06:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com