• 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.

Number searching using MATCH funtion?

hcousino

New Member
Hello all,

I am currently trying to search an array of random numbers to verify that a specific number is present. When I use the match function it only seems to work with a columb of numbers and not a whole array. Here is an example of what I am trying to do but its not working.... Since 1 is present in the array I would expect the function to return Yes but insteat is returns NA.
 

Attachments

  • image.png
    image.png
    32 KB · Views: 10
Here is the file its just an example to demonstrate what I am trying to do. Basically I am expecting the response in cell B1 to be yes because 1 is present in the array of numbers. Thanks!
 

Attachments

  • example.xlsx
    18.7 KB · Views: 7
ok you can use this
Code:
=IFERROR(IF(VLOOKUP($A1,$D$7:$G$10,1,0)=$A1,"Yes"),"No")
Match , I think can only work with vertical data, not horizontal in your case
 

Attachments

  • example1.xlsx
    37.4 KB · Views: 5
Last edited:
hcousino
You could reread Match-function's syntax eg:
Especially those examples.
... and if You have 365-version, then there are more to read.
 
Back
Top