Sum Prices of Unique Items with Several Conditions
Hello all!
I have a sheet that I'm using to do some small business calculations (personal use for a hobby). In one table that contains "recipes", and one of those columns contains "capital items" (tools, molds, etc) and an adjacent column for the price of the respective capital item. Another column in the same table gives the recipe to which that item belongs.
In another table, I'm calculating the costs of bundles of these recipes. I want to calculate the total capital cost of a bundle, but I don't want to double-count capital items that are used in multiple recipes in the bundle. I only have to buy the tool once! So I want to calculate only the cost of items with unique names.
Here's an outline of the columns involved:
A: Name of the bundle
B: Name of the recipe in the bundle
C: Name of the capital item
D: Price of the capital item
E: Name of the recipe to which the capital item corresponds
I have a formula in a single cell, with a respective value in A (lets say A1). I want it to sum values in D for which the respective value of C is a unique value who's corresponding value of E is one of the values in B with a respective value of A1 in A.
I don't expect anyone to invent this for me, but pointing me in the right direction would be a big help!