Filter Value from table based on selection

fayez_MrExcel

Active Member
Joined
Oct 29, 2005
Messages
444
Office Version
  1. 365
Platform
  1. Windows
I have Product Tables in each sheet with the name as per below.
Product_1
Product_2
Product_3

Each Table has the same format that includes the Product ID located in Column A.

How can filter the Product ID from the correct Product table if I interactively select the Product Table? For example, if I select Product_3, Product A001, Product A002, and Product A003 will be filtered and if I select Product_2 table, Product A, Product B, and Product C will be filtered.


Sheet 1 (Table Name: Product_1)Sheet 2 (Table Name: Product_2)Sheet 3 (Table Name: Product_3)
Product IDProduct IDProduct ID
Product Table Name:
Product_3
Product 001Product AProduct A001
Expected Filtered lists is:
Product A001
Product 002Product BProduct A002Product A002
Product 003Product CProduct A003Product A003
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Try:
Excel Formula:
=INDIRECT("A1")
 
Upvote 0
If you want to filter out blanks use TOCOL() instead, the syntax is a bit cleaner.
Excel Formula:
=TOCOL(INDIRECT(A1&"[Product ID]"),1)
 
Upvote 1

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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