Excel's PERCENTOF function returns the percentage that a subset of data contributes to a whole dataset, saving you from having to create additional or complex formulas to generate the same outcome.
The formula for CAPM calculates ... from any business or broker's website. Excel has many more functions, however. It can calculate standard deviation, percentage of return, overall profit ...