Omitting #N/A

  • Thread starter Thread starter Todd
  • Start date Start date
T

Todd

I have a Vlookup formula that looks up a date on another
worksheet if the date is there. The date may or may not
be entered each time therefore the #N/A is returned as the
value when the date is not there. The cell with the
Vlookup formula is linked to another worksheet with a
basic sum function which will not work because of the #N/A
that is on the Vlookup spreadsheet. Is there anyway to
keep the #N/A from populating that cell with the Vlookup
formula? Thanks for the help.

Todd
 
Yes, use the ISERROR() function.

e.g. IF(ISERROR(VLOOKUP(.....)=TRUE),0,VLOOKUP(....)).
 
You could try this as a format, change the cell references obviously. Change
"Not Found" to 0 or "" or whatever,

Basically if the the VLOOKUP returns #N/A then the 'Not found' is returned

=IF(ISNA(VLOOKUP(C1,A1:B13,2,FALSE)),"Not Found",VLOOKUP(C1,A1:B13,2,FALSE))

Watch for text wrap!

Regards Alan.
 
You could either use sumif instead on the other worksheet

=SUMIF(Sum_Range,"<>#N/A")

will disregards the #N/A, I would probably use that myself since I
consider the errors good info. If not use something like

=IF(A1="",0,VLOOKUP(A1,.........))
 
What I usually do is, I'll copy the cell and paste value
over it to remove the vlookup formula. Then I'll use
Find/Replace (Ctrl+H) to find #N/A and replace with null
value. That is, leave the Replace With field blank.
Sounds tedious but once you get the hang of it, it's
peanuts.

Is there any better solutions around?
 

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

Similar Threads

Return 0 instead of #n/a 1
Set add function ignore #N/A 1
Remove #n/a in vlookup to sum results 6
Remove #N/A Error 3
VLOOKUP returning #N/A result 2
#N/A 5
running sum needed with #N/A in array 3
Formulas #N/A 4

Back
Top