On Apr 22, 2008, at 2:02 PM, Beverly Voth wrote:

We are in the middle of our annual science fair at school and we have run up against a sorting problem. When I go to run ribbon labels that have the student's name and table number, the sort will not sort all of the table numbers correctly. The number are like a1, a2...a10, a11, a12. The sort will sort all the table number correct by letter, but the following numbers are not sorted numerically. Is a way to sort the numbers so the numbers following the
letter are in numerical order.
Thanks,Bill Wallace


Yes, you need TWO fields, one alphabetic, one numeric. Make both sort.

Just for fun. Define one field:

SerialSort - (Calculation, Number Result) =

Let([

a=theSerialAlphaField;
b=Position("abcdefghijklmnopqrstuvwxyz"; Left(a;1); 1; 1);
c=GetAsNumber("1" & Right("00" & b; 2) & Right("000000000" & Middle (a; 2; 20); 9))
];
c)

This calculation assumes that the first character will always be a single alpha character and the remaining of the serial number will be digits not equaling or exceed 1000,000,000.

Hope this helps!!!

Don Wieland
D W   D a t a   C o n c e p t s
~~~~~~~~~~~~~~~~~~~~~~~~~
[EMAIL PROTECTED]
Direct Line - (714) 389-4026

Integrated data solutions to fit your business needs.

Reply via email to