Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default Vlookup = #n/a to be ""

I'm using this formula, which is mostly working for what I need.

=VLOOKUP(B57,'data'!B$3:E$52,1,FALSE)

Basically, if it finds what's in B57 on the data!b3:E52 table, it's
producing the name match, which is what I need. However, if there's no match,
it's producing the #N/A. How could I get the #N/A to not show ?

Thanks,

Steve
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Vlookup = #n/a to be ""

=IF(ISNA(VLOOKUP(B57,'data'!B$3:E$52,1,FALSE),"",V LOOKUP(B57,'data'!B$3:E$52,1,FALSE))

Or, if you have Excel 2007:

=IFERROR(VLOOKUP(B57,'data'!B$3:E$52,1,FALSE),"")

--
Kind regards,

Niek Otten
Microsoft MVP - Excel



"Steve" wrote in message ...
| I'm using this formula, which is mostly working for what I need.
|
| =VLOOKUP(B57,'data'!B$3:E$52,1,FALSE)
|
| Basically, if it finds what's in B57 on the data!b3:E52 table, it's
| producing the name match, which is what I need. However, if there's no match,
| it's producing the #N/A. How could I get the #N/A to not show ?
|
| Thanks,
|
| Steve


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Vlookup = #n/a to be ""

Maybe this suffices:
=IF(COUNTIF(data!B$3:B$52,B57),B57,"")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Steve" wrote:
I'm using this formula, which is mostly working for what I need.

=VLOOKUP(B57,'data'!B$3:E$52,1,FALSE)

Basically, if it finds what's in B57 on the data!b3:E52 table, it's
producing the name match, which is what I need. However, if there's no match,
it's producing the #N/A. How could I get the #N/A to not show ?

Thanks,

Steve

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default Vlookup = #n/a to be ""

Perfect. Thanks guys. Both this solution and the ISNA worked exactly as a
needed.

Much appreciated.
Thanks again,

Steve

"Max" wrote:

Maybe this suffices:
=IF(COUNTIF(data!B$3:B$52,B57),B57,"")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Steve" wrote:
I'm using this formula, which is mostly working for what I need.

=VLOOKUP(B57,'data'!B$3:E$52,1,FALSE)

Basically, if it finds what's in B57 on the data!b3:E52 table, it's
producing the name match, which is what I need. However, if there's no match,
it's producing the #N/A. How could I get the #N/A to not show ?

Thanks,

Steve

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 168
Default Vlookup = #n/a to be ""

Hello,

You're forcing Excel to potentially do the vlookup twice, why not
place your formula in a hidden area of your worksheet like IV1, then
reference that formula in your target cell:

=IF(ISNA(IV1),"",IV1)


HTH,
JP


On Oct 20, 9:37 am, "Niek Otten" wrote:
=IF(ISNA(VLOOKUP(B57,'data'!B$3:E$52,1,FALSE),"",V LOOKUP(B57,'data'!B$3:E$5*2,1,FALSE))

Or, if you have Excel 2007:

=IFERROR(VLOOKUP(B57,'data'!B$3:E$52,1,FALSE),"")

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Steve" wrote in ...

| I'm using this formula, which is mostly working for what I need.
|
| =VLOOKUP(B57,'data'!B$3:E$52,1,FALSE)
|
| Basically, if it finds what's in B57 on the data!b3:E52 table, it's
| producing the name match, which is what I need. However, if there's no match,
| it's producing the #N/A. How could I get the #N/A to not show ?
|
| Thanks,
|
| Steve





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 168
Default Vlookup = #n/a to be ""

Hi Max,

I think what you meant was =IF(COUNTIF(data!B$3:B
$52,B57),VLOOKUP(B57,'data'!B$3:E$52,1,FALSE),"")

?


--JP

On Oct 20, 9:45 am, Max wrote:
Maybe this suffices:
=IF(COUNTIF(data!B$3:B$52,B57),B57,"")
--
Max
Singaporehttp://savefile.com/projects/236895
xdemechanik
---



"Steve" wrote:
I'm using this formula, which is mostly working for what I need.


=VLOOKUP(B57,'data'!B$3:E$52,1,FALSE)


Basically, if it finds what's in B57 on the data!b3:E52 table, it's
producing the name match, which is what I need. However, if there's no match,
it's producing the #N/A. How could I get the #N/A to not show ?


Thanks,


Steve- Hide quoted text -


- Show quoted text -



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Vlookup = #n/a to be ""

Note that the OP looks up in 1 column only....

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"JP" wrote in message oups.com...
| Hi Max,
|
| I think what you meant was =IF(COUNTIF(data!B$3:B
| $52,B57),VLOOKUP(B57,'data'!B$3:E$52,1,FALSE),"")
|
| ?
|
|
| --JP
|
| On Oct 20, 9:45 am, Max wrote:
| Maybe this suffices:
| =IF(COUNTIF(data!B$3:B$52,B57),B57,"")
| --
| Max
| Singaporehttp://savefile.com/projects/236895
| xdemechanik
| ---
|
|
|
| "Steve" wrote:
| I'm using this formula, which is mostly working for what I need.
|
| =VLOOKUP(B57,'data'!B$3:E$52,1,FALSE)
|
| Basically, if it finds what's in B57 on the data!b3:E52 table, it's
| producing the name match, which is what I need. However, if there's no match,
| it's producing the #N/A. How could I get the #N/A to not show ?
|
| Thanks,
|
| Steve- Hide quoted text -
|
| - Show quoted text -
|
|


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Vlookup = #n/a to be ""

=IF(ISNA(VLOOKUP(B57,data!B$3:E$52,1,FALSE)),"",VL OOKUP(B57,data!B$3:E$52,1,FALSE))


Gord Dibben MS Excel MVP

On Sat, 20 Oct 2007 06:24:00 -0700, Steve
wrote:

I'm using this formula, which is mostly working for what I need.

=VLOOKUP(B57,'data'!B$3:E$52,1,FALSE)

Basically, if it finds what's in B57 on the data!b3:E52 table, it's
producing the name match, which is what I need. However, if there's no match,
it's producing the #N/A. How could I get the #N/A to not show ?

Thanks,

Steve


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 168
Default Vlookup = #n/a to be ""

Niek,
In that case what do you think is the better formula, COUNTIF or
VLOOKUP?

--JP

On Oct 20, 10:40 am, "Niek Otten" wrote:
Note that the OP looks up in 1 column only....

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"JP" wrote in ooglegroups.com...

| Hi Max,
|
| I think what you meant was =IF(COUNTIF(data!B$3:B
| $52,B57),VLOOKUP(B57,'data'!B$3:E$52,1,FALSE),"")
|
| ?
|


  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Vlookup = #n/a to be ""

In that case what do you think is the better formula,
COUNTIF or VLOOKUP?


COUNTIF (see Max's reply)

NB: COUNTIF will evaluate TEXT numbers and NUMERIC numbers as being equal
while VLOOKUP will not.


--
Biff
Microsoft Excel MVP


"JP" wrote in message
ups.com...
Niek,
In that case what do you think is the better formula, COUNTIF or
VLOOKUP?

--JP

On Oct 20, 10:40 am, "Niek Otten" wrote:
Note that the OP looks up in 1 column only....

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"JP" wrote in
ooglegroups.com...

| Hi Max,
|
| I think what you meant was =IF(COUNTIF(data!B$3:B
| $52,B57),VLOOKUP(B57,'data'!B$3:E$52,1,FALSE),"")
|
| ?
|




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
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
isna vlookup returning"0" instead of " " Martha Excel Worksheet Functions 3 April 20th 07 09:31 PM
How to replace "#N/A" w "0"when vlookup couldn't find the match? Holly Excel Discussion (Misc queries) 2 July 17th 06 11:48 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


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

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

About Us

"It's about Microsoft Excel"