calculating macronutrients

dccd01

New Member
Joined
Nov 1, 2016
Messages
3
I just started a food diary and am wanting Excel to calculate my calories and macro nutrients automatically. Not sure how to do this, but would like for it to multiply the number of servings I had by the calories, Fats, Carb, and Proteins each day, and add them up for the day's total. Add all the calories I consumed, all the fats, etc. Basically, a formula that will populate cell H17 with that day's calories, H18 with the fats, etc. Thanks

ABC DEFGHI
7/15/20187/16/2018
1CaloriesFatsCarbsProteinservingsservings
2
3
4Prepared fruit/veg
5cauliflower - riced3/4 c250121
6cauliflower - mashed1/2 c601821
7
8Meats
9Rotisserie Chicken - w/skin6 oz63028094.3
10Rotisserie Chicken - no skin6 oz50812099.71
11Salmon - baked 6 oz3001404411
12Crabmeat - white can2 oz (half can)30017
13Ham - baked4oz slice20110.2025.61
14corned beef - 3.5 oz213160152
15
16
17Calories
18Fat
19Carbs
20Protein

<tbody>
</tbody>
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Something like this?

ABCDEFGHIJ
17/15/20187/16/2018
2CaloriesFatsCarbsProteinservingsservings
3
4Prepared fruit/veg
5cauliflower - riced 3/4 c250121
6cauliflower - mashed 1/2 c601821
7
8Meats
9Rotisserie Chicken - w/skin 6 oz63028094.3
10Rotisserie Chicken - no skin 6 oz50812099.71
11Salmon - baked 6 oz3001404411
12Crabmeat - white
can 2 oz (half can)
30017
13Ham - baked 4oz slice20110.2025.61
14corned beef - 3.5 oz213160152
15
16
17Calories833987
18Fats2657.2
19Carbs18
20Protein145.7101.6

<tbody>
</tbody>
Sheet4


Worksheet Formulas
CellFormula
H17=SUMPRODUCT(INDEX($B$4:$E$14,0,MATCH($G17,$B$2:$E$2,0)),H$4:H$14)

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,625
Members
449,093
Latest member
catterz66

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