Change #N/A to blank

  • Thread starter Thread starter Eileen
  • Start date Start date
E

Eileen

Is there a quick formular that I can change the #n/a (the
result of vlookup) into blank, so I can do the
calculations?

Thanks!
 
Try this ...

=if(iserror(your_vlookup_formula),"",(your_vlookup_formula))
 
You could use an IF statement combined with ISERROR...
ie. say your formula currently looks like this:
=VLOOKUP(1,A2:C10,2)

Change it to:
=IF(ISERROR(VLOOKUP(1,A2:C10,2)),"",VLOOKUP(1,A2:C10,2))
 
An alternative, although error trapping is a good idea:

Leave the #N/A and use an ISNUMBER call in your
calculations:

=SUM(IF(ISNUMBER(A1:A100),A1:A100))

Entered as an array: CTRL,SHIFT,ENTER

Biff
 
If efficiency (speed) is of interest to you, try to use the 2-cell approach:

Y2:

=VLOOKUP(...,0)

X2:

=IF(ISNA(Y2),"",Y2)
 

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

Back
Top