A
Alain R.
Hi,
on my sheet 1 called "Apports" i have a table of nutrition with all kind
of foods and their relative kj or Calorie values.
something like:
A B C D
Category Description kj calories
Vegetables Tomatoes 50 8
fruits Orange 62 9.2
fruits kiwi 75 10.1
....
where C and D are data form 100g or 100 ml and so on...
on my sheet 2 called "Alimentation" i have a table with what to eat each
day. On this sheet, i have the following thing:
A B C D
Description qty kj calories
kiwi 70 myformula1 myformula2
myformula1 should display as result: (75/100)*70 = 52.5
and
myformula2 should display as result: (10.1/100)*70 = 7.07
therefore a simple VLOOKUP should be enough
to display correct data, myformula1 should be the
=(VLOOKUP(A2,Apports!$A$2:$D$3,Apports!C:C,false)/100)*B2 to return 52.5
but it doesn't work.
it returns me #REF :-(
thanks for help.
A.
what did i do wrong ?
on my sheet 1 called "Apports" i have a table of nutrition with all kind
of foods and their relative kj or Calorie values.
something like:
A B C D
Category Description kj calories
Vegetables Tomatoes 50 8
fruits Orange 62 9.2
fruits kiwi 75 10.1
....
where C and D are data form 100g or 100 ml and so on...
on my sheet 2 called "Alimentation" i have a table with what to eat each
day. On this sheet, i have the following thing:
A B C D
Description qty kj calories
kiwi 70 myformula1 myformula2
myformula1 should display as result: (75/100)*70 = 52.5
and
myformula2 should display as result: (10.1/100)*70 = 7.07
therefore a simple VLOOKUP should be enough
to display correct data, myformula1 should be the
=(VLOOKUP(A2,Apports!$A$2:$D$3,Apports!C:C,false)/100)*B2 to return 52.5
but it doesn't work.
it returns me #REF :-(
thanks for help.
A.
what did i do wrong ?