Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 928

Value of Cell D4 disappear if any cell in Column A that has the same value in Column B as D4 is marked as true

$
0
0

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:

ABCD
1CompletedRecipeIngredientsAmount
2[ ]SpaghettiNoodle20
3[ ]SpaghettiSauce8
4[ ]SpaghettiCheese2
5[ ]SpaghettiMeatball5
6[ ]RamenNoodle25
7[ ]RamenBroth14
8[ ]RamenGreen Onion6

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:

ABCD
1CompletedRecipeIngredientsAmount
2[ ]SpaghettiNoodle20
3Sauce8
4Cheese2
5Meatball5
6[ ]RamenNoodle25
7Broth14
8Green Onion6

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.


Viewing all articles
Browse latest Browse all 928

Trending Articles