Product Costing - looking up values based on name and calculating cost given components

jellybeancounter

New Member
Joined
Nov 2, 2015
Messages
2
I am using Excel 2010 and trying to build a formula to calculate how much each component of a recipe costs.

I have an ingredients list on one worksheet which contains the following:
PricePer:
CategoryIngredientAverage PriceQtyMeasureOztspTbspCup
BaseAll purpose flour5.00160oz.03.19.06.004

<tbody>
</tbody>

I have a recipe on another worksheet which contains the following:
NameAmountMeasureIngredientCost
Pie Crust2.5CupAll purpose flour???

<tbody>
</tbody>

I would like to insert a formula in the cost cell above which can go to the ingredient list and find the cost of the flour then look at how much is required on the recipe worksheet and calculate the cost. For example: I would like the formula to calculate the following for flour:
All purpose flour is $0.04 per cup and my recipe needs 2.5 cups => 2.5*.04=0.10 Cost

I have quite a few ingredients and many variations on quantity for various recipes and I would like to find a more time efficient method of calculating than entering manual formulas.

Thanks!
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Take a look at the INDEX and MATCH functions

Here are some links on how to use them.
https://www.youtube.com/watch?v=3C0PdOVuWCI
https://www.youtube.com/watch?v=bMWv0AN-hSs


In the example below you would just copy the formula down as needed.


Excel Workbook
ABCDE
1NameAmountMeasureIngredientCost
2Pie Crust2.5CupAll purpose flour0.01
32tspSugar0.0125
recipe


Excel Workbook
ABCDEFGHI
1CategoryIngredientAverage PriceQtyMeasureOztspTbspCup
2BaseAll purpose flour5160oz0.030.190.060.004
3Sugar1.232oz0.03750.006250.080.096
Ingerd




 
Upvote 0
Assume your reference table is on Sheet1, with the header row as you have it in row 2. First column is column A.

On Sheet2, I have your table as above starting in cell A1. In cell E2, I have the following formula:

=$B2*INDEX(Sheet1!$1:$1048576,MATCH($D2,Sheet1!$B:$B,0),MATCH($C2,Sheet1!$2:$2,0))

Seems to work for me, although I don't fully understand your pricing system.
 
Upvote 0

Forum statistics

Threads
1,215,220
Messages
6,123,694
Members
449,117
Latest member
Aaagu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top