Solved

# Remove NA error

Posted on 2011-03-14
297 Views
Hi,

I have the below formula which returns some NA errors, can i add to it so if its an NA error it returns blank for that cell

=IF(E8="8455",VLOOKUP(Fiscal_Merit!G11,'8455'!E:F,2,0),IF(E8="8456",VLOOKUP(Fiscal_Merit!G11,'8456'!E:F,2,0),IF(E8="8457",VLOOKUP(Fiscal_Merit!G11,'8457'!E:F,2,0))))

Thanks
Seamus
0
Question by:Seamus2626
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 6

Accepted Solution

akajohn earned 167 total points
ID: 35129020
=IF(ISNA(IF(E8="8455",VLOOKUP(Fiscal_Merit!G11,'8455'!E:F,2,0),IF(E8="8456",VLOOKUP(Fiscal_Merit!G11,'8456'!E:F,2,0),IF(E8="8457",VLOOKUP(Fiscal_Merit!G11,'8457'!E:F,2,0))))),"",IF(E8="8455",VLOOKUP(Fiscal_Merit!G11,'8455'!E:F,2,0),IF(E8="8456",VLOOKUP(Fiscal_Merit!G11,'8456'!E:F,2,0),IF(E8="8457",VLOOKUP(Fiscal_Merit!G11,'8457'!E:F,2,0)))))

Should do it. Please post results here.
0

LVL 50

Assisted Solution

barry houdini earned 167 total points
ID: 35129060
Perhaps you could use INDIRECT to get the sheet name for a shorter formula....

=IF(ISNA(VLOOKUP(Fiscal_Merit!G11,INDIRECT("'"&Fiscal_Merit!G11&"'!E:F"),2,0)),"",VLOOKUP(Fiscal_Merit!G11,INDIRECT("'"&Fiscal_Merit!G11&"'!E:F"),2,0))

regards, barry
0

LVL 6

Assisted Solution

Russell Lucas earned 166 total points
ID: 35129063
You can wrap the whole thing in a IFERROR statment:-

=IFERROR(IF(E8="8455",VLOOKUP(Fiscal_Merit!G11,'8455'!E:F,2,0),IF(E8="8456",VLOOKUP(Fiscal_Merit!G11,'8456'!E:F,2,0),IF(E8="8457",VLOOKUP(Fiscal_Merit!G11,'8457'!E:F,2,0)))),"")

If the formula returns any errors it will give you a blank cell.
0

LVL 50

Expert Comment

ID: 35129077
IFERROR is available in Excel 2007 and later so if you have that version you can apply Funinig Stroll's suggestion to mine to get

=IFERROR(VLOOKUP(Fiscal_Merit!G11,INDIRECT("'"&Fiscal_Merit!G11&"'!E:F"),2,0)),"")

barry
0

Author Closing Comment

ID: 35129302
Cheers guys!
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
###### Suggested Courses
Course of the Month7 days, 4 hours left to enroll