#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Suzanne
 
Posts: n/a
Default IN operator

I'm writting a nested if statement, referencing 3 cells. My condition is that
if any one of the 3 cells have a value < Y or < N/A, the resulting value
should be "N". If tried and(or( and every combination there of. Sql has an
IN operator but i don't believe Excel does. Any suggestions? Here's where
i'm at:
=IF(OR(P7<"Y",Q7<"Y",R7<"Y",P7<"N/A",Q7<"N/A",R7<"N/A"),"N","Y")

I'm looking to check if there's a value other than Y or N/A in ANY of the 3
cells.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default IN operator

maybe

=IF(COUNTIF(P7:R7,"Y")+COUNTIF(P7:R7,"N/A")<3,"N","Y")

"Suzanne" wrote:

I'm writting a nested if statement, referencing 3 cells. My condition is that
if any one of the 3 cells have a value < Y or < N/A, the resulting value
should be "N". If tried and(or( and every combination there of. Sql has an
IN operator but i don't believe Excel does. Any suggestions? Here's where
i'm at:
=IF(OR(P7<"Y",Q7<"Y",R7<"Y",P7<"N/A",Q7<"N/A",R7<"N/A"),"N","Y")

I'm looking to check if there's a value other than Y or N/A in ANY of the 3
cells.

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Suzanne
 
Posts: n/a
Default IN operator

Wonderful! Thanks Duke.

"Duke Carey" wrote:

maybe

=IF(COUNTIF(P7:R7,"Y")+COUNTIF(P7:R7,"N/A")<3,"N","Y")

"Suzanne" wrote:

I'm writting a nested if statement, referencing 3 cells. My condition is that
if any one of the 3 cells have a value < Y or < N/A, the resulting value
should be "N". If tried and(or( and every combination there of. Sql has an
IN operator but i don't believe Excel does. Any suggestions? Here's where
i'm at:
=IF(OR(P7<"Y",Q7<"Y",R7<"Y",P7<"N/A",Q7<"N/A",R7<"N/A"),"N","Y")

I'm looking to check if there's a value other than Y or N/A in ANY of the 3
cells.

Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Brian Taylor
 
Posts: n/a
Default IN operator

Try this:

=IF(OR(P7:R7="Y",P7:R7="N/A"),"Y","N")

This is an array formula and will need to be entered using cntrl +
shift + enter.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Suzanne
 
Posts: n/a
Default IN operator

Thank you! I'll give it a try.

"Brian Taylor" wrote:

Try this:

=IF(OR(P7:R7="Y",P7:R7="N/A"),"Y","N")

This is an array formula and will need to be entered using cntrl +
shift + enter.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Concatenate operator to overcome 7 nested IF's TG Excel Worksheet Functions 1 April 12th 06 10:40 PM
add one cell with no equals operator reggie26t Excel Discussion (Misc queries) 1 January 24th 06 02:57 PM
corrupt program or file? How to tell? Or is it operator error? [email protected] Excel Discussion (Misc queries) 6 January 17th 06 12:40 PM
SaveAS to a specific folder, with operator input of file name [email protected] Excel Discussion (Misc queries) 1 January 5th 06 03:19 PM
"OR" operator to evaluate multiple conditions anand Excel Worksheet Functions 1 May 23rd 05 08:49 PM


All times are GMT +1. The time now is 08:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"