Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default 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



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default 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






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default 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






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
lookup with multiple condition, but one condition to satisfy is en Eddy Stan Excel Worksheet Functions 2 October 27th 07 02:06 PM
Combine an OR condition with an AND condition Will Excel Discussion (Misc queries) 1 April 6th 07 03:52 PM
If condition dinadvani Excel Discussion (Misc queries) 2 June 14th 06 11:25 AM
Condition 1 overules condition 2? Bultgren Excel Worksheet Functions 2 January 20th 06 12:29 PM
if condition, do something, do nothing rtbrd Excel Discussion (Misc queries) 5 February 17th 05 04:39 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"