G
Guest
Is it possible to sort by part of a string in a given field? Here's my
example:
In the [RoomNumber] field, room number is specified with a string such as
19A-01, 19A-02, 19A-03, 20A-01, 20A-02, etc.
In the [Area] field, area may be listed as A.01, A.02, A.03, B.01, B.02,
B.03, etc.
There are multiple combinations. For instance, there is:
A.01 / 19A-01
A.01 / 19A-02
A.01 / 19A-03
A.01 / 20A-01
A.01 / 20A-02
A.01 / 20A-03
B.01 / 19A-01
B.01 / 19A-02
B.01 / 19A-03
B.01 / 20A-01
B.01 / 20A-02
I would like to be able to sort ascending by the "19A" portion of the room
number string first, then by the area field, then by the "01, 02, 03" portion
of the room number string, so the results would be as follows:
A.01 / 19A-01
A.01 / 19A-02
A.01 / 19A-03
B.01 / 19A-01
B.01 / 19A-02
B.01 / 19A-03
A.01 / 20A-01
A.01 / 20A-02
A.01 / 20A-03
B.01 / 20A-01
B.01 / 20A-02
I was thinking maybe there was a way with a wildcard in the criteria, but I
have been unsuccessful in my attempts. Normally, data in the room number
field does not contain a string, but in this instance, we needed to organize
it this way. I am hopeful I can manipulate the data to achieve the desired
results. Any suggestions are appreciated! Thank you!
example:
In the [RoomNumber] field, room number is specified with a string such as
19A-01, 19A-02, 19A-03, 20A-01, 20A-02, etc.
In the [Area] field, area may be listed as A.01, A.02, A.03, B.01, B.02,
B.03, etc.
There are multiple combinations. For instance, there is:
A.01 / 19A-01
A.01 / 19A-02
A.01 / 19A-03
A.01 / 20A-01
A.01 / 20A-02
A.01 / 20A-03
B.01 / 19A-01
B.01 / 19A-02
B.01 / 19A-03
B.01 / 20A-01
B.01 / 20A-02
I would like to be able to sort ascending by the "19A" portion of the room
number string first, then by the area field, then by the "01, 02, 03" portion
of the room number string, so the results would be as follows:
A.01 / 19A-01
A.01 / 19A-02
A.01 / 19A-03
B.01 / 19A-01
B.01 / 19A-02
B.01 / 19A-03
A.01 / 20A-01
A.01 / 20A-02
A.01 / 20A-03
B.01 / 20A-01
B.01 / 20A-02
I was thinking maybe there was a way with a wildcard in the criteria, but I
have been unsuccessful in my attempts. Normally, data in the room number
field does not contain a string, but in this instance, we needed to organize
it this way. I am hopeful I can manipulate the data to achieve the desired
results. Any suggestions are appreciated! Thank you!