I'm trying to create an exel file that will calculate eaten calories.
For example, when I enter a number (or series of numbers), that represents a food - Exel looks up this number and calculates calories.
Table 1. contains all food entries as well as calories:
Nr === Food == Calories
-----------------------
1 === Bred == 100 kcal
2 === Cheese == 200 kcal
3 === Cola == 300 kcal
Table 2. is where calculations are done:
Date == Eaten Food == Total Calories
----------------------------------
21 nov == 1+2(2)+3(1/3) == 100+200*2+300/3=600 kcal
600 kCal is the result that I'm trying to achieve. Whole process is following:
* we enter numbers separated by +(plus)
* number pattern is: X or X(Y), where X is a Number from table 1. and Y is the multiplier
* exel lookup each number
* calculates calories for each food
* sums everything up
* shows the result
Here is how Exel looks like:
http://oi46.tinypic.com/2ntb51h.jpg
Sorry, i tried to upload an Exel file, but my favorite file-hosting service is down on maintenance.
Any advice or help on how to achieve 600 kCal result (as in example) will be appreciated!
For example, when I enter a number (or series of numbers), that represents a food - Exel looks up this number and calculates calories.
Table 1. contains all food entries as well as calories:
Nr === Food == Calories
-----------------------
1 === Bred == 100 kcal
2 === Cheese == 200 kcal
3 === Cola == 300 kcal
Table 2. is where calculations are done:
Date == Eaten Food == Total Calories
----------------------------------
21 nov == 1+2(2)+3(1/3) == 100+200*2+300/3=600 kcal
600 kCal is the result that I'm trying to achieve. Whole process is following:
* we enter numbers separated by +(plus)
* number pattern is: X or X(Y), where X is a Number from table 1. and Y is the multiplier
* exel lookup each number
* calculates calories for each food
* sums everything up
* shows the result
Here is how Exel looks like:
http://oi46.tinypic.com/2ntb51h.jpg
Sorry, i tried to upload an Exel file, but my favorite file-hosting service is down on maintenance.
Any advice or help on how to achieve 600 kCal result (as in example) will be appreciated!