Dynamic extract to range in advanced filter.

Héctor Miguel

Board Regular
Joined
Apr 15, 2002
Messages
66
Hi, All. And Thanks In Advance !

I need to expand the capabilities of advanced filter:
Copy to... (extract range) has to be the last added item.
(filtered data needs to be added, NOT REPLACED).
I can handle this by defining a name which refers to a dynamic range.
Such name goes to be the "next" title (for Database range) AND
the "next" extract range (also using iteration to avoid circular).
Working fine, UNTIL numeric values are found for "next" (extract range).

Any ideas?
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi, Chris. Thanks for your reply :)

Yes, "Next" is a named range (dynamic), which is supposed "to be"...
the last item in the "copy to" range AND the title for Data_base range.

Here is a wide view of the project:

In a small DB (range A2:B147) in Sheet1,
where column A (A2) is titled "Code" and column B (B2) is titled "Description",
I need the following:

Filter data by copying (ADDING NOT Replacing) to a new location, for what...
I'm using the following names:
Criteria = the range D1:D2
- Formula in D2 is: =(OFFSET(A3,0,1)=$D$1) -evaluated as True or False-
- Contents in D1 is: the "real" criteria to filter
Extract_area = the range G2 lnitially. THIS TO BE A DYNAMIC REFERENCE ("Next")
Data_base = the range A2:A147 - "Title" TO MATCH with Extract_area "Title" ("Next")

For dynamic range(s) I'm using:
Copy_tio_area = OFFSET(Book1.xls!Date_base,0,COLUMN(Sheet1!Extract_area)-COLUMN(Book.xls!Data_base),COUNTA(Book1.xls!Data_base),1)
Next = INDIRECT("Sheet1!"&ADDRESS(ROW(Sheet1!Copy_to_area)+COUNTA(Sheet1!Copy_to_area)-1,COLUMN(Sheet1!Copy_to_area)))

By this method dynamic range "Next"...
is ALWAYS the last entry (filtered data copied to) in Copy_to_area
is ALSO, the Data_base "Title" (Match needed)

When I launch Advanced Filter, I only have to choose (type) Next as "Copy to..." in dialog box

Working well... UNTIL, last entry returns a numeric value, which will be the next "Next"

Any ideas?
TIA, Héctor.
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,114,002
Members
448,543
Latest member
MartinLarkin

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