• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

If + Array

PaulF

Active Member
Hello all !!

I'm trying to accomplish this:

=IF(A2={3,4,8,9},"Do True Stuff","Do False Stuff")

The 1st number will match, but not the rest of the array... *scratcheshead*

^^ I've tied various ways of doing this... Is this possible and I'm just missing the proper syntax or am I barking up the wrong tree ??

Paul
 
{=IF(A2={3,4,8,9},TRUE,FALSE)} See attached... Still returning false...
 

Attachments

  • If_Array.xlsx
    8.1 KB · Views: 9
You're doing it right -- -- and your formula is returning the right answers:

{FALSE,TRUE,FALSE,FALSE}

But only the first result displays in the cell where you type the formula.

What is the desired/expected output?
 
My objective is A2 = Any of the numbers in the ARRAY...
Sorry I did not explain that...
 
Ahh, I see. I misunderstood the requirement.

This will return TRUE or False
=IFERROR(MATCH(A2,{3,4,8,9},0)>0,FALSE)

Or if you want to do different operation for TRUE, FALSE
=IF(ISERROR(MATCH(A2,{3,4,8,9},0)>0),FALSE,TRUE)
 
{=IF(--IFERROR(MATCH(VALUE(RIGHT([@[UNIX Flavor]],1)),{3,4,8,9},0)>0,FALSE)=1,"EOL",IF(OR([@[Wintel_UNIX]]="WINTEL",[@[UNIX Flavor]]="EOL"),"",IF(AND(VALUE(RIGHT([@[UNIX Flavor]],1))=6,VALUE(RIGHT([@[Combined UNIX CMDB+Manual]],1))>5),"Current",IF(AND(VALUE(RIGHT([@[UNIX Flavor]],1))=5,VALUE(RIGHT([@[Combined UNIX CMDB+Manual]],2))>10),"Current",IF(OR([@[Combined UNIX CMDB+Manual]]="2014-12",[@[Combined UNIX CMDB+Manual]]="2015-06"),"Current","Need Patching")))))}

All is good now :p Filled the column and for thousands of UNIX sevvers (RedHat 3/4/5/6, Solarix 8/9/10/11, HP-UX, and AIX) with various patch dates I can see now what needs patching, what is current, and what is end of Life... Thank you for the assistance...
 
Back
Top