S
Smokeyhavoc
I'm trying to take a worksheet and filter out values that don't exist on
another worksheet
another worksheet
In Sheet3
-------------
Select A1:A10
(select a range size equal to that of the list in Sheet1)
Put in the formula bar:
=IF(ISERROR(SMALL(IF(COUNTIF(Sheet2!A1:A5,Sheet1!A1:A10)<1,Sheet1!A1:A10),RO
W())),"",SMALL(IF(COUNTIF(Sheet2!A1:A5,Sheet1!A1:A10)<1,Sheet1!A1:A10),ROW()
))
Array-enter the formula, i.e. press CTRL+SHIFT+ENTER
instead of just pressing ENTER
the objective isn't to extract but to eliminate data that doesn't exist on
the second sheet i.e.:
sheet1:
101
102
103
104
105
106
107
108
109
110
sheet2
101
104
105
106
109
111
sheet 3 would show
101
104
105
109
Max said:Ok, nice of you to clarify with clearer specs..
For the "reverse" situation desired, try ..
In Sheet3
-------------
Select A1:A10
(select a range size equal to that of the list in Sheet1)
Put in the formula bar:
=IF(ISERROR(SMALL(IF(NOT(ISNA(MATCH(Sheet1!A1:A10,Sheet2!A1:A6,0))),ROW(Shee
t1!A1:A10)),ROW())),"",INDEX(Sheet1!A1:A10,SMALL(IF(NOT(ISNA(MATCH(Sheet1!A1
:A10,Sheet2!A1:A6,0))),ROW(Sheet1!A1:A10)),ROW())))
Array-enter the formula, i.e. press CTRL+SHIFT+ENTER
instead of just pressing ENTER
[ The above is basically the same formula as the
previous suggested, except with a NOT(...) wrapped
around the ISNA(...), since we want the "reverse" situation,
and with an extension to the range in Sheet2
to now include cell A6]
For the sample data, A1:A10 will return:
101
104
105
106
109
<Rest are blanks>
Note: "106" should / will appear
(think there's a typo in your post on the results part)
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <at>yahoo<dot>com
----
Smokeyhavoc said:the objective isn't to extract but to eliminate data that doesn't exist on
the second sheet i.e.:
sheet1:
101
102
103
104
105
106
107
108
109
110
sheet2
101
104
105
106
109
111
sheet 3 would show
101
104
105
109