Search for Excel there is a UDF and a post where it's done already.

If you can't find it I'll search for it later one.