The below UDF utilises Chip Pearson's QSortInPlace Routine - this is of critical importance given it does the complex stuff
(ie ordering the single dimension Array in reverse allowing you to extract values whilst handling duplicity etc)
UDF:
Chip Pearson's code can be found within the attachment link provided on his webpage: http://www.cpearson.com/excel/SortingArrays.aspx
With the UDF and Chip Pearson's code in place your in cell call would simply be:
A2:A21 can be copied across but you must of course adjust the sales ranges as appropriate (ie F3:J11 becomes F15:K22 for South etc...)
Hopefully that's along the lines of what you wanted.
Bookmarks