autofilter using array

dgrosen

Board Regular
Joined
May 3, 2003
Messages
110
I need help with the following.
I have 2 sheets. Sheet1 has an array of numbers (A1:J18). I need to use these to filter the data on sheet2 to show only those present on Sheet1
The number on sheet1 are on cells A1:J18 and those match the value on column B on sheet2.
Any help will be very much appreciated
Thanks
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi

It would be easier if you could organise your array into a single column (A) then in a spare column on Sheet 2 enter :-

Code:
=--($B1=Sheet1!$A$1:$A$180)

with Control-Shift-Enter and copy down assuming that the first number is in Cell B1.

Then Filter for "1" in the spare column.

hth

Mike
 
Last edited:
Upvote 0
Same concept as ukmikeb except the formula is not an array formula
=COUNTIF(Sheet1!$A$1:$J$18,B1)>0
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,739
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top