Advanced Filter?

rfinnegan

Board Regular
Joined
Mar 15, 2005
Messages
173
Office Version
  1. 365
Platform
  1. Windows
Hi All:

I've never used Advanced Filter and I'm having trouble getting the results I want.

Here's my problem -

I have a list of about 12,000 SKUs along with their price and description in columns D,E,F. I need to remove about 2,000 of those SKUs from the original list and I have those SKUs on a separate tab.

Can I use Advanced Filter for this? If so how? The info I've found online hasn't helped.
And if not, is there a clean way to do this? I'm going to need to repeat this process for several months of data (excluding different SKUs each time of course).

Thanks in advance.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi

You can do it with the Advanced Filter, but also a very simple way to do it is to use an auxiliary column.

For ex. use column G and a simple:

=ISNUMBER(MATCH())

to check if the SKU appears in the other tab.

Then use autofilter by G

- either filter by TRUE and delete the visible rows

- or, if you want to keep the original table, filter by FALSE and copy the visible rows to somewhere else to get the result table
 
Upvote 0
Hi!

You can try this too (with Advanced Filter):

1) Create the sheets Sheet 1 and Sheet 2 with the layouts below.


CDEFGHIJKLMNCDEFG
1Data AreaCriteria AreaExtract AreaSheet 1

1
Extract AreaSheet 2
22
3StartEnd3
42006004
5SKUPriceDescriptionCalcFieldSKUPriceDescription5SKUPriceDescription
6X900001521Descrip00116X900001521Descrip001
7X900002150Descrip0027X900004233Descrip004
8X900003729Descrip0038X900007509Descrip007
9X900004233Descrip0049X900009223Descrip009
10X900005856Descrip00510X900010214Descrip010
11X900006144Descrip00611X900012385Descrip012
12X900007509Descrip00712X900013369Descrip013
13X900008755Descrip00813X900015420Descrip015
14X900009223Descrip00914
15X900010214Descrip01015
16X900011138Descrip01116
17X900012385Descrip01217
18X900013369Descrip01318
19X900014898Descrip01419
20X900015420Descrip01520
2121
*********************************************************************************************************************************

<tbody>
</tbody>


2) After that, in H6, enter the formula (if you want, you can use another formula with the result TRUE or FALSE / 0 or 1 and a cell in row 6 of the Data Area) below:

=(E6>=$H$4)*(E6<=$I$4)

3) Now, enter the values in H4 and I4.

4) After that, in the Advanced Filter dialog box, enter the ranges below:

List range: $D$5:$F$20
Criteria range: $H$5:$H$6
Copy to: $K$5:$M$5

5) Finally, click OK.

Ps: To copy to another sheet (Sheet 1 to Sheet 2), in the step 4, do this:

4) After that, with Sheet 2 active (with a Extract Area $D$5:$F$5 with the labels SKU, Price and Description), in the Advanced Filter dialog box, enter the ranges below:

List range: 'Sheet 1'!$D$5:$F$20
Criteria range: 'Sheet 1'!$H$5:$H$6
Copy to: 'Sheet 2'!$D$5:$F$5

I hope that this helps.

Markmzz
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,391
Members
449,080
Latest member
Armadillos

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