google spreadsheet - Filter one sheet, A, with another, B, to get a new sheet, C, with rows that don't exist in B -
i'm trying rid of bad data in inventory list.
sheet sheet list of products.
sheet b sheet, generated piece of software, lists of products have been sold
i need generate third sheet, sheet c, lists unsold products. so, number of rows between sheet b , sheet c should add total number of rows on sheet a.
how cross-reference/filter sheet b achieve c?
the following formula returns list of entries column of sheet1 not present in column of sheet2:
=filter(sheet1!a2:a, isna(match(sheet1!a2:a, sheet2!a2:a, 0)))
explanation: match
returns error code #n/a entries in sheet1!a2:a not found in sheet2!a2:a. isna
function converts true boolean values. finally, filter
returns rows second argument evaluates true.
the filter can return more 1 column: can be, example,
=filter(sheet1!a2:z, isna(match(sheet1!a2:a, sheet2!a2:a, 0)))
but match requires one-dimensional range, need column (here assumed a) can used identifier of row.