# Need help with a Calc formula [closed]

I have a Calc document with two sheets. I need it to take the value of cell A*x* on Sheet2, total up the values in column B on Sheet1 where the corresponding value of the cell in column G equals that of cell A*x* on Sheet2, and put that sum in cell B*x* on Sheet2. Is this possible? Sorry if I'm not explaining this well.