Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How to recursively filter a table based on the value of one cell?

$
0
0

This is my first ever question... I have a table of recipes for various items along with their ingredients and the required quantity of each ingredient in a Google Sheet. I have a simple filter command based on the value of a dropdown validation box ($B$3) which works well for returning the full recipe for just that particular item however this is only half of the solution I am going for.

Some of the recipe items have dependencies on other recipe items in order to be crafted. For example, to craft a "Healing 3" item, you will require a "Healing 2" item as an ingredient. To craft a "Healing 2" item, you will require a "Healing 1" item as an ingredient.

Hence, I would like to be able to leverage a "checkbox" which will allow for the return of a list of all the required ingredients for the "Healing 3" item, as well as all the ingredients for the "Healing 2" item and all the ingredients for the "Healing 1" item.

Here is the link to the Google Sheet. It has two tabs, one with the recipe ingredients table and another with the query options.

Is it possible to use a Google Sheets function such as filter or query to accomplish this task?


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>