Multiple if statement criteria pivot table

theThirdMan

New Member
Joined
Dec 3, 2012
Messages
6
I have a sheet with 3 Columns of interest:

Employee, Product, Customer type (3 possible- A,B,C)

I have a pivot table that breaks up the data as employee and product in rows, and the customer type in column so that it is 5 columns (Employee | Product | A | B | C). I need only the rows in which the employee sold the same product to both A and B, A and C, or B and C. I know it is impossible to filter by such criteria in the pivot table itself, but is it possible to create a flag column in the raw data which I can use to filter? I've been trying to configure and array function along with a if, but am having no luck. I'm not sure if my knowledge of arrays is just poor or if its not the right method.

Does anyone have any advice/suggestions?
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi theThirdMan,

If your add two helper columns to your data source, then you don't need an array formula.
Excel Workbook
ABCDE
1EmployeeProductCustomer TypeMatch stringExactly 2 Types
2E1P1AE1|P1|AHide
3E1P1AE1|P1|AHide
4E1P1AE1|P1|AHide
5E1P2AE1|P2|AShow
6E1P2CE1|P2|CShow
7E1P2CE1|P2|CShow
8E1P3AE1|P3|AHide
9E1P4BE1|P4|BHide
10E1P5CE1|P5|CHide
Sheet
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,534
Messages
6,114,186
Members
448,554
Latest member
Gleisner2

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