Hello,
is the same question possible, but in the form of a function?
The reference question is the one in this link.
https://forums.commentcamarche.net/forum/affich-34205979-libreoffice-resultat-de-calcul-a-figer-dans-une-cellule