Match or Lookup formula help please
Thank you very much. You've solved it.
"T. Valko" wrote:
Try this:
=IF(COUNTIF(A$1:A$20,B1),1,2)
Copy to the end of data in column B. Adjust ranges to suit.
--
Biff
Microsoft Excel MVP
"Soth" wrote in message
...
Hi,
I meant item matches 'anywhere' within the range. Thanks
"T. Valko" wrote:
Do you mean items that match *on the same row* or do you mean items that
match *anywhere* within the range?
--
Biff
Microsoft Excel MVP
"Soth" wrote in message
...
Column A Column B Colum C
John John = return value of 1, if matches,
else 2
Smith Bob
Mary Jennifer
I like to have a formula in column C, if item in column A, "John"
matches
item in column B "John", then show value of #1, else, #2
Thank you,
Soth
|