Maybe you better spell out how this is different from the problem of sorting an array and just writing appropriate compare and exchange functions ... An array must be used to store a count of ASCII ...
Excel's basic formulas work fine for simple calculations, but they quickly become cumbersome when you're dealing with complex data analysis. You end up with nested functions that are hard to read, ...