0

Sorting Alphanumeric Data

Hello. Has anyone come across an issue I am facing (and solved it!). I have a Jet report that is pulling data out sorted by the item code field. A formula in the sheet accesses that list as a vlookup and therefore it needs to be in Excel's sort order ascending to work properly. But the way Jet returns things in ascending order appears to be different to how Excel does the same so the sheet is unable to accurately calculate as intended as the vlookup picks up the wrong data.

By way of illustration - two products with item codes CB-1B and CB-TB is sorted in ascending order (with a + sign in from of the Item No. field in the NL function) by Jet and returned to Excel as
CB-TB
CB-1B
Whereas if you sort in Excel by the same column in ascending order,. It sorts it to
CB-1B
CB-TB
So a formula looking up as vlookup to the first data set for a non-matching element will pick up the wrong data….

Problem for what I need to do….. has anyone seen this- is it something nice and simple like a configuration to set Jet to sort differntly or is there a workaround or do I need to re-engineer how the Excel sheet works (which I think may be highly tricky given what I am trying to do)
Many thanks

4 comments

Please sign in to leave a comment.