Well, here you are Brian.
I sort of cheated on both the solutions, the UDF above is still the best, I feel, as it makes no assumptions othar than code is allowed to run.
I included two solutions, one that uses 1 helper column and one that does not. The second is a mother of all array formulas...