VLOOKUP, empty data cells and spreadsheet esthetics

G

Guest

My worksheet contains empty rows between groups of cells. How can I avoid the VLOOKUP function linked to another spreadsheet printing #N/A, DIV#/0 etc. if the reference cell in the worksheet is empty and the VLOOKUP formula-containing cells are filled by dragging? I've tried various tricks using IF without much success.

It's clear that if the reference cell is empty, nothing can be found in the Master spreadsheet, but that leads to a vixcious circle of #N/A's etc

z.entropic
 
P

Peo Sjoblom

One possible way

=IF(ISNA(MATCH(A1,'[other
spreadsheet.xls]MySheet'!$A$3:$A$15,0)),"",VLOOKUP(A1,'[other
spreadsheet.xls]MySheet'!$A$3:$B$15,2,0))

can't see how you can get div errors unless the lookup table itself contains
errors

--

Regards,

Peo Sjoblom

z.entropic said:
My worksheet contains empty rows between groups of cells. How can I avoid
the VLOOKUP function linked to another spreadsheet printing #N/A, DIV#/0
etc. if the reference cell in the worksheet is empty and the VLOOKUP
formula-containing cells are filled by dragging? I've tried various tricks
using IF without much success.
It's clear that if the reference cell is empty, nothing can be found in
the Master spreadsheet, but that leads to a vixcious circle of #N/A's etc.
 

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

Top