how do you use autosum in libreoffice?
Have a look at the Help for the Sum icon
Put your cursor in a cell where you want the result and click the Sum icon - Calc will offer a formula for you.
If this answer helped you, please accept it by clicking the check mark to the left and, karma permitting, upvote it. If this resolves your problem, close the question, that will help other people with the same question.