Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I change a default value associated with a VLookup?

Status
Not open for further replies.

mlrmlr

Technical User
Mar 17, 2006
168
US
Hello,

How can I change a preformatted value in an Excel spreadsheet from "#N/A" to "n/a"?

I inherited a spreadsheet that I have to populated daily and my results are pulling from this lookup [=VLOOKUP(B8,Order!$A$2:Order!AI17:BP243,34,FALSE)]. If the value is in the lookup sheet then it is fine. If the value is not in the lookup sheet it fills the cells with "#N/A". I would like to change the default #N/A to n/a.

Any help is appreciated.

Thanks.

 
A shorter example:
=IF(ISERROR(VLOOKUP(A1,G1:H3,2,FALSE)),"n/a",VLOOKUP(A1,G1:H3,2,FALSE))
 
Hi mlrmlr:

In addition to the suggestion by fneily, also ...
Code:
=IF(ISNA(VLOOKUP(formula)),"n/a",VLOOKUP(formula))

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top