Recipe Calculator

jem10660

New Member
Joined
Mar 2, 2018
Messages
4
Hi Everyone

I'm trying to develop a recipe calculator linked to a product inventory like in the tables below, however my formula and function skills are limited but aspirational :LOL:.

In the first table I want to list the ingredients that I buy, amount I bought, cost, price per unit. I then want to link the inventory table to a recipe calculator. I want to be able to type in a product from the inventory such as sugar in column e, the amount I used in the recipe in column f and in column g I want it to find the item from the first table and apply the price per unit from column d, multiply the amount used to give me the cost price in the recipe.

Can anyone help me with this? Its driving me insane.:confused:



abcd
sugar10009.520.00952
flour20005.650.002825

<tbody>
</tbody>

efgh
Product usedamountcost

<tbody>
</tbody>
 

Dryver14

Well-known Member
Joined
Mar 22, 2010
Messages
2,396
Sheet16

ABCDEFG
1ProductTotal BuyCostCost per unitProduct UsedAmount usedCost
2sugar10009.520.00952sugar50.0476
3Flour20005.650.002825
4

<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 86px;"><col style="width: 89px;"><col style="width: 90px;"><col style="width: 64px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
G2=VLOOKUP(E2,$A$2:$D$3,4,0)*F2

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 

Dryver14

Well-known Member
Joined
Mar 22, 2010
Messages
2,396
No problem,obviously extend the lookup range according to your sheet
 

jem10660

New Member
Joined
Mar 2, 2018
Messages
4
Hello Me again

The formula is working great for items such as sugar, but if the item is more than one word such as tapioca starch is can't find the value. Is there anyway of accounting for this in the formula?
 

Dryver14

Well-known Member
Joined
Mar 22, 2010
Messages
2,396
It should work for 2 words as long as they are in the same cell, the spelling needs to be identical
 

Dryver14

Well-known Member
Joined
Mar 22, 2010
Messages
2,396
If you know how to do data validation that is the best way to go by creating a dropdown list of the names in the first column, that way you will always get the correct spelling
 

jem10660

New Member
Joined
Mar 2, 2018
Messages
4
It isn't working with two words but as you say they would have to be exact. I'll give the data validation dropdown a go. Thanks.
 

Forum statistics

Threads
1,081,690
Messages
5,360,614
Members
400,592
Latest member
badgergurl

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top