Custom VBA Function to sort an array of values.
is there any logic to the order? I could see the logic if the UKPOW items
were at the bottom of the list. Perhaps the desired function would require 2
lists, one list being the data to be sorted and the other defining the order
in which to sort it.
"Bob 187" wrote in message
...
Hi All,
I want to write a custom function that gives me an array of sorted values
based on a list of strings.
1 UKPOW
1 GERPOW
4 FREPOW
2 FREPOW
1 FREPOW
3 GERPOW
2 UKPOW
3 FREPOW
2 GERPOW
I want the function to sort into this order...
1 UKPOW
2 UKPOW
1 FREPOW
2 FREPOW
3 FREPOW
4 FREPOW
1 GERPOW
2 GERPOW
3 GERPOW
Also, there may be blank cells within the array, and I want to omit these
from the sort. Can anyone help please?
Thanks in advance!
Bob
|