look ups

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Look ups

Look ups

resolvedResolved · High Priority · Version 2003

Anna has attended:
Excel Advanced course

Look ups

While using vlookup I got an error message #N/A when a sheet does not have any results for searched id. Could it be replaced with 0 instead of NA?
thanks
Anna

RE: Look ups

Hi Anna,

Thank you for your question and welcome to the forum.

You need to use a Nested function similar to the one below:

=if(iserror(vlookup(b2,e5:H15,3,false)),0,vlookup(b2,e5:H15,3,false))

The iserror function handles a host of error messages which include #N/A.

So the formula is saying, if there is an error from the vlookup formula, place a zero otherwise put the result of the vlookup formula.

I hope this answers your question.

Regards

Simon

Thu 17 Jun 2010: Automatically marked as resolved.


 

Excel tip:

Using Alt in Save Dialog Box

When you are saving (or opening) a file, try these;
(Note the numbers are on the keyboard not the numeric keypad)
1. Go to previous folder Alt+1
2. Go up one folder level Alt+2
3. Search the Web Alt+3
4. Delete selected file Alt+4 or Delete
5. Create a new folder Alt+5
6. Cycle through all views Alt+6 repeatedly
7. Display the Tools menu Alt+7

View all Excel hints and tips


Server loaded in 0.08 secs.