Help with my spreadsheet required!!!

nigeywigey

New Member
Joined
Apr 10, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi all, im very new to excel and im I'm trying to create a recipe spreadsheet with calorie information next to my recipes.
I have a separate food list with the calorie info based on 1gm. How can I go about automatically populating the nutritional info when entering in an ingredient into my recipe template?

I've attached the file so you can see what I've got so far!
 

Attachments

  • Capture1.PNG
    Capture1.PNG
    27.8 KB · Views: 13
  • Capture2.PNG
    Capture2.PNG
    59.4 KB · Views: 12

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
you have various names for an item , but with additional info , like Almonds and you would need to use the correct one to lookup its value
if you are using the correct name as in the list

Then a VLOOKUP() or index/match would work
and multiple buy the amount, BUT then what weights are you entering as text

I think using XL2BB would be better rather than i try and type all that out

OR
put the spreadsheet on a share I only look at onedrive / dropbox

Vlookup(A4, 'food nutrition for 1g'!A:N, 5,false). 5 is the column from N you want to return

Assume you want results from column K
Index('food nutrition for 1g'!K:K, Match( A4 , 'food nutrition for 1g'!A:A, 0 ))

Then you could * by the amount - in this case 100 - BUT not if entered as 1g 2KG etc - perhaps have a column for the Weight as a number and column for the amount
column B would have 100 and column C would have "g"
Then you could work out the Multiplying factor
 
Upvote 0
Hi NigeyWigey,

I'm not sure why column F in the template repeats the ingredient name unless I'm missing something?

For the weight (as it's all in grams) you should omit the "g" as "100g" will be treated as text and fail.

This assume your columns for template and FOOD NUTRITION PER 1G are in the same sequence (i.e. Fat is column H and C)

Here's my subset of the data table
NigeyWigey.xlsx
ABCD
1Food NameProteinFatCarbohydrate
2ProteinFATCarbohydrate
3profatCarbohydrate
4Ackee0.0290.30.5
5Agar0.030.20.4
6Allspice0.050.30.5
FOOD NUTRITION PER 1G


Here's a formula you could put in G4 then copy down and across
NigeyWigey.xlsx
ABCDEFGHI
3IngredientsWeightUnitMethodFood NameProteinFatCarbohydrate
4Ackee100Ackee2.93050
5Agar200Agar64080
6Allspice500Allspice25150250
template
Cell Formulas
RangeFormula
F4:F6F4=A4&""
G4:I6G4=$B4*INDEX('FOOD NUTRITION PER 1G'!B$4:B$9999,MATCH($F4,'FOOD NUTRITION PER 1G'!$A$4:$A$9999,0))
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,454
Members
449,083
Latest member
Ava19

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