Filtering a list of subscribers based on their preferences

cmh1

New Member
Joined
Sep 13, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Dear Community, I am hoping you can help me.

Imagine a spreadsheet, where a subscriber can register their preferences (e.g. Flavour, Ingredients), then when a recipe comes up for that matches the user's criteria, then they are identified to receive a communication.

For Example - if we just consider 2 preferences (Flavour and ingredients), imagine the following subscriptions\preferences - these would be in a list in excel (we would use a form, to capture people's preferences).

Note, I put brackets to help distinguish the two preferences. I also used AND and OR statements. So you can see how someone's preferences are like a combination of the two dimensions (Flavour and ingredient).

User 1: (Spicy) AND (Potato)
User 2: (Spicy) AND (Beef or Salmon)
User 3: (Spicy or Salty) AND (Beef)
User 4: (Bitter or Sweet or Salty) AND (Cheese or Pepper or Onion or Potato)
User 5: (Any Flavour) AND (Potato or Salmon)
User 6: (Sour) AND (Any ingredient)
User 7: (Any Flavour) AND (Any ingredient)
etc

So if a recipe for Spicy cuisine using Beef was published, we would get the following result

User 2: (Spicy) AND (Beef or Salmon)
User 3: (Spicy or Italian) AND (Beef)
User 7: (Any Flavour) AND (Any ingredient)

Or if a recipe for Salty cuisine using Potato and Beef was published, the list would be:

User 3: (Spicy or Salty) AND (Beef)
User 4: (Bitter or Sweet or Salty) AND (Cheese or Pepper or Onion or Potato)
User 5: (Any Flavour) AND (Potato or Salmon)
User 7: (Any Flavour) AND (Any ingredient)

And a final example, a Sweet and Sour recipe, using Pepper and Lemon

User 4: (Bitter or Sweet or Salty) AND (Cheese or Pepper or Onion or Potato)
User 6: (Sour) AND (Any ingredient)
User 7: (Any Flavour) AND (Any ingredient)


In terms of the recipes, it would be cool if we could have some kind table, where we can pick the flavours\ingredients for each recipe, then it would somehow trigger a calculation to identify the relevant users.

Recipes.png



I really searched as hard as I could, looking at advanced filters, AND\OR conditions etc, but could not find a way (so I tried quite hard before reaching out for help). I know that companies such as ebay have a similar thing, where you can set an alert to email you, when a pair of Shoes, Colour=Black, Size 10 comes up for sale, but of course I dont have the resources behind me for a special tool for that, so I am trying to use excel to build this "recipient calculator" myself - but I'm really stuck.

Any help\advice would be amazing, but I know it is a tricky one... maybe it is not even possible.

Sincerely,

Cmh1
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Check this -

Cell Formulas
RangeFormula
M3:M6M3=TRIM(TEXTJOIN(" or ",,IF(A3="Y",A$2,""),IF(B3="Y",B$2,""),IF(C3="Y",C$2,""),IF(D3="Y",D$2,""),IF(E3="Y",E$2,""),IF(COUNTA(A3:E3)=0,"Any Flavour","")))
N3:N6N3=TRIM(TEXTJOIN(" or ",,IF(F3="Y",F$2,""),IF(G3="Y",G$2,""),IF(H3="Y",H$2,""),IF(I3="Y",I$2,""),IF(J3="Y",J$2,""),IF(K3="Y",K$2,""),IF(L3="Y",L$2,""),IF(COUNTA(F3:L3)=0,"Any Ingredient","")))
O3:O6O3=TRIM("("& M3 &")"&" AND ("&N3&")")
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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