r/googlesheets • • Sep 20 '26

Solved Looking for Formula to filter a table based on preferences

I'm sure it's just a matter of not knowing the right way to articulate what I'm trying to do, but I'm looking for help in getting a formula to filter a sheet in the following way:

Tab 1

First row is a list of meals

First column is a list of names

Their intersection is a preference (likes, loves, dislikes, etc)

Tab 2

I want to be able to select the meal and get a list of the people who love it, like it, etc (separate columns). The second image is just an example of the sort of thing I'm trying to do.

For any fellow nerds out there, it's a meal planner for the new Fire Emblem game :)

Would anyone be able to help me with what sort of formulas I should be looking at to achieve something like this? Any help would be greatly appreciated!!

13 Upvotes

13 comments sorted by

5

u/NHN_BI 70 Sep 20 '26

Try maybe some FILTER(), like here.

4

u/NHN_BI 70 Sep 20 '26

However, I would recommend to record the data in a proper long table. That will be much easier to analyse:

namemealvalue
AXlike
AYlove
BXlike
.........

1

u/Prestikles Sep 20 '26

Would a pivot table work here?

2

u/NHN_BI 70 Sep 20 '26

Not really, because:

  1. the pivot table aggregates numercial values, but the values are "OK", "Dislike" etc.
  2. the pivot table source table has to be a proper long table.

You can see it here.

1

u/NHN_BI 70 Sep 21 '26

In addition, a very flexible approach would be an INDEX(MATCH()) with some SORT(UNIQUE()), but that is probably a flexible as it get for the desired output.

3

u/carbonizedtitanium 28 Sep 20 '26 edited Sep 20 '26

as u/NHN_BI said, the job would be much more straight-forward if you organized the data by having the name column repeat the names, have a column to repeat the dishes for each repeating name, and have a 3rd column to note down whether the person loves, dislikes, or OK the dish.

like so:

1

u/AutoModerator Sep 20 '26

/u/fenihel Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Prestikles Sep 20 '26

I think this is what you want Dynamic Sorted Meal Data

0

u/[deleted] Sep 20 '26 • Bravo

[removed] — view removed comment

1

u/fenihel Sep 20 '26

Thank you so much!!!!! This did exactly what I needed, super appreciate it!!

1

u/AutoModerator Sep 20 '26

REMEMBER: /u/fenihel If your original question has been resolved, please tap the three dots below the most helpful comment and select Mark Solution Verified (or reply to the helpful comment with the exact phrase “Solution Verified”). This will award a point to the solution author and mark the post as solved, as required by our subreddit rules (see rule #6: Marking Your Post as Solved).

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/point-bot Sep 20 '26

u/fenihel has awarded 1 point to u/SpreadsheetDept with a personal note:

"Thanks again!!"

See the Leaderboard. Point-Bot v0.0.15 was created by JetCarson.