google spreadsheet - Get value from cell next to another cell -


i've got 2 sheets.

sheet one

product    | grams    | kcal food       | 23       | ? food2      | 55       | ? 

sheet two

product    | kcal food       | 104 food2      | 33 

how can in sheet 1 find cell next food entered.
ex. when enter "food2", want automatically kcal value food list in sheet two.

so food2's kcal cell should 33*55

try formula in cell c2 of sheet1:

=arrayformula(if(a2:a="",,b2:b*vlookup(a2:a,sheet2!a:b,2,0)))


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -