Hello all,
I'm trying to create a spreadsheet that will help my wife and I calculate food macros based off a single drop down box. The drop down box will have a food item and I would like to auto populate all the calories, fats, carbs and protein based off the drop down selection. Here is a quick example.
I have a chart with all the food macro information in it beside the food item. I'm not sure what formula/s to use to get to auto populate the cells.
When I choose the Peanut Butter 1 serving from the drop down box, I want it to fill in the rest from the chart below.
Just a quick example... Thanks in advance for your help!
[TABLE="width: 594"]
<colgroup><col width="163" style="width: 122pt; mso-width-source: userset; mso-width-alt: 5961;"> <col width="78" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2852;" span="8"> <tbody>[TR]
[TD="width: 163, bgcolor: transparent"][/TD]
[TD="class: xl65, width: 78, bgcolor: transparent"]Qty[/TD]
[TD="class: xl65, width: 78, bgcolor: transparent"]Calorie[/TD]
[TD="class: xl65, width: 78, bgcolor: transparent"]Cal From Fat[/TD]
[TD="class: xl65, width: 78, bgcolor: transparent"]Fat[/TD]
[TD="class: xl65, width: 78, bgcolor: transparent"]Carbs[/TD]
[TD="class: xl65, width: 78, bgcolor: transparent"]Fiber[/TD]
[TD="class: xl65, width: 78, bgcolor: transparent"]Net Carbs[/TD]
[TD="class: xl65, width: 78, bgcolor: transparent"]Protein[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Peanut Butter 1 serving[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Peanut Butter 2 servings[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD]item[/TD]
[TD]Qty[/TD]
[TD]Calorie[/TD]
[TD]cal from fat[/TD]
[TD]fat[/TD]
[TD]Carbs[/TD]
[TD]Fiber[/TD]
[TD]Net Carbs[/TD]
[TD]Protein[/TD]
[/TR]
[TR]
[TD]Peanut Butter 1 serving[/TD]
[TD]32g[/TD]
[TD="align: right"]200[/TD]
[TD="align: right"]190[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Peanut Butter 2 servings[/TD]
[TD="bgcolor: transparent"]64g[/TD]
[TD="bgcolor: transparent, align: right"]400[/TD]
[TD="bgcolor: transparent, align: right"]380[/TD]
[TD="bgcolor: transparent, align: right"]34[/TD]
[TD="bgcolor: transparent, align: right"]8[/TD]
[TD="bgcolor: transparent, align: right"]6[/TD]
[TD="bgcolor: transparent, align: right"]2[/TD]
[TD="bgcolor: transparent, align: right"]16[/TD]
[/TR]
[TR]
[TD]Butter 1 tbsp[/TD]
[TD]1 tbsp[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Butter 2 tbsp[/TD]
[TD="bgcolor: transparent"]2 tbsp[/TD]
[TD="bgcolor: transparent, align: right"]200[/TD]
[TD="bgcolor: transparent, align: right"]200[/TD]
[TD="bgcolor: transparent, align: right"]22[/TD]
[TD="bgcolor: transparent, align: right"]0[/TD]
[TD="bgcolor: transparent, align: right"]0[/TD]
[TD="bgcolor: transparent, align: right"]0[/TD]
[TD="bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I'm trying to create a spreadsheet that will help my wife and I calculate food macros based off a single drop down box. The drop down box will have a food item and I would like to auto populate all the calories, fats, carbs and protein based off the drop down selection. Here is a quick example.
I have a chart with all the food macro information in it beside the food item. I'm not sure what formula/s to use to get to auto populate the cells.
When I choose the Peanut Butter 1 serving from the drop down box, I want it to fill in the rest from the chart below.
Just a quick example... Thanks in advance for your help!
[TABLE="width: 594"]
<colgroup><col width="163" style="width: 122pt; mso-width-source: userset; mso-width-alt: 5961;"> <col width="78" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2852;" span="8"> <tbody>[TR]
[TD="width: 163, bgcolor: transparent"][/TD]
[TD="class: xl65, width: 78, bgcolor: transparent"]Qty[/TD]
[TD="class: xl65, width: 78, bgcolor: transparent"]Calorie[/TD]
[TD="class: xl65, width: 78, bgcolor: transparent"]Cal From Fat[/TD]
[TD="class: xl65, width: 78, bgcolor: transparent"]Fat[/TD]
[TD="class: xl65, width: 78, bgcolor: transparent"]Carbs[/TD]
[TD="class: xl65, width: 78, bgcolor: transparent"]Fiber[/TD]
[TD="class: xl65, width: 78, bgcolor: transparent"]Net Carbs[/TD]
[TD="class: xl65, width: 78, bgcolor: transparent"]Protein[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Peanut Butter 1 serving[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Peanut Butter 2 servings[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD]item[/TD]
[TD]Qty[/TD]
[TD]Calorie[/TD]
[TD]cal from fat[/TD]
[TD]fat[/TD]
[TD]Carbs[/TD]
[TD]Fiber[/TD]
[TD]Net Carbs[/TD]
[TD]Protein[/TD]
[/TR]
[TR]
[TD]Peanut Butter 1 serving[/TD]
[TD]32g[/TD]
[TD="align: right"]200[/TD]
[TD="align: right"]190[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Peanut Butter 2 servings[/TD]
[TD="bgcolor: transparent"]64g[/TD]
[TD="bgcolor: transparent, align: right"]400[/TD]
[TD="bgcolor: transparent, align: right"]380[/TD]
[TD="bgcolor: transparent, align: right"]34[/TD]
[TD="bgcolor: transparent, align: right"]8[/TD]
[TD="bgcolor: transparent, align: right"]6[/TD]
[TD="bgcolor: transparent, align: right"]2[/TD]
[TD="bgcolor: transparent, align: right"]16[/TD]
[/TR]
[TR]
[TD]Butter 1 tbsp[/TD]
[TD]1 tbsp[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Butter 2 tbsp[/TD]
[TD="bgcolor: transparent"]2 tbsp[/TD]
[TD="bgcolor: transparent, align: right"]200[/TD]
[TD="bgcolor: transparent, align: right"]200[/TD]
[TD="bgcolor: transparent, align: right"]22[/TD]
[TD="bgcolor: transparent, align: right"]0[/TD]
[TD="bgcolor: transparent, align: right"]0[/TD]
[TD="bgcolor: transparent, align: right"]0[/TD]
[TD="bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]