View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld Ron Rosenfeld is offline
external usenet poster
 
Posts: 5,651
Default formula to find "missing" data

On Sun, 31 Aug 2008 11:45:01 -0700, LEG wrote:

Hi!
I am looking for a formula that can:
I have a list of (nearly) identical numbers in two columns. In one column
there are 100 numbers and in column 2 there are 90 numbers. Is there a
formula or macro which can find the 10 numbers which are in column 1, but not
in column 2 and list them in at third column?
I am testing two databases that should have the same data, but doesn't. I
have the 2007 version of Excel.
LEG


If your data is in A1:A100 & B1:B90, then this array-entered formula will list
the entries in A that are not found in B.

This is an **array** formula so must be entered with <ctrl<shift<enter. If
you do it correctly, Excel will place braces {...} around the formula:


=IF(ROWS($1:1)SUM(--ISNA(MATCH($A$1:$A$100,$B$1:$B$90,0))),
"",INDEX($A$1:$A$100,LARGE(ISNA(MATCH(
$A$1:$A$100,$B$1:$B$90,0))*ROW(INDIRECT("1:100")), ROWS($1:1))))

Fill down until you don't get any values returned.
--ron