If you can write an Excel formula, you can build your own function.
In a paper published in Proceedings of the National Academy of Sciences, researchers from Technion and Tel Aviv University ...