Hi Jay
okay
you have one list in column A cell range from A1:A10
you have another list in column B cell range from B1:B10
and in column C you want the values that are in BOTH
in C1 type
=IF(COUNTIF($A$1:$A$10,B1)>0,B1,"")
and press Ctrl & Shift & Enter instead of just enter
now fill down (move cursor over bottom right corner of cell until you see a
+ then double click)
when excel encounters a value in both columns it will write it into column
C.
HOWEVER, i think the last example on Chip's page matches your SQL statement
more accurately:
----
Extracting Values On One List And Not Another
Another frequent tasks involving lists is to create a list containing values
in one range that are not in another range. Suppose there are two lists, in
A1:A10 and B1:B10. Enter the following array formula in the first cell of
the range which is to contain the entries in B1:B10 that do not occur in
A1:A10.
=IF(COUNTIF($A$1:$A$10,B1)=0,B1,"")
Change B1 and $A$1:$A$10 to the first cells in the ranges from which data
that you want to extract items. Then, use Fill Down (from the Edit menu)
to fill the formula down to as many rows as you need to hold the common
entries (i.e., up to as many rows as there are in the original range.)
-----
This will tell you what entries are in column A that are not in column B,
again enter the formula in C1 using CTRL & SHIFT & ENTER and fill down.
This time however, the values listed in C will be those from A where a match
can't be found in B.
Hope this makes some sense. If you need further assistance, just post back.
Cheers
julieD