Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Vlookup returning a YES or NO

Hello

I'd like to return a yes or no response.
at the moment only the YES is working.
Can anyone give me a tip?
Thanks
Rob

=IF(A6=VLOOKUP(A6,'[Catalogue Robs Test Stock
Range.xls]Catalogue'!$1:$5000,1,FALSE),"YES","NO")
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Vlookup returning a YES or NO

Hi,

Just do not understand what you are trying to do:

Why is there no column reference in your range_lookup I.e. how can it be
$1:$5000.

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Rob" wrote in message
...
Hello

I'd like to return a yes or no response.
at the moment only the YES is working.
Can anyone give me a tip?
Thanks
Rob

=IF(A6=VLOOKUP(A6,'[Catalogue Robs Test Stock
Range.xls]Catalogue'!$1:$5000,1,FALSE),"YES","NO")


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 434
Default Vlookup returning a YES or NO

hi, Rob !

I'd like to return a yes or no response.
at the moment only the YES is working.
Can anyone give me a tip?
Thanks
Rob

=IF(A6=VLOOKUP(A6,'[Catalogue Robs Test Stock Range.xls]Catalogue'!$1:$5000,1,FALSE),"YES","NO")


AFAIK, vlookup will try to find your lookup_value in the first column of your lookup_table
so, it doesn't make sense to incude whole columns by reference of the entire rows -?-

try with:

=if(countif('[Catalogue Robs Test Stock Range.xls]Catalogue'!$A$1:$A$5000,A6),"YES,"NO")

hth,
hector.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Vlookup returning a YES or NO

I must have the found the most complicated way to half do it.
Thanks Miguel that works a treat.

"Héctor Miguel" wrote:

hi, Rob !

I'd like to return a yes or no response.
at the moment only the YES is working.
Can anyone give me a tip?
Thanks
Rob

=IF(A6=VLOOKUP(A6,'[Catalogue Robs Test Stock Range.xls]Catalogue'!$1:$5000,1,FALSE),"YES","NO")


AFAIK, vlookup will try to find your lookup_value in the first column of your lookup_table
so, it doesn't make sense to incude whole columns by reference of the entire rows -?-

try with:

=if(countif('[Catalogue Robs Test Stock Range.xls]Catalogue'!$A$1:$A$5000,A6),"YES,"NO")

hth,
hector.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Vlookup returning a YES or NO

Note that COUNTIF requires the source file be open. An alternative that
works whether the source file is open or closed:

=IF(COUNT(MATCH(A6,'[Catalogue Robs Test Stock
Range.xls]Catalogue'!$A$1:$A$5000,0)),"YES,"NO")


--
Biff
Microsoft Excel MVP


"Rob" wrote in message
...
I must have the found the most complicated way to half do it.
Thanks Miguel that works a treat.

"Héctor Miguel" wrote:

hi, Rob !

I'd like to return a yes or no response.
at the moment only the YES is working.
Can anyone give me a tip?
Thanks
Rob

=IF(A6=VLOOKUP(A6,'[Catalogue Robs Test Stock
Range.xls]Catalogue'!$1:$5000,1,FALSE),"YES","NO")


AFAIK, vlookup will try to find your lookup_value in the first column of
your lookup_table
so, it doesn't make sense to incude whole columns by reference of the
entire rows -?-

try with:

=if(countif('[Catalogue Robs Test Stock
Range.xls]Catalogue'!$A$1:$A$5000,A6),"YES,"NO")

hth,
hector.







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Vlookup returning a YES or NO

Wouldn't you need the full path if the file is closed?

Pete

On Sep 17, 7:06*pm, "T. Valko" wrote:
Note that COUNTIF requires the source file be open. An alternative that
works whether the source file is open or closed:

=IF(COUNT(MATCH(A6,'[Catalogue Robs Test Stock
Range.xls]Catalogue'!$A$1:$A$5000,0)),"YES,"NO")

--
Biff
Microsoft Excel MVP

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 434
Default Vlookup returning a YES or NO

hi, all !

Pete_UK wrote in message ...
Wouldn't you need the full path if the file is closed?


since OP posted a formula without the full-path, I assumed he's working (only ?) with source file opened
as soon as the source file is closed, each reference in formulae change to it's full-path (but)...
as Tony says, sumif(... countif(... doesn't work on closed files, so forth his proposal was...

regards,
hector.

T. Valko wrote in message ...
Note that COUNTIF requires the source file be open.
An alternative that works whether the source file is open or closed:
=IF(COUNT(MATCH(A6,'[Catalogue Robs Test Stock Range.xls]Catalogue'!$A$1:$A$5000,0)),"YES,"NO")



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
VLOOKUP always returning the same value! Jennifer Cali Excel Discussion (Misc queries) 10 April 23rd 23 09:08 AM
VLOOKUP Keeps Returning #N/A Ric_M Excel Worksheet Functions 7 April 27th 13 12:10 PM
Vlookup Returning #n/a Toolbar Confused Excel Worksheet Functions 4 July 5th 07 01:32 AM
vlookup returning sum Rose Excel Worksheet Functions 1 July 14th 05 10:47 PM
Vlookup and returning #n/a Cathrine Excel Worksheet Functions 3 December 23rd 04 02:23 PM


All times are GMT +1. The time now is 01:48 AM.

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"