MichiganWilliams
New Member
- Joined
- Jan 15, 2017
- Messages
- 12
I swear this has to be easy but I'm not figuring this out. I've looked at VLOOKUP, Index & Match, Pivot Tables, etc.
I've got a table with 65k rows. In one column, I have a customerID, in another column I have an item purchased. I have many other columns, but I want to be able to find customers that have purchased BOTH item A & item B, doesn't have to be on the same date. When I try filtering my table, I get anyone who purchased either A or B.
I tried a Pivot table and I did Rows Customer ID and column product purchased, I think I threw in another random field in the values column set to Count. It's not exactly what I want though. With 65k rows, that takes a lot of scrolling.
Imagine something like the table below, but with a ton of rows. I'd want it to return only Customer 1 because they've purchased A and they've purchased B. Is there a formula that could extract data like this when it's dependent on a customer ID in one column and multiple criteria in a separate column?
Follow up question, What if I wanted someone who has purchased BOTH A and any other product?
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer ID[/TD]
[TD]Product Purchased[/TD]
[TD]Date[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]A[/TD]
[TD]1/1/19[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]B[/TD]
[TD]1/1/19[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]C[/TD]
[TD]1/1/19[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]A[/TD]
[TD]1/1/19[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]B[/TD]
[TD]2/1/19[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]D[/TD]
[TD]2/1/19[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]E[/TD]
[TD]2/1/19[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]A[/TD]
[TD]2/1/19[/TD]
[/TR]
</tbody>[/TABLE]
Thank you!
I've got a table with 65k rows. In one column, I have a customerID, in another column I have an item purchased. I have many other columns, but I want to be able to find customers that have purchased BOTH item A & item B, doesn't have to be on the same date. When I try filtering my table, I get anyone who purchased either A or B.
I tried a Pivot table and I did Rows Customer ID and column product purchased, I think I threw in another random field in the values column set to Count. It's not exactly what I want though. With 65k rows, that takes a lot of scrolling.
Imagine something like the table below, but with a ton of rows. I'd want it to return only Customer 1 because they've purchased A and they've purchased B. Is there a formula that could extract data like this when it's dependent on a customer ID in one column and multiple criteria in a separate column?
Follow up question, What if I wanted someone who has purchased BOTH A and any other product?
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer ID[/TD]
[TD]Product Purchased[/TD]
[TD]Date[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]A[/TD]
[TD]1/1/19[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]B[/TD]
[TD]1/1/19[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]C[/TD]
[TD]1/1/19[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]A[/TD]
[TD]1/1/19[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]B[/TD]
[TD]2/1/19[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]D[/TD]
[TD]2/1/19[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]E[/TD]
[TD]2/1/19[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]A[/TD]
[TD]2/1/19[/TD]
[/TR]
</tbody>[/TABLE]
Thank you!