![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 5
|
I've seen it before
How do I not return a #NA in a vlookup statement? Please direct me to the archived answer |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
Would take eons before I find one of the many VLOOKUP formulas, whence... If you need an exact match, use: =IF(COUNTIF(A1:A7,lookup-value),VLOOKUP(lookup-value,A1:D7,2,0),0) Otherwise use: =IF(ISNUMBER(MATCH(lookup-value,A1:A7)),VLOOKUP(lookup-value,A1:D7,2),0) Both return 0 instead of #N/A. A1:D7 is the lookup-table, whose first column is A1:A7. Aladin |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Victoria, Australia
Posts: 761
|
=IF(ISNA(VLOOKUP(BLAH BLAH BLAH)"",VLOOKUP(BLAH BLAH BLAH))
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Posts: 202
|
if it's always the same value (eg. "0") that causes the #N/A could you add it to your lookup table? an example of what i mean is at http://www.mrexcel.com/wwwboard/messages/21090.html and responses
[ This Message was edited by: anno on 2002-02-25 15:08 ] |
|
|
|
|
|
#5 |
|
New Member
Join Date: Jun 2002
Posts: 4
|
=IF(ISERROR(VLOOKUP(a1,$b$7:$C$12,2,0)=TRUE),"no error",VLOOKUP(a1,$b$7:$C$12,2,0))
Try this above. Best of luck |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|