Here is a derivative of FlameRetired's post #6 formula that is a little shorter and simpler and - as far as I can see - still works correctly. As with the formula in post #11 this formula will automatically adapt to the source starting anywhere in the sheet. There is also no need to enter it as an array formula.
Another consideration in putting this to practical use would be how the formula would have to change if the number of rows and/or columns in the source data were to change. Obviously all $A$1:$C$3 references must be changed as necessary. In addition the 3 in "*3" (both instances) must be changed to the number of rows in the source data. The number of elements in the {1;1;1} vertical array constant must be changed to the number of columns in the source data and the number of elements in the {1,1,1} horizontal array constant must be changed to the number of rows in the source data. Similar considerations would apply to the other formulas noted above.
Finally note that I think there is a limitation that all of these formulas break if there is a cell in the source data that is numeric rather than alpha.
Bookmarks