I'm working on other projects, and I'm not interested in writing VBA code to
replicate the Analysis ToolPak.
If you have thought about the exact specifications, like the specific input
data and specific output, and if you have decided how general-purpose you
want your code to be (variable number of columns, etc.), then if you post
the code you have so far, it's likely that someone will help you.