Actually, if you have that function inside of a module, you can directly reference it inside a worksheet cell, ...
stackoverflow.com