vlookup and if

  • Thread starter Thread starter Natalie
  • Start date Start date
N

Natalie

Hi,

I want to put in a formula which says if the VLOOKUP returns a value then
put it in, but if it returns #N/A then put "CLOSED" instead.

Is this possible? I'm sure I've done this before.

Thanks

Natalie
 
Probably not in Access, since VLookup is an Excel function.

In Access you would accomplish this using an expression like:
NZ(DLookup("FieldName","TableOrQueryName","optional_criteria_string"),"Closed")

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
 

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

Similar Threads

IF and Vlookup 2
Excel IF statement with vlookup 2
Combining IF Statement and Vlookup 0
VLOOKUP 2
Vlookup result in a message box 10
Multiple IF Statement 2
Dynamic col_index_num in VLOOKUP? 5
Can't Explain N/A in Vlookup 2

Back
Top