By "custom sort" I'm assuming you actually mean, return all records for given country in the order in which that country first appears in the list
If so, given XL2007, I would advise following:
if you choose to not isolate the row # in D, once, you will end up repeating the same (potentially expensive calc) repeatedly, which is not a good idea.
(this is also why we have a header in row D13 - such that we can test prior result, and cease once we know that all results have been returned)
if the above doesn't generate the desired results in real-life, (i.e. it will replicate your expected results), post back with a more detailed sample - with multiple scenarios.
Bookmarks