Create custom function in excel mac

Source: www.tech-recipes.com