Filter Pivot Table as per List in other Column

Pavan Konjeti

New Member
Joined
Feb 1, 2020
Messages
1
Office Version
  1. 2013
Platform
  1. Windows
Hello Experts,

I have attached an image from sample data, what I want from that data is that first Pivot Table's material field should get filtered as per the material's list in I column. I'm OK to use macros however using vlookup and filtering #N/A won't help as in reality scenario is much complex. Your help would be greatly appreciated.

Thanks in advance,
Pavan
 

Attachments

  • Sample Data Capture.PNG
    Sample Data Capture.PNG
    57.1 KB · Views: 8

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Welcome Pavan

I don't know exactly what is wanted. A pivot table can be made from multiple tables - in doing so, define the relationship to give the desired result,

In this case, filtered by a second list. Simplest might be to define the pivot table dataset by something like,

SELECT A.*
FROM maindata A, filterlist B
WHERE A.fieldtofilter = B.filteringfield

If you want to play around with this, easiest is to give the tables a simple defined name and save the file. From a new file (CTRL-N), ALT-D-P to start the pivot table wizard, choose 'external data source', Get Data, etc, etc. Take the option to edit in MS Query and create the relationships - you get a GUI similar to MS Access (can also add tables there too). This works on all Excel versions with pivot tables. So since Excel 5 I think. OR, in newer versions investigate power query which I don't use as the old ways (including VBA+ADO) do everything I ever need.

regards, Fazza
 
Upvote 0

Forum statistics

Threads
1,216,102
Messages
6,128,853
Members
449,472
Latest member
ebc9

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