"I know I can do this calculation with a function, but I can't figure it out even after searching..." In such cases, asking ...
Excel has over 475 formulas in its Functions Library, from simple mathematics to very complex statistical, logical, and engineering tasks such as IF statements (one of our perennial favorite stories); ...