Set filtered column in a table as a defined range

sspatriots

Well-known Member
Joined
Nov 22, 2011
Messages
572
Office Version
  1. 365
Platform
  1. Windows
Trying to see if it is possible to filter a column in a table and defined those visible filtered cells as a named range to copy to another range in another table (different workbook). Right now, I'm just curious to know how to name a filtered column range to use further down in my code. Let's say I'm using "Table1" as my Table name and using "Employee Last Name" as my column heading. I filter this column to find all Last Names that start with "W". How could I define these Employee last names that start with "W" as a named range and then make them equal to another range further down in my code that belongs to another table.

Any help would be much appreciated. Thanks, SS
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I'm just curious to know how to name a filtered column range to use further down in my code
Not sure that you can filter a table and name it separately

BUT you can use FILTER Function on a table and use the results as a Named Range

Hope it helps you in some way.
 
Upvote 0
Not sure that you can filter a table and name it separately

BUT you can use FILTER Function on a table and use the results as a Named Range

Hope it helps you in some way.
I've been trying to figure out how to do this, but now luck so far. It want's to recognize the entire range only (before filtered).
 
Upvote 0
Check this and revert - Hope it helps you in some way

Book1
ABCDEFGHIJ
1CodeDepartmentFirstLastWCodeDepartmentFirstLast
2A 0001SalesTestAaronA 0002SalesTestWalts
3A 0002SalesTestWaltsA 0004ProductionTestWalter
4A 0003SalesTestChris
5A 0004ProductionTestWalter
6A 0005SalesTestFinch
7A 0006ProductionTestBruceA 0002SalesTestWalts
8A 0007SalesTestPhillipsA 0004ProductionTestWalter
9A 0008ProductionTestBrown
10
Sheet1
Cell Formulas
RangeFormula
G1:J1G1=Table1[#Headers]
G2:J3G2=FILTER(Table1,LEFT(Table1[Last],1)=$F$1)
G7:J8G7=FilteredEmployee
Dynamic array formulas.
Named Ranges
NameRefers ToCells
FilteredEmployee=Sheet1!$G$2#G7
 
Upvote 0
Solution
I marked your response as the solution because I did use it to get most of what I needed. Thank you. I will be posting a follow up question regarding something else I've run into. Thanks so much, Steve
 
Upvote 0

Forum statistics

Threads
1,215,084
Messages
6,123,029
Members
449,092
Latest member
ikke

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