Jump to content

This topic is 7471 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi

I have to sort numbers that are like a1, a2, a3 , a4 etc. Always a letter before a number but I can't find a way to get it to sort.

If I sort I get

A1, A11 , a2, A 20. etc.

I am not sure how to go about getting this in a sorting order

Any help is greatly needed and appreciated

Thanks

STAN

Posted

If the pattern is always one letter followed by a number, you can create a calculation field (text) of Left( field, 1 ) & Right( "000" & Right( field, Length(field) - 1 ), 3 ) and sort on that. Use as many leading zeroes as you may have digits, i.e. use 4 zeroes (and '4' as the last 'Right' parameter) if you anticipate no more than 9999 possible digits within each letter group.

This topic is 7471 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.