I'm trying to create a list that will compile ingredients from different recipes into a list of the total ingredients needed, but exclude ones from recipes that have already been made. I know how to do a table to total the amounts of each kind of ingredient, but I want to be able to check recipes as completed so that their ingredients aren't added to that list. So far, this is what I've been working with to try and wrangle some formula out of it:
A | B | C | D | |
---|---|---|---|---|
1 | Completed | Recipe | Ingredients | Amount |
2 | [ ] | Spaghetti | Noodle | 20 |
3 | [ ] | Spaghetti | Sauce | 8 |
4 | [ ] | Spaghetti | Cheese | 2 |
5 | [ ] | Spaghetti | Meatball | 5 |
6 | [ ] | Ramen | Noodle | 25 |
7 | [ ] | Ramen | Broth | 14 |
8 | [ ] | Ramen | Green Onion | 6 |
Since this will be rolled out to other people, I'm going to format it and lock it so it will ultimately look like this:
A | B | C | D | |
---|---|---|---|---|
1 | Completed | Recipe | Ingredients | Amount |
2 | [ ] | Spaghetti | Noodle | 20 |
3 | Sauce | 8 | ||
4 | Cheese | 2 | ||
5 | Meatball | 5 | ||
6 | [ ] | Ramen | Noodle | 25 |
7 | Broth | 14 | ||
8 | Green Onion | 6 |
I started going at it with just locking the "A" cell in the formula and dragging down for every amount in that recipe
D4 =if((TRUE=A$2),"",2)
but I have probably 100 on the list all with varying number of ingredients/amounts of each ingredient so ideally there's something that could help not have to do that?
Ultimately I want the value of cell D4 to disappear if any cell in Column A that has the same value in Column B as D4 is marked as true, but in a way that can be dragged to copy into every cell in the column and doesn't have to be changed for each set of recipes.