Solved

Remove NA error

Posted on 2011-03-14
5
292 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
5 Comments
 
LVL 6

Accepted Solution

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

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

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

919 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now