A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

vlookup and if



 
 
Thread Tools Display Modes
  #1  
Old July 30th, 2009, 03:35 PM posted to microsoft.public.access.gettingstarted
Natalie
external usenet poster
 
Posts: 212
Default vlookup and if

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
  #2  
Old July 30th, 2009, 04:59 PM posted to microsoft.public.access.gettingstarted
John Spencer
external usenet poster
 
Posts: 7,815
Default vlookup and if

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

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

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

Natalie wrote:
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

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:21 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.