Hi :)
I am looking for an interactive explanation to a sorting/filtering/list issue.
For example if my task would be: Export a list to excel of all customer purchases made by customers who have never bought coffee based on below dataset. The task is thus to export all rows from customer 2 and 4 to an excel and my challenge is how to make a selection / variable that is able to sort this out.
I have tried by creating a column with a binary "if" formula on whether or not coffee is in the row and then secondly a column displaying customer ID if the customer has bought coffee. Then I hoped to save this column as a list and make an if formula conditional on customer ID appearing in this list, such that for example all rows for customer 1 and 3 would have the same value and thus could be excluded. But I got stuck at the list part + it might not be the easiest way to do it.
Can anyone help?
| | Tried āsolutionā | |
Customer ID | Drink | Coffee or not | Customer ID who have bought coffee |
1 | Coffee | 1 | 1 |
1 | Coffee | 1 | 1 |
1 | Water | 0 | 0 |
1 | Coffee | 1 | 1 |
2 | Water | 0 | 0 |
2 | Water | 0 | 0 |
2 | Water | 0 | 0 |
2 | Water | 0 | 0 |
2 | Water | 0 | 0 |
2 | Water | 0 | 0 |
2 | Water | 0 | 0 |
3 | Water | 0 | 0 |
3 | Water | 0 | 0 |
3 | Coffee | 1 | 3 |
4 | Water | 0 | 0 |
4 | Water | 0 | 0 |
4 | Water | 0 | 0 |
4 | Water | 0 | 0 |
4 | Water | 0 | 0 |
4 | Water | 0 | 0 |