I know this is a late reply.
You can write the formula as a function in a normal macro in a blank sheet. Then, you just save it as an excel add-in (*.xla). I've worked on one here complete with menus and everything.
Then, users just have to install that add-in and they will have the custom formulas available.