Please see morans function as listed on Wikipedia. I can't seem to rewrite the formula on here.
How would I put that into excel?