Updating a sheet based on information in another sheet

Trancetopia

New Member
Joined
Apr 13, 2015
Messages
1
I hope someone can help with this. I have two sheets, sheet1 has a list of meals for each day of the week, the example below shows just meal 1 for Monday column C is for the food weight in grams, D is for Protein, E for carbs and F for fat. Sheet2 contains a list of food items that will match what the mail items will be in sheet1 but the food macros based on per 100 grams.

SHEET 1

ABCDEF
1MondaygPCF
2Shoulders
3BreakfastWhey Protein (1.5 Scoops)40
4Oats50
5Banana50.5511.5.15
61 Teaspoon Almond Butter5
7
8

<tbody>
</tbody>


SHEET 2

ABCD
1Food ItemProteinCarbsFat
2Whey Protein
3Oats
4Banana1.1230.3
5Almond Butter
6Chicken Breast

<tbody>
</tbody>


What I want to be able to do is when I click a button, each meal item in sheet1 needs to be checked for in sheet2, if food item names match, it will update sheet 1 Protein, Carb and Fat values based on a calculation of weight. So for example if Banana in sheet 1 has a match is Sheet 2, col D E F in sheet 1 will be updated based on the weight so in the banana example it nutrient values would be half the 100g values in sheet 2.

Hope this makes sense.

I'd attach the spreadsheet but I can't see any attach options.
 
Last edited:

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,215,754
Messages
6,126,681
Members
449,328
Latest member
easperhe29

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