Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default Match or Lookup help please...


Hi,

I'd like to lookup items in two different column. If item in column A,
matches item in column B, then indicate #1, otherwise show #2. I'm not sure
how to wright whether a match or vlookup formula. Your is appreciated.

Thank you,
Soth
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Match or Lookup help please...

What exactly do you mean by "if item in column A matches item in column B"?
Is that a line by line match or does the item in column A match any cell's
item in Column B, no matter what row? If the former, then this...

=IF(A1=B1,1,0)

or, because of the particular output values you are looking for, this...

=--(A1=B1)

If the latter, then try this...

=IF(COUNTIF(B:B,A1)0,1,0)

or, again because of the particular output values you are looking for,
this...

=--(COUNTIF(B:B,A1)0)

--
Rick (MVP - Excel)


"Soth" wrote in message
...

Hi,

I'd like to lookup items in two different column. If item in column A,
matches item in column B, then indicate #1, otherwise show #2. I'm not
sure
how to wright whether a match or vlookup formula. Your is appreciated.

Thank you,
Soth


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default Match or Lookup help please...

Yes, it's a line by line match. i.e

Column A Column B Colum C

John John = return value
of 1 if match, else 2
Smith Bob
Mary Jennifer

Thank you


"Rick Rothstein" wrote:

What exactly do you mean by "if item in column A matches item in column B"?
Is that a line by line match or does the item in column A match any cell's
item in Column B, no matter what row? If the former, then this...

=IF(A1=B1,1,0)

or, because of the particular output values you are looking for, this...

=--(A1=B1)

If the latter, then try this...

=IF(COUNTIF(B:B,A1)0,1,0)

or, again because of the particular output values you are looking for,
this...

=--(COUNTIF(B:B,A1)0)

--
Rick (MVP - Excel)


"Soth" wrote in message
...

Hi,

I'd like to lookup items in two different column. If item in column A,
matches item in column B, then indicate #1, otherwise show #2. I'm not
sure
how to wright whether a match or vlookup formula. Your is appreciated.

Thank you,
Soth



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, match? jkb66 Excel Discussion (Misc queries) 6 November 28th 07 03:19 PM
Lookup, Match, something like this Sean Excel Worksheet Functions 4 January 8th 07 10:30 PM
Lookup? Match? pulling rows from one spreadsheet to match a text f cjax Excel Worksheet Functions 3 July 21st 06 02:51 PM
Lookup Match LookupTroubles Excel Worksheet Functions 1 June 22nd 05 05:12 PM
Lookup or Match Robbyn Excel Worksheet Functions 2 February 8th 05 10:29 PM


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