?
Solved

Remove NA error

Posted on 2011-03-14
5
Medium Priority
?
302 Views
Last Modified: 2012-06-21
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
Comment
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
  • Learn & ask questions
5 Comments
 
LVL 6

Accepted Solution

by:
akajohn earned 668 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

by:barry houdini
barry houdini earned 668 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

by:Russell Lucas
Russell Lucas earned 664 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

by:barry houdini
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

by:Seamus2626
ID: 35129302
Cheers guys!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 article describes a serious pitfall that can happen when deleting shapes using VBA.
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…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question