Hi I'd like a formula in B12:H12 that assesses all the food eaten over the course of the day and then matches within the reference table (N2:P12) and returns the sum of all the protein consumed. For example, B12 would show 103. I then need a similar formula for calories so B13 would show 885.
Food.xlsx | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | |||
2 | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday | Food | Protein | Calories | ||||||||
3 | Breakfast | Boiled Egg | Boiled Egg | Boiled Egg | Boiled Egg | Boiled Egg | Boiled Egg | Boiled Egg | Boiled Egg | 6 | 60 | |||||||
4 | Yoghurt | Yoghurt | Yoghurt | Yoghurt | Yoghurt | Yoghurt | Yoghurt | Yoghurt | 18 | 110 | ||||||||
5 | Lunch | Tuna | Prawns | Tuna | Prawns | Tuna | Prawns | Tuna | Tuna | 25 | 100 | |||||||
6 | Kale | Kale | Kale | Kale | Kale | Kale | Kale | Kale | 3 | 20 | ||||||||
7 | Nuts | Nuts | Nuts | Nuts | Nuts | Nuts | Nuts | Nuts | 12 | 150 | ||||||||
8 | Dinner | Chicken | Salmon | Salmon | Chicken | Salmon | Chicken | Chicken | Chicken | 30 | 180 | |||||||
9 | Broccoli | Broccoli | Broccoli | Broccoli | Broccoli | Broccoli | Broccoli | Broccoli | 5 | 25 | ||||||||
10 | Potato | Potato | Potato | Potato | Potato | Potato | Potato | Potato | 4 | 240 | ||||||||
11 | Prawns | 15 | 170 | |||||||||||||||
12 | Protein | Salmon | 24 | 220 | ||||||||||||||
13 | Calories | |||||||||||||||||
Schedule |