ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If condition not met get #N/A (https://www.excelbanter.com/excel-discussion-misc-queries/226546-if-condition-not-met-get-n.html)

Cefoxtrot

If condition not met get #N/A
 
Using the VLOOKUP function to merge data from two worksheets:
=vlookup(A2,sheet1!$A$2:$M$3000,13,FALSE)

It works fine, except that when there is no match, I get a #N/A on each as
the result. Is there a way to prevent the '#N/A' from displaying? Or replace
it blanks?

Thanks!
Cefoxtrot

Jacob Skaria

If condition not met get #N/A
 
Try.

=IF(ISNA(<formula)=TRUE,"",<formula)
--
If this post helps click Yes
---------------
Jacob Skaria


"Cefoxtrot" wrote:

Using the VLOOKUP function to merge data from two worksheets:
=vlookup(A2,sheet1!$A$2:$M$3000,13,FALSE)

It works fine, except that when there is no match, I get a #N/A on each as
the result. Is there a way to prevent the '#N/A' from displaying? Or replace
it blanks?

Thanks!
Cefoxtrot


Cefoxtrot

If condition not met get #N/A
 
That worked perfectly. Thank you so much!
Cefoxtrot


"Jacob Skaria" wrote:

Try.

=IF(ISNA(<formula)=TRUE,"",<formula)
--
If this post helps click Yes
---------------
Jacob Skaria


"Cefoxtrot" wrote:

Using the VLOOKUP function to merge data from two worksheets:
=vlookup(A2,sheet1!$A$2:$M$3000,13,FALSE)

It works fine, except that when there is no match, I get a #N/A on each as
the result. Is there a way to prevent the '#N/A' from displaying? Or replace
it blanks?

Thanks!
Cefoxtrot


T. Valko

If condition not met get #N/A
 
If you're using Excel 2007:

=IFERROR(VLOOKUP(A2,Sheet1!$A$2:$M$3000,13,0),"")

This works in any version:

=IF(COUNTIF(Sheet1$A$2:$A$3000,A2),VLOOKUP(A2,Shee t1!$A$2:$M$3000,13,0),"")


--
Biff
Microsoft Excel MVP


"Cefoxtrot" wrote in message
...
Using the VLOOKUP function to merge data from two worksheets:
=vlookup(A2,sheet1!$A$2:$M$3000,13,FALSE)

It works fine, except that when there is no match, I get a #N/A on each as
the result. Is there a way to prevent the '#N/A' from displaying? Or
replace
it blanks?

Thanks!
Cefoxtrot




Cefoxtrot

If condition not met get #N/A
 
Yes, this works too in Excel 2007.

Thanks a lot!
Cefoxtrot


"T. Valko" wrote:

If you're using Excel 2007:

=IFERROR(VLOOKUP(A2,Sheet1!$A$2:$M$3000,13,0),"")

This works in any version:

=IF(COUNTIF(Sheet1$A$2:$A$3000,A2),VLOOKUP(A2,Shee t1!$A$2:$M$3000,13,0),"")


--
Biff
Microsoft Excel MVP


"Cefoxtrot" wrote in message
...
Using the VLOOKUP function to merge data from two worksheets:
=vlookup(A2,sheet1!$A$2:$M$3000,13,FALSE)

It works fine, except that when there is no match, I get a #N/A on each as
the result. Is there a way to prevent the '#N/A' from displaying? Or
replace
it blanks?

Thanks!
Cefoxtrot





T. Valko

If condition not met get #N/A
 
You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Cefoxtrot" wrote in message
...
Yes, this works too in Excel 2007.

Thanks a lot!
Cefoxtrot


"T. Valko" wrote:

If you're using Excel 2007:

=IFERROR(VLOOKUP(A2,Sheet1!$A$2:$M$3000,13,0),"")

This works in any version:

=IF(COUNTIF(Sheet1$A$2:$A$3000,A2),VLOOKUP(A2,Shee t1!$A$2:$M$3000,13,0),"")


--
Biff
Microsoft Excel MVP


"Cefoxtrot" wrote in message
...
Using the VLOOKUP function to merge data from two worksheets:
=vlookup(A2,sheet1!$A$2:$M$3000,13,FALSE)

It works fine, except that when there is no match, I get a #N/A on each
as
the result. Is there a way to prevent the '#N/A' from displaying? Or
replace
it blanks?

Thanks!
Cefoxtrot








All times are GMT +1. The time now is 12:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com