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

look ups

ResolvedVersion 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:

The Easiest Way to See a Sum or Average in Excel 2010

Did you know the quickest and most simple way of working out the average or sum of a set of numbers?

Highlight numbers in cells or type some numbers in cells and then look at the status bar at the bottom of the window. Here you will see a display of the average of the numbers, as well as a count of the cells and the sum of these cells.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.