Why does this formula not work?

  • Thread starter Thread starter DaveMoore
  • Start date Start date
D

DaveMoore

....and how should it be written?

=IF($P30="","Y",IF(AND($W30<>"",VLOOKUP($W30,SAGE3,1,FALSE)=
$W30),"Y",""))

If the value of cell W30 is also present in the table SAGE3 there is
no problem. The error occurs if it is not.
I have tried changing FALSE to TRUE but this does not work either.
The table SAGE£ has been sorted by the first field.

Can anyone help?

Dave Moore
 
Try this revision:
=IF($P30="","Y",IF(AND($W30<>"",ISNUMBER(MATCH($W30,SAGE3,0))),"Y",""))
 
You had a prob earlier because of this part:

VLOOKUP($W30,SAGE3,1,FALSE)=$W30
which returns #N/A if W30 is blank or contained a value not found in the
lookup col

The #N/A is not resolvable by the AND

---
 

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