jcarroll012
New Member
- Joined
- Jul 18, 2016
- Messages
- 5
To make the question easier I am posting it as a recipe tracker
One table has the recipe
[TABLE="width: 500"]
<tbody>[TR]
[TD]Recipe #[/TD]
[TD]Recipe[/TD]
[TD]Bread[/TD]
[TD]PB[/TD]
[TD]Jelly[/TD]
[TD]Broth[/TD]
[TD]Chicken[/TD]
[TD]Noodles[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]PBJ[/TD]
[TD]50%[/TD]
[TD]25%[/TD]
[TD]25%[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]Chicken Soup[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]75%[/TD]
[TD]10%[/TD]
[TD]15%[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]Chicken Sandwich[/TD]
[TD]50%[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]50%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]Peanut Butter Soup[/TD]
[TD][/TD]
[TD]10%[/TD]
[TD][/TD]
[TD]90%[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Second table has weekly orders and needs the total amount of components for the week to track ordering
[TABLE="width: 500"]
<tbody>[TR]
[TD]Recipe #[/TD]
[TD]Recipe[/TD]
[TD]Week of 7/3/2016 (#made)[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]PBJ[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]Chicken Soup[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]Chicken Sandwich[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]103 [/TD]
[TD]Peanut Butter Soup[/TD]
[TD]51[/TD]
[/TR]
</tbody>[/TABLE]
Output
[TABLE="width: 500"]
<tbody>[TR]
[TD]Ingredients[/TD]
[TD]Week of 7/3/2016 (Used)[/TD]
[/TR]
[TR]
[TD]Bread[/TD]
[TD]26[/TD]
[/TR]
[TR]
[TD]PB[/TD]
[TD]15.1[/TD]
[/TR]
[TR]
[TD]Jelly[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Broth[/TD]
[TD]120.9[/TD]
[/TR]
[TR]
[TD]Chicken[/TD]
[TD]16[/TD]
[/TR]
[TR]
[TD]Noodles[/TD]
[TD]15[/TD]
[/TR]
</tbody>[/TABLE]
This goes on for weeks and weeks laid out as above. I've stared at it for a while now and tried a lot of things, but I think I'm staring too hard.
One table has the recipe
[TABLE="width: 500"]
<tbody>[TR]
[TD]Recipe #[/TD]
[TD]Recipe[/TD]
[TD]Bread[/TD]
[TD]PB[/TD]
[TD]Jelly[/TD]
[TD]Broth[/TD]
[TD]Chicken[/TD]
[TD]Noodles[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]PBJ[/TD]
[TD]50%[/TD]
[TD]25%[/TD]
[TD]25%[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]Chicken Soup[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]75%[/TD]
[TD]10%[/TD]
[TD]15%[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]Chicken Sandwich[/TD]
[TD]50%[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]50%[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]Peanut Butter Soup[/TD]
[TD][/TD]
[TD]10%[/TD]
[TD][/TD]
[TD]90%[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Second table has weekly orders and needs the total amount of components for the week to track ordering
[TABLE="width: 500"]
<tbody>[TR]
[TD]Recipe #[/TD]
[TD]Recipe[/TD]
[TD]Week of 7/3/2016 (#made)[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]PBJ[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]Chicken Soup[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]Chicken Sandwich[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]103 [/TD]
[TD]Peanut Butter Soup[/TD]
[TD]51[/TD]
[/TR]
</tbody>[/TABLE]
Output
[TABLE="width: 500"]
<tbody>[TR]
[TD]Ingredients[/TD]
[TD]Week of 7/3/2016 (Used)[/TD]
[/TR]
[TR]
[TD]Bread[/TD]
[TD]26[/TD]
[/TR]
[TR]
[TD]PB[/TD]
[TD]15.1[/TD]
[/TR]
[TR]
[TD]Jelly[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Broth[/TD]
[TD]120.9[/TD]
[/TR]
[TR]
[TD]Chicken[/TD]
[TD]16[/TD]
[/TR]
[TR]
[TD]Noodles[/TD]
[TD]15[/TD]
[/TR]
</tbody>[/TABLE]
This goes on for weeks and weeks laid out as above. I've stared at it for a while now and tried a lot of things, but I think I'm staring too hard.