MA can be replaced by ave function in Excel. AVEDEV has a function with the same name in Excel, but the parameter list is changed into a region. For example, if your TYP is in the BB column and there is data from the third row, and CCI uses the default parameter 14, the following values have data from the 16 row:
Ma (,n) is generally (BB3:BB 16),
AVEDEV(TYP, n) is AVEDEV(BB3:BB 16),
CCI is (bb 16- average (bb3: bb16))/(0.015 * avedev (bb3: bb16)).
Fill in CCI in line 16, and drag the others down.