I am trying to build a simple food nutrient calculator on excel that I can share with others.
I have one sheet with list of food items and nutrient information per 100 grams:
Item | Weight (g) | Calories | Protein | Carbs | Fat | Fiber | Sugar |
---|---|---|---|---|---|---|---|
Rice White | 100 | 130 | 2.7 | 28 | 0.3 | 0.4 | 0.1 |
Rice Brown | 100 | 111 | 2.6 | 23 | 0.9 | 1.8 | 0.4 |
Almonds | 100 | 579 | 21.15 | 21.55 | 49.33 | 12.5 | 4.35 |
Peanuts | 100 | 567 | 25.8 | 16.13 | 49.24 | 8.5 | 4.72 |
Cashew | 100 | 553 | 18.22 | 30.19 | 43.85 | 3.3 | 5.91 |
Walnuts | 100 | 654 | 15.23 | 13.71 | 65.21 | 6.7 | 2.61 |
Pistachios | 100 | 560 | 20.16 | 45.32 | 27.17 | 10.16 | 7.66 |
Hazelnuts | 100 | 628 | 14.95 | 16.7 | 60.75 | 9.7 | 4.34 |
Rice Basmati | 100 | 121 | 3.54 | 25.22 | 0.38 | 0.4 | 0.05 |
I want another sheet where the user logs amount of each food item he or she consumes for the day. I want the item names to be from the drop-down . Rest of the columns need to be calculated.
Time | Item | Amount (g) | Calories | Protein | Carbs | Fat | Fiber | Sugar |
---|---|---|---|---|---|---|---|---|
10:00 AM | (item name dropdown) | 200 | (formula) | (formula) | (formula) | (formula) | (formula) | (formula) |
Can you explain how to achieve this?
I can create the a list from the Item Name column in the sheet1 using Data Validation, but how to get the rest of the column values from Sheet1?