Solved

Remove NA error

Posted on 2011-03-14
5
294 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
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…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

820 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