match function inside if function

  • Thread starter Thread starter gnotnoel
  • Start date Start date
G

gnotnoel

I'm trying to write a match function inside an if function.
Basically I have two codes:

=IF(MATCH( 'Asset Tagging'!B6, 'Formula Data'!C191:C839, 0), "No", "Yes")

Which displays a No whenever a match is found between the two databases.
I'm not sure how to make it say "Yes" whenever it does not match. Excel
automatically assigns #N/A to a non-match

So, I made this function
=IF(ISNA('Formula Data'!D2),1,0)

to display 1(yes) whenever the cell's value is #N/A and 0(no) for when the
value is not #N/A.

The only way I was able to make this work was making another sheet with an
array of results from the first function and an array with results from the
second function.

Is there anyway I can combine these two functions with VBA or change the
default of the first function to display "Yes" instead of "#N/A"?

Thanks for any advice
Noel
 
=IF(ISNA(MATCH( 'Asset Tagging'!B6, 'Formula Data'!C191:C839, 0)), "No",
"Yes")

HTH
 
Thanks for the quick response.
I tried the function and various versions of this function already.
It's always displaying a No on the cell, even though the assets do not match.

Am I doing something wrong?

Noel

Ardus said:
=IF(ISNA(MATCH( 'Asset Tagging'!B6, 'Formula Data'!C191:C839, 0)), "No",
"Yes")

HTH
--
AP
I'm trying to write a match function inside an if function.
Basically I have two codes:
[quoted text clipped - 21 lines]
Thanks for any advice
Noel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top