Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Lookup/match value in a different worksheet, and just return a yes

I have two worksheets with lists of customers. I'd like to lookup each
company on worksheet A and see if it is also on Worksheet B. If it is, then I
just want an "X" or a 1 or a simple response like that. I couldn't seem to
make a VLOOKUP work or MATCH. Should I create a column with "X" in it on
Worksheet B and have that column returned as the value on Worksheet A?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Lookup/match value in a different worksheet, and just return a yes

=isnumber(match(a1,sheet2!a:a,0))

Will return TRUE if there's a match. False if there is no match.

Chatnoir11 wrote:

I have two worksheets with lists of customers. I'd like to lookup each
company on worksheet A and see if it is also on Worksheet B. If it is, then I
just want an "X" or a 1 or a simple response like that. I couldn't seem to
make a VLOOKUP work or MATCH. Should I create a column with "X" in it on
Worksheet B and have that column returned as the value on Worksheet A?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default Lookup/match value in a different worksheet, and just return a yes

On Mon, 5 Jan 2009 15:08:07 -0800, Chatnoir11
wrote:

I have two worksheets with lists of customers. I'd like to lookup each
company on worksheet A and see if it is also on Worksheet B. If it is, then I
just want an "X" or a 1 or a simple response like that. I couldn't seem to
make a VLOOKUP work or MATCH. Should I create a column with "X" in it on
Worksheet B and have that column returned as the value on Worksheet A?



Assuming your lists of companies are on column A in sheet A and in
column A in sheet B you may try this formula in cell B1 of sheet A.

=IF(ISERROR(MATCH(A1,B!A$1:A$1000,0)),"","X")

Copy down as far as you have data in sheet A column A.
Change the 1000 if you have more data in sheet B column A.

Hope this helps / Lars-Åke
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Lookup/match value in a different worksheet, and just return a

PERFECT! I have never heard of that command before, but it will get used a
lot now! Thanks!

"Dave Peterson" wrote:

=isnumber(match(a1,sheet2!a:a,0))

Will return TRUE if there's a match. False if there is no match.

Chatnoir11 wrote:

I have two worksheets with lists of customers. I'd like to lookup each
company on worksheet A and see if it is also on Worksheet B. If it is, then I
just want an "X" or a 1 or a simple response like that. I couldn't seem to
make a VLOOKUP work or MATCH. Should I create a column with "X" in it on
Worksheet B and have that column returned as the value on Worksheet A?


--

Dave Peterson

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 formula to return all instances of match? CParker Excel Discussion (Misc queries) 9 November 19th 08 10:34 AM
Lookup and match then return data from another sheet Charlie510 Excel Worksheet Functions 6 October 23rd 08 09:14 PM
LOOKUP two data sets for match - return 1 or 0 - Please help! Jay Excel Worksheet Functions 1 September 26th 06 12:10 PM
can lookup return err if no match found Kim Greenlaw Excel Worksheet Functions 12 January 12th 06 04:27 PM
Match text to another worksheet and return a certain value Edye Excel Worksheet Functions 4 December 19th 04 04:53 PM


All times are GMT +1. The time now is 07:11 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"